aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework/wallet.py
diff options
context:
space:
mode:
authorAyush Sharma <mrayushs933@gmail.com>2022-03-22 14:17:51 +0530
committerAyush Sharma <mrayushs933@gmail.com>2022-03-22 14:17:51 +0530
commit2726b60a3ac098b44f2970bed21147b70e12a1c2 (patch)
treeb5c8646d6c10ad99f94b990b5b74253cb4a3a5c7 /test/functional/test_framework/wallet.py
parent3617d225628f629bbfa686937edf63f66f12e138 (diff)
downloadbitcoin-2726b60a3ac098b44f2970bed21147b70e12a1c2.tar.xz
test: use MiniWallet for rpc_createmultisig.py
This test can now be run even with the Bitcoin Core wallet disabled.
Diffstat (limited to 'test/functional/test_framework/wallet.py')
-rw-r--r--test/functional/test_framework/wallet.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/test_framework/wallet.py b/test/functional/test_framework/wallet.py
index dd41a740ae..979858e2ee 100644
--- a/test/functional/test_framework/wallet.py
+++ b/test/functional/test_framework/wallet.py
@@ -93,6 +93,9 @@ class MiniWallet:
self._address, self._internal_key = create_deterministic_address_bcrt1_p2tr_op_true()
self._scriptPubKey = bytes.fromhex(self._test_node.validateaddress(self._address)['scriptPubKey'])
+ def get_balance(self):
+ return sum(u['value'] for u in self._utxos)
+
def rescan_utxos(self):
"""Drop all utxos and rescan the utxo set"""
self._utxos = []