test: use MiniWallet for rpc_createmultisig.py

This test can now be run even with the Bitcoin Core wallet disabled.
This commit is contained in:
Ayush Sharma
2022-03-22 14:17:51 +05:30
parent 3617d22562
commit 2726b60a3a
3 changed files with 62 additions and 45 deletions

View File

@ -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 = []