mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 03:47:29 -03:00
test: Use generate* node RPC, not wallet RPC
This commit is contained in:
parent
faac1cda6e
commit
fac7f6102f
2 changed files with 3 additions and 3 deletions
|
@ -84,7 +84,7 @@ class WalletDescriptorTest(BitcoinTestFramework):
|
|||
send_wrpc = self.nodes[0].get_wallet_rpc("desc1")
|
||||
|
||||
# Generate some coins
|
||||
self.generatetoaddress(send_wrpc, COINBASE_MATURITY + 1, send_wrpc.getnewaddress())
|
||||
self.generatetoaddress(self.nodes[0], COINBASE_MATURITY + 1, send_wrpc.getnewaddress())
|
||||
|
||||
# Make transactions
|
||||
self.log.info("Test sending and receiving")
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue