| 23 | } // ns anon |
| 24 | |
| 25 | bool KeepOutgoingPeer(const CNode& node) { |
| 26 | assert(!node.fInbound); |
| 27 | |
| 28 | // Thin blocks enabled. We want thin block peers only. |
| 29 | if (Opt().UsingThinBlocks() && !SupportsThinBlocks(node)) |
| 30 | return false; |
| 31 | |
| 32 | // When we're on the UAHF fork, we want UAHF peers only. |
| 33 | // When we're not, we don't want UAHF peers. |
| 34 | return Opt().UAHFTime() |
| 35 | ? SignalsUAHF(node) |
| 36 | : !SignalsUAHF(node); |
| 37 | } |
| 38 | |
| 39 | void UpdateBestHeaderSent(CNode& node, CBlockIndex* blockIndex) { |
| 40 | // When we send a block, were also sending its header. |