aboutsummaryrefslogtreecommitdiff
path: root/test/functional/wallet_importdescriptors.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-10-06 13:40:24 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-10-06 13:39:44 +0200
commitfac7f6102feb1eb1c47ea8cb1c75c4f4dbf2f6b0 (patch)
tree1806cdf9cc8249d023ca8319d612276399195435 /test/functional/wallet_importdescriptors.py
parentfaac1cda6e2ca1d86b1551fc90453132f249d511 (diff)
downloadbitcoin-fac7f6102feb1eb1c47ea8cb1c75c4f4dbf2f6b0.tar.xz
test: Use generate* node RPC, not wallet RPC
Diffstat (limited to 'test/functional/wallet_importdescriptors.py')
-rwxr-xr-xtest/functional/wallet_importdescriptors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/wallet_importdescriptors.py b/test/functional/wallet_importdescriptors.py
index d86c3737fe..c8f9664885 100755
--- a/test/functional/wallet_importdescriptors.py
+++ b/test/functional/wallet_importdescriptors.py
@@ -74,7 +74,7 @@ class ImportDescriptorsTest(BitcoinTestFramework):
assert_equal(wpriv.getwalletinfo()['keypoolsize'], 0)
self.log.info('Mining coins')
- self.generatetoaddress(w0, COINBASE_MATURITY + 1, w0.getnewaddress())
+ self.generatetoaddress(self.nodes[0], COINBASE_MATURITY + 1, w0.getnewaddress())
# RPC importdescriptors -----------------------------------------------
@@ -405,7 +405,7 @@ class ImportDescriptorsTest(BitcoinTestFramework):
solvable=True,
ismine=True)
txid = w0.sendtoaddress(address, 49.99995540)
- self.generatetoaddress(w0, 6, w0.getnewaddress())
+ self.generatetoaddress(self.nodes[0], 6, w0.getnewaddress())
self.sync_blocks()
tx = wpriv.createrawtransaction([{"txid": txid, "vout": 0}], {w0.getnewaddress(): 49.999})
signed_tx = wpriv.signrawtransactionwithwallet(tx)