Class: PeerOptions

net.PeerOptions()

Peer Options

Constructor

new PeerOptions()

Create peer options.

Source:

Methods

(private, static) createNonce(hostname) → {Buffer}

Create a version packet nonce.

Parameters:
Name Type Description
hostname String
Source:
Returns:
Type
Buffer

(static) fromOptions(options) → {PeerOptions}

Instantiate options from object.

Parameters:
Name Type Description
options Object
Source:
Returns:
Type
PeerOptions

(private, static) getHeight() → {Number}

Get the chain height.

Source:
Returns:
Type
Number

(private, static) getRate(hash) → {Rate}

Get fee rate for txid.

Parameters:
Name Type Description
hash Hash
Source:
Returns:
Type
Rate

(private, static) hasNonce(nonce) → {Boolean}

Test whether version nonce is ours.

Parameters:
Name Type Description
nonce Buffer
Source:
Returns:
Type
Boolean

(private, static) isFull() → {Boolean}

Test whether the chain is synced.

Source:
Returns:
Type
Boolean

(private) fromOptions(options) → {PeerOptions}

Inject properties from object.

Parameters:
Name Type Description
options Object
Source:
Returns:
Type
PeerOptions