aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_segwit.py
diff options
context:
space:
mode:
authorGregory Sanders <gsanders87@gmail.com>2020-08-02 20:56:52 -0400
committerGregory Sanders <gsanders87@gmail.com>2020-08-02 21:07:44 -0400
commit0fea6ede1b46f5137e8ea0fbacce169d97e4a5ee (patch)
tree669935afea12a49f3220c4ff76893cdb5e4d63e7 /test/functional/p2p_segwit.py
parenta78742830aa35bf57bcb0a4730977a1e5a1876bc (diff)
downloadbitcoin-0fea6ede1b46f5137e8ea0fbacce169d97e4a5ee.tar.xz
Restore test case for p2p transaction blinding
Introduced in ca10a03addf70421893791c2c499e82fc494d60b then erroneously removed in 8d8099e97ab8af2126f6fbd223fbd82c52f2e85e. The restored line is how we are checking that the node will still re-request a specific txid given a witness-related failure.
Diffstat (limited to 'test/functional/p2p_segwit.py')
-rwxr-xr-xtest/functional/p2p_segwit.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/p2p_segwit.py b/test/functional/p2p_segwit.py
index 728212ca23..07efc36e67 100755
--- a/test/functional/p2p_segwit.py
+++ b/test/functional/p2p_segwit.py
@@ -1319,9 +1319,11 @@ class SegWitTest(BitcoinTestFramework):
tx3.wit.vtxinwit[0].scriptWitness.stack = [witness_program2]
tx3.rehash()
- # Node will not be blinded to the transaction
+ # Node will not be blinded to the transaction, requesting it any number of times
+ # since it is being announced via txid relay.
self.std_node.announce_tx_and_wait_for_getdata(tx3)
test_transaction_acceptance(self.nodes[1], self.std_node, tx3, True, False, 'tx-size')
+ self.std_node.announce_tx_and_wait_for_getdata(tx3)
# Remove witness stuffing, instead add extra witness push on stack
tx3.vout[0] = CTxOut(tx2.vout[0].nValue - 1000, CScript([OP_TRUE, OP_DROP] * 15 + [OP_TRUE]))