6 #ifndef BITCOIN_NET_PROCESSING_H
7 #define BITCOIN_NET_PROCESSING_H
13 static const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 100;
15 static const int64_t ORPHAN_TX_EXPIRE_TIME = 20 * 60;
17 static const int64_t ORPHAN_TX_EXPIRE_INTERVAL = 5 * 60;
19 static const unsigned int DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN = 100;
The block chain is a tree shaped structure starting with the genesis block at the root,...
Information about a peer.
The basic transaction that is broadcasted on the network and contained in blocks.
Capture information about block/transaction validation.
virtual void BlockChecked(const CBlock &block, const CValidationState &state)
virtual void NewPoWValidBlock(const CBlockIndex *pindex, const std::shared_ptr< const CBlock > &pblock)
PeerLogicValidation(CConnman *connmanIn)
virtual void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload)
virtual void SyncTransaction(const CTransaction &tx, const CBlockIndex *pindex, int nPosInBlock)
void UnregisterNodeSignals(CNodeSignals &nodeSignals)
Unregister a network node.
void Misbehaving(NodeId nodeid, int howmuch)
Increase a node's misbehavior score.
bool ProcessMessages(CNode *pfrom, CConnman &connman, const std::atomic< bool > &interrupt)
Process protocol messages received from a given node.
void RegisterNodeSignals(CNodeSignals &nodeSignals)
Register with a network node to receive its signals.
bool SendMessages(CNode *pto, CConnman &connman, const std::atomic< bool > &interrupt)
Send queued protocol messages to be sent to a give node.
bool GetNodeStateStats(NodeId nodeid, CNodeStateStats &stats)
Get statistics from node state.
std::vector< int > vHeightInFlight