Skip to content

Commit a21dfd2

Browse files
committed
partial bitcoin#24587: use MiniWallet for rpc_createmultisig.py
includes: - 2726b60 (only wallet.py)
1 parent 1ab7e9e commit a21dfd2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/functional/test_framework/wallet.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ def __init__(self, test_node, *, mode=MiniWalletMode.ADDRESS_OP_TRUE):
8989
self._address = ADDRESS_BCRT1_P2SH_OP_TRUE
9090
self._scriptPubKey = bytes.fromhex(self._test_node.validateaddress(self._address)['scriptPubKey'])
9191

92+
def get_balance(self):
93+
return sum(u['value'] for u in self._utxos)
94+
9295
def rescan_utxos(self):
9396
"""Drop all utxos and rescan the utxo set"""
9497
self._utxos = []

0 commit comments

Comments
 (0)