package
0.13.6
Repository: https://github.com/cryptix-network/cryptixd.git
Documentation: pkg.go.dev

# Functions

New returns a new instance of FlowContext.
NewSharedRequestedBlocks returns a new instance of SharedRequestedBlocks.
NewSharedRequestedTransactions returns a new instance of SharedRequestedTransactions.

# Constants

TransactionIDPropagationInterval is the interval between transaction IDs propagations.

# Variables

ErrPingTimeout signifies that a ping operation timed out.

# Structs

FlowContext holds state that is relevant to more than one flow or one peer, and allows communication between different flows that can be associated to different peers.
SharedRequestedBlocks is a data structure that is shared between peers that holds the hashes of all the requested blocks to prevent redundant requests.
SharedRequestedTransactions is a data structure that is shared between peers that holds the IDs of all the requested transactions to prevent redundant requests.

# Type aliases

OnNewBlockTemplateHandler is a handler function that's triggered when a new block template is available.
OnPruningPointUTXOSetOverrideHandler is a handle function that's triggered whenever the UTXO set resets due to pruning point change via IBD.
OnTransactionAddedToMempoolHandler is a handler function that's triggered when a transaction is added to the mempool.