MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / send

Method send

src/blocksender.cpp:58–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void BlockSender::send(const CChain& activeChain, CNode& node,
59 CBlockIndex& blockIndex, const CInv& inv)
60{
61 sendBlock(node, blockIndex, inv.type, activeChain.Height());
62 UpdateBestHeaderSent(node, &blockIndex);
63 triggerNextRequest(activeChain, inv, node);
64}
65
66// Trigger the peer node to send a getblocks request for the next batch of inventory
67void BlockSender::triggerNextRequest(const CChain& activeChain, const CInv& inv, CNode& node) {

Callers 2

handle_writeMethod · 0.80
ProcessGetDataFunction · 0.80

Calls 2

UpdateBestHeaderSentFunction · 0.85
HeightMethod · 0.80

Tested by

no test coverage detected