Skip to content

Commit ba923e3

Browse files
test: Fix broken segwit test
1 parent 920c090 commit ba923e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/p2p_segwit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,8 +771,8 @@ def test_p2sh_witness(self):
771771
# segwit-aware would also reject this for failing CLEANSTACK.
772772
test_transaction_acceptance(self.nodes[0], self.test_node, spend_tx, with_witness=False, accepted=False)
773773

774-
# Try to put the witness script in the script_sig, should also fail.
775-
spend_tx.vin[0].script_sig = CScript([p2wsh_pubkey, b'a'])
774+
# Try to put the witness script in the scriptSig, should also fail.
775+
spend_tx.vin[0].scriptSig = CScript([p2wsh_pubkey, b'a'])
776776
spend_tx.rehash()
777777
test_transaction_acceptance(self.nodes[0], self.test_node, spend_tx, with_witness=False, accepted=False)
778778

0 commit comments

Comments
 (0)