Browse Source

Do not send witnesses in cmpctblock

0.13
Pieter Wuille 9 years ago
parent
commit
252675efc6
  1. 2
      src/main.cpp

2
src/main.cpp

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

Loading…
Cancel
Save