@ethereumjs/devp2p / BanList
• new BanList()
packages/devp2p/src/dpt/ban-list.ts:18
▸ add(obj, maxAge?): void
| Name | Type |
|---|---|
obj |
string | Uint8Array | PeerInfo |
maxAge? |
number |
void
packages/devp2p/src/dpt/ban-list.ts:22
▸ has(obj): boolean
| Name | Type |
|---|---|
obj |
string | Uint8Array | PeerInfo |
boolean