mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-05 10:42:13 +02:00
Merge bitcoin/bitcoin#31403: test: Call generate RPCs through test framework only
fa6e599cf9test: Call generate through test framework only (MarcoFalke) Pull request description: The generate RPCs are special in that they should only be called by the test framework itself. This way, they will call the sync function on the nodes, which can avoid intermittent test issues. Also, when the sync is disabled, it will happen explicitly by setting the `sync_fun`. Apply this rule here, so that all generate calls are written consistently. ACKs for top commit: achow101: ACKfa6e599cf9rkrux: tACKfa6e599cf9hodlinator: ACKfa6e599cf9i-am-yuvi: Tested ACKfa6e599cf9Tree-SHA512: 31079997f1e17031ecd577904457e0560388aa53cadb1bbda281865271e8e4cf244bc6bf315838a717bf9d6620c201093e30039aa0007bec3629f7ca56abfba3
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
# Copyright (c) 2020-2022 The Bitcoin Core developers
|
||||
# Copyright (c) 2020-present The Bitcoin Core developers
|
||||
# Distributed under the MIT software license, see the accompanying
|
||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
"""Test Migrating a wallet from legacy to descriptor."""
|
||||
@@ -463,7 +463,7 @@ class WalletMigrationTest(BitcoinTestFramework):
|
||||
addr_info = wallet.getaddressinfo(addr)
|
||||
desc = descsum_create("pk(" + addr_info["pubkey"] + ")")
|
||||
|
||||
self.master_node.generatetodescriptor(1, desc, invalid_call=False)
|
||||
self.generatetodescriptor(self.master_node, 1, desc)
|
||||
|
||||
bals = wallet.getbalances()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user