Skip to content

Commit bcf5d91

Browse files
committed
Restore test case for p2p transaction blinding
introduced in bitcoin#8525 then erroneously removed in PR bitcoin#18044. The restored line is how we are checking that the node will still re-request a specific txid given a witness-related failure.
1 parent a787428 commit bcf5d91

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/functional/p2p_segwit.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1319,9 +1319,11 @@ def test_tx_relay_after_segwit_activation(self):
13191319
tx3.wit.vtxinwit[0].scriptWitness.stack = [witness_program2]
13201320
tx3.rehash()
13211321

1322-
# Node will not be blinded to the transaction
1322+
# Node will not be blinded to the transaction, requesting it any number of times
1323+
# since it is being announced via txid relay.
13231324
self.std_node.announce_tx_and_wait_for_getdata(tx3)
13241325
test_transaction_acceptance(self.nodes[1], self.std_node, tx3, True, False, 'tx-size')
1326+
self.std_node.announce_tx_and_wait_for_getdata(tx3)
13251327

13261328
# Remove witness stuffing, instead add extra witness push on stack
13271329
tx3.vout[0] = CTxOut(tx2.vout[0].nValue - 1000, CScript([OP_TRUE, OP_DROP] * 15 + [OP_TRUE]))

0 commit comments

Comments
 (0)