| 37 | } |
| 38 | |
| 39 | void UpdateBestHeaderSent(CNode& node, CBlockIndex* blockIndex) { |
| 40 | // When we send a block, were also sending its header. |
| 41 | NodeStatePtr state(node.id); |
| 42 | if (!state->bestHeaderSent) |
| 43 | state->bestHeaderSent = blockIndex; |
| 44 | |
| 45 | if (state->bestHeaderSent->nHeight <= blockIndex->nHeight) |
| 46 | state->bestHeaderSent = blockIndex; |
| 47 | } |
no outgoing calls
no test coverage detected