aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMacroFake <falke.marco@gmail.com>2022-07-01 12:28:33 +0200
committerMacroFake <falke.marco@gmail.com>2022-07-01 12:29:23 +0200
commitfa5059b7dfba6d95c14a12f21d02b63fe29b3f2b (patch)
treec8b7bf402027a0372a352b4ddb74dea00765db98 /test
parentfa2924582726ee00b392bd0b5591e7d9770e1b90 (diff)
downloadbitcoin-fa5059b7dfba6d95c14a12f21d02b63fe29b3f2b.tar.xz
test: Make the scriptPubKey of MiniWallet created txs mutable
This makes individual bytes of the scriptPubKey mutable, previously it could only be re-assigned as a whole.
Diffstat (limited to 'test')
-rw-r--r--test/functional/test_framework/wallet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/test_framework/wallet.py b/test/functional/test_framework/wallet.py
index 7ab54618c8..2164627781 100644
--- a/test/functional/test_framework/wallet.py
+++ b/test/functional/test_framework/wallet.py
@@ -294,7 +294,7 @@ class MiniWallet:
tx = CTransaction()
tx.vin = [CTxIn(COutPoint(int(utxo_to_spend['txid'], 16), utxo_to_spend['vout']), nSequence=sequence)]
- tx.vout = [CTxOut(int(COIN * send_value), self._scriptPubKey)]
+ tx.vout = [CTxOut(int(COIN * send_value), bytearray(self._scriptPubKey))]
tx.nLockTime = locktime
if self._mode == MiniWalletMode.RAW_P2PK:
self.sign_tx(tx)