|
|
@ -6538,7 +6538,7 @@ bool SendMessages(CNode* pto) |
|
|
|
CBlock block; |
|
|
|
CBlock block; |
|
|
|
assert(ReadBlockFromDisk(block, pBestIndex, consensusParams)); |
|
|
|
assert(ReadBlockFromDisk(block, pBestIndex, consensusParams)); |
|
|
|
CBlockHeaderAndShortTxIDs cmpctblock(block); |
|
|
|
CBlockHeaderAndShortTxIDs cmpctblock(block); |
|
|
|
pto->PushMessage(NetMsgType::CMPCTBLOCK, cmpctblock); |
|
|
|
pto->PushMessageWithFlag(SERIALIZE_TRANSACTION_NO_WITNESS, NetMsgType::CMPCTBLOCK, cmpctblock); |
|
|
|
state.pindexBestHeaderSent = pBestIndex; |
|
|
|
state.pindexBestHeaderSent = pBestIndex; |
|
|
|
} else if (state.fPreferHeaders) { |
|
|
|
} else if (state.fPreferHeaders) { |
|
|
|
if (vHeaders.size() > 1) { |
|
|
|
if (vHeaders.size() > 1) { |
|
|
|