ethereumjs-monorepo

@ethereumjs/devp2p / DPTOptions

Interface: DPTOptions

Table of contents

Properties

Properties

createSocket

Optional createSocket: Function

Function for socket creation

Default: dgram-created socket

Defined in

packages/devp2p/src/types.ts:62


dnsAddr

Optional dnsAddr: string

DNS server to query DNS TXT records from for peer discovery

Defined in

packages/devp2p/src/types.ts:104


dnsNetworks

Optional dnsNetworks: string[]

EIP-1459 ENR tree urls to query for peer discovery

Default: (network dependent)

Defined in

packages/devp2p/src/types.ts:99


dnsRefreshQuantity

Optional dnsRefreshQuantity: number

Max number of candidate peers to retrieve from DNS records when attempting to discover new nodes

Default: 25

Defined in

packages/devp2p/src/types.ts:92


endpoint

Optional endpoint: PeerInfo

Network info to send a long a request

Default: 0.0.0.0, no UDP or TCP port provided

Defined in

packages/devp2p/src/types.ts:55


refreshInterval

Optional refreshInterval: number

Interval for peer table refresh

Default: 60s

Defined in

packages/devp2p/src/types.ts:69


shouldFindNeighbours

Optional shouldFindNeighbours: boolean

Toggles whether or not peers should be queried with ‘findNeighbours’ to discover more peers

Default: true

Defined in

packages/devp2p/src/types.ts:77


shouldGetDnsPeers

Optional shouldGetDnsPeers: boolean

Toggles whether or not peers should be discovered by querying EIP-1459 DNS lists

Default: false

Defined in

packages/devp2p/src/types.ts:84


timeout

Optional timeout: number

Timeout for peer requests

Default: 10s

Defined in

packages/devp2p/src/types.ts:48