From 57273f2b302949d4ca3511f703627b5d717be40c Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Thu, 30 Nov 2017 16:49:01 -0800 Subject: [PATCH] [test] Serialize CTransaction with witness by default --- test/functional/p2p-fullblocktest.py | 7 ++++-- test/functional/p2p-segwit.py | 2 +- test/functional/test_framework/messages.py | 25 ++++++++++++---------- test/functional/test_framework/script.py | 2 +- 4 files changed, 21 insertions(+), 15 deletions(-) diff --git a/test/functional/p2p-fullblocktest.py b/test/functional/p2p-fullblocktest.py index 010dbdcca..8d85a4a93 100755 --- a/test/functional/p2p-fullblocktest.py +++ b/test/functional/p2p-fullblocktest.py @@ -36,12 +36,15 @@ class CBrokenBlock(CBlock): self.vtx = copy.deepcopy(base_block.vtx) self.hashMerkleRoot = self.calc_merkle_root() - def serialize(self): + def serialize(self, with_witness=False): r = b"" r += super(CBlock, self).serialize() r += struct.pack("