| 79 | } |
| 80 | |
| 81 | static bool thinIsSmaller(const CBlock& b, const XThinBlock& x) { |
| 82 | return GetSerializeSize(x, SER_NETWORK, PROTOCOL_VERSION) |
| 83 | < GetSerializeSize(b, SER_NETWORK, PROTOCOL_VERSION); |
| 84 | } |
| 85 | |
| 86 | static bool withinDepthLimits(int depth, int blockHeight, int activeChainHeight) { |
| 87 | return blockHeight >= activeChainHeight - depth; |
no test coverage detected