Name | Description |
discover
(required_peer_utxos)
|
Discover the network, connect to all required peers
Some nodes may want to connect to specific peers before
discovery() is considered complete
|
discoverFromClient
(api)
|
|
getBanManager
()
|
Returns an already instantiated version of the BanManager
(please also see NetworkManager.getBanMananger() )
|
getBlocksFrom
(height, onReceivedBlocks)
|
Retrieve blocks starting from height up to the highest block
that's available from the connected nodes.
|
getMissingBlockSigs
(ledger, potentialExtraSigs, acceptHeader)
|
Retrieve any missing block signatures from the connected nodes for
blocks since the last fee payment block.
|
getNetTimeOffset
(threshold, time_offset)
|
Retrieve the clock time of each node in the given quorum set,
and return the median time.
|
getNetworkInfo
()
|
|
getPeerByStake
(utxo)
|
|
getUnknownTXs
(ledger)
|
Try to retrieve TXs that this node does not have in its pool but
have seen the hash in nominations
|
gossipBlockSignature
(block_sig)
|
Gossips the ValidatorBlockSig to the network of connected validators.
|
makeBlockExternalizedHandler
(address)
|
Instantiates a client object implementing the BlockExternalizedHandler
|
makeBlockHeaderUpdatedHandler
(address)
|
Instantiates a client object implementing the BlockHeaderUpdatedHandler
|
makeDNSResolver
(peers)
|
Returns an instance of a DNSResolver
|
makePreImageReceivedHandler
(address)
|
Instantiates a client object implementing the PreImageReceivedHandler
|
makeRegistryClient
(address)
|
Instantiates a client object implementing NameRegistryAPI
|
makeTransactionReceivedHandler
(address)
|
Instantiates a client object implementing the TransactionReceivedHandler
|
onRegisterName
()
|
register network addresses into the name registry
|
onValidatorSetChanged
(validator_utxos)
|
Called when validator set is changed
|
peers
()
|
|
setRegistry
(registry)
|
Set the instance of the NameRegistry to use
|
shutdown
()
|
Shut down timers & dump the metadata
|
startPeriodicNameRegistration
()
|
Periodically registers network addresses
|
unwhitelist
(utxo)
|
Unwhitelist a Hash of a UTXO to allow banning it
|
validators
()
|
|
whitelist
(utxo)
|
Whitelist a Hash of a UTXO to avoid banning it
|
makeBanManager
(banman_conf, clock, cache)
|
Get a BanManager instance.
|
makeClient
(url)
|
Instantiates a client object implementing API
|