aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p-segwit.py
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2017-11-30 16:49:01 -0800
committerPieter Wuille <pieter.wuille@gmail.com>2018-01-09 15:27:55 -0800
commit57273f2b302949d4ca3511f703627b5d717be40c (patch)
tree1802905af456623f59bbe3cef222e9cc67cc6201 /test/functional/p2p-segwit.py
parentcf2c0b6f5cde584d7004ff1b5b476ef54de6b74b (diff)
[test] Serialize CTransaction with witness by default
Diffstat (limited to 'test/functional/p2p-segwit.py')
-rwxr-xr-xtest/functional/p2p-segwit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/p2p-segwit.py b/test/functional/p2p-segwit.py
index a06601c38e..26de0119cd 100755
--- a/test/functional/p2p-segwit.py
+++ b/test/functional/p2p-segwit.py
@@ -25,7 +25,7 @@ MAX_SIGOP_COST = 80000
# Calculate the virtual size of a witness block:
# (base + witness/4)
def get_virtual_size(witness_block):
- base_size = len(witness_block.serialize())
+ base_size = len(witness_block.serialize(with_witness=False))
total_size = len(witness_block.serialize(with_witness=True))
# the "+3" is so we round up
vsize = int((3*base_size + total_size + 3)/4)