aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2016-06-26 20:19:00 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2016-06-26 20:19:00 +0200
commit252675efc69ec0638d96a69fbc349a612cd1e2b7 (patch)
treebd7883d23e7a7818592c342fc11474cf03e9e37b /src/main.cpp
parent1922e5a6545835ac57e8a56aa4c4a251c07fe9e9 (diff)
downloadbitcoin-252675efc69ec0638d96a69fbc349a612cd1e2b7.tar.xz
Do not send witnesses in cmpctblock
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 6cdd55e397..0bc90ab4a7 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -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) {