Class: PoolOptions

net.PoolOptions

new PoolOptions()

PoolOptions

Source:

Methods

(static) fromOptions(options) → {PoolOptions}

Instantiate options from object.

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

(private) _createSocket(port, host) → {net.Socket}

Default createSocket call.

Parameters:
Name Type Description
port Number
host String
Source:
Returns:
Type
net.Socket

(private) _resolve(name) → {Array:.<String:>}

Default resolve call.

Parameters:
Name Type Description
name String
Source:
Returns:
Type
Array:.<String:>

(private) createNonce(hostname) → {Buffer}

Create a version packet nonce.

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

(private) fromOptions(options) → {PoolOptions}

Inject properties from object.

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

(private) getHeight() → {Number}

Get the chain height.

Source:
Returns:
Type
Number

(private) getRate(hash) → {Rate}

Get fee rate for txid.

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

(private) getRequiredServices() → {Number}

Get required services for outbound peers.

Source:
Returns:
Type
Number

(private) hasNonce(nonce) → {Boolean}

Test whether version nonce is ours.

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

(private) hasWitness() → {Boolean}

Whether segwit is enabled.

Source:
Returns:
Type
Boolean

(private) isFull() → {Boolean}

Test whether the chain is synced.

Source:
Returns:
Type
Boolean