mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-04 10:12:28 +02:00
test: Call generate through test framework only
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."""
|
||||
@@ -461,7 +461,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