diff options
author | MacroFake <falke.marco@gmail.com> | 2022-07-01 12:28:33 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-07-01 12:29:23 +0200 |
commit | fa5059b7dfba6d95c14a12f21d02b63fe29b3f2b (patch) | |
tree | c8b7bf402027a0372a352b4ddb74dea00765db98 /test/functional/test_framework | |
parent | fa2924582726ee00b392bd0b5591e7d9770e1b90 (diff) | |
download | bitcoin-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/functional/test_framework')
-rw-r--r-- | test/functional/test_framework/wallet.py | 2 |
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) |