aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_segwit.py
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2020-08-08 13:22:19 +0200
committerJon Atack <jon@atack.com>2020-08-26 11:57:27 +0200
commitaa3621385ee66c9dde5c632c0a79fba3a6ea2d62 (patch)
tree4f29c6cfc3d15e78c6828e19dce50f3a06a22115 /test/functional/p2p_segwit.py
parent24ee4f01eadb870435712950a1364cf0def06e9f (diff)
downloadbitcoin-aa3621385ee66c9dde5c632c0a79fba3a6ea2d62.tar.xz
test: use CInv::MSG_WITNESS_TX flag in p2p_segwit
Diffstat (limited to 'test/functional/p2p_segwit.py')
-rwxr-xr-xtest/functional/p2p_segwit.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/p2p_segwit.py b/test/functional/p2p_segwit.py
index 564e49f3d8..b80e7994be 100755
--- a/test/functional/p2p_segwit.py
+++ b/test/functional/p2p_segwit.py
@@ -25,6 +25,7 @@ from test_framework.messages import (
MSG_BLOCK,
MSG_TX,
MSG_WITNESS_FLAG,
+ MSG_WITNESS_TX,
MSG_WTX,
NODE_NETWORK,
NODE_WITNESS,
@@ -2158,7 +2159,7 @@ class SegWitTest(BitcoinTestFramework):
self.wtx_node.wait_for_getdata([tx.sha256], 60)
with mininode_lock:
lgd = self.wtx_node.lastgetdata[:]
- assert_equal(lgd, [CInv(MSG_TX|MSG_WITNESS_FLAG, tx.sha256)])
+ assert_equal(lgd, [CInv(MSG_WITNESS_TX, tx.sha256)])
# Send tx through
test_transaction_acceptance(self.nodes[0], self.wtx_node, tx, with_witness=False, accepted=True)