Class: PoolOptions

net.PoolOptions()

Pool Options

Constructor

new PoolOptions()

Create pool options.

Source:

Methods

(static) fromOptions(options) → {PoolOptions}

Instantiate options from object.

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

(private) _createNonce(hostname) → {Buffer}

Create a version packet nonce.

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

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

Default createSocket call.

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

(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) _hasNonce(nonce) → {Boolean}

Test whether version nonce is ours.

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

(private) _isFull() → {Boolean}

Test whether the chain is synced.

Source:
Returns:
Type
Boolean

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

Default resolve call.

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

(private) fromOptions(options) → {PoolOptions}

Inject properties from object.

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

(private) getRequiredServices() → {Number}

Get required services for outbound peers.

Source:
Returns:
Type
Number

hasServices(services) → {Boolean}

Test whether required services are available.

Parameters:
Name Type Description
services Number
Source:
Returns:
Type
Boolean