mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05: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")
|
send_wrpc = self.nodes[0].get_wallet_rpc("desc1")
|
||||||
|
|
||||||
# Generate some coins
|
# 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
|
# Make transactions
|
||||||
self.log.info("Test sending and receiving")
|
self.log.info("Test sending and receiving")
|
||||||
|
|
|
@ -74,7 +74,7 @@ class ImportDescriptorsTest(BitcoinTestFramework):
|
||||||
assert_equal(wpriv.getwalletinfo()['keypoolsize'], 0)
|
assert_equal(wpriv.getwalletinfo()['keypoolsize'], 0)
|
||||||
|
|
||||||
self.log.info('Mining coins')
|
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 -----------------------------------------------
|
# RPC importdescriptors -----------------------------------------------
|
||||||
|
|
||||||
|
@ -405,7 +405,7 @@ class ImportDescriptorsTest(BitcoinTestFramework):
|
||||||
solvable=True,
|
solvable=True,
|
||||||
ismine=True)
|
ismine=True)
|
||||||
txid = w0.sendtoaddress(address, 49.99995540)
|
txid = w0.sendtoaddress(address, 49.99995540)
|
||||||
self.generatetoaddress(w0, 6, w0.getnewaddress())
|
self.generatetoaddress(self.nodes[0], 6, w0.getnewaddress())
|
||||||
self.sync_blocks()
|
self.sync_blocks()
|
||||||
tx = wpriv.createrawtransaction([{"txid": txid, "vout": 0}], {w0.getnewaddress(): 49.999})
|
tx = wpriv.createrawtransaction([{"txid": txid, "vout": 0}], {w0.getnewaddress(): 49.999})
|
||||||
signed_tx = wpriv.signrawtransactionwithwallet(tx)
|
signed_tx = wpriv.signrawtransactionwithwallet(tx)
|
||||||
|
|
Loading…
Add table
Reference in a new issue