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

Function thinIsSmaller

src/blocksender.cpp:81–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81static 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
86static bool withinDepthLimits(int depth, int blockHeight, int activeChainHeight) {
87 return blockHeight >= activeChainHeight - depth;

Callers 1

sendBlockMethod · 0.85

Calls 1

GetSerializeSizeFunction · 0.85

Tested by

no test coverage detected