aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_segwit.py
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-09-23 20:44:15 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2018-09-23 22:03:38 +0200
commitba923e32a0c03fcbb6ffe317580fd1d04669ce71 (patch)
treeb05d9546234ebd97e7de9a1aa47097d53dccff1c /test/functional/p2p_segwit.py
parent920c090f63f4990bf0f3b3d1a6d3d8a8bcd14ba0 (diff)
downloadbitcoin-ba923e32a0c03fcbb6ffe317580fd1d04669ce71.tar.xz
test: Fix broken segwit test
Diffstat (limited to 'test/functional/p2p_segwit.py')
-rwxr-xr-xtest/functional/p2p_segwit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/p2p_segwit.py b/test/functional/p2p_segwit.py
index de12ab1ed6..58bfd1c942 100755
--- a/test/functional/p2p_segwit.py
+++ b/test/functional/p2p_segwit.py
@@ -771,8 +771,8 @@ class SegWitTest(BitcoinTestFramework):
# segwit-aware would also reject this for failing CLEANSTACK.
test_transaction_acceptance(self.nodes[0], self.test_node, spend_tx, with_witness=False, accepted=False)
- # Try to put the witness script in the script_sig, should also fail.
- spend_tx.vin[0].script_sig = CScript([p2wsh_pubkey, b'a'])
+ # Try to put the witness script in the scriptSig, should also fail.
+ spend_tx.vin[0].scriptSig = CScript([p2wsh_pubkey, b'a'])
spend_tx.rehash()
test_transaction_acceptance(self.nodes[0], self.test_node, spend_tx, with_witness=False, accepted=False)