| 56 | } |
| 57 | |
| 58 | void 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 |
| 67 | void BlockSender::triggerNextRequest(const CChain& activeChain, const CInv& inv, CNode& node) { |
no test coverage detected