@ethereumjs/devp2p / DPTOptions
• Optional
createSocket: Function
Function for socket creation
Default: dgram-created socket
packages/devp2p/src/types.ts:62
• Optional
dnsAddr: string
DNS server to query DNS TXT records from for peer discovery
packages/devp2p/src/types.ts:104
• Optional
dnsNetworks: string
[]
EIP-1459 ENR tree urls to query for peer discovery
Default: (network dependent)
packages/devp2p/src/types.ts:99
• Optional
dnsRefreshQuantity: number
Max number of candidate peers to retrieve from DNS records when attempting to discover new nodes
Default: 25
packages/devp2p/src/types.ts:92
• Optional
endpoint: PeerInfo
Network info to send a long a request
Default: 0.0.0.0, no UDP or TCP port provided
packages/devp2p/src/types.ts:55
• Optional
refreshInterval: number
Interval for peer table refresh
Default: 60s
packages/devp2p/src/types.ts:69
• Optional
shouldFindNeighbours: boolean
Toggles whether or not peers should be queried with ‘findNeighbours’ to discover more peers
Default: true
packages/devp2p/src/types.ts:77
• Optional
shouldGetDnsPeers: boolean
Toggles whether or not peers should be discovered by querying EIP-1459 DNS lists
Default: false
packages/devp2p/src/types.ts:84
• Optional
timeout: number
Timeout for peer requests
Default: 10s