mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 02:25:40 +01:00
test: use CInv::MSG_WITNESS_TX flag in p2p_segwit
This commit is contained in:
parent
24ee4f01ea
commit
aa3621385e
@ -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)
|
||||
|
@ -63,6 +63,7 @@ MSG_CMPCT_BLOCK = 4
|
||||
MSG_WTX = 5
|
||||
MSG_WITNESS_FLAG = 1 << 30
|
||||
MSG_TYPE_MASK = 0xffffffff >> 2
|
||||
MSG_WITNESS_TX = MSG_TX | MSG_WITNESS_FLAG
|
||||
|
||||
FILTER_TYPE_BASIC = 0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user