test: Call generate through test framework only

This commit is contained in:
MarcoFalke
2024-12-02 14:34:41 +01:00
parent 2eccb8bc5e
commit fa6e599cf9
3 changed files with 9 additions and 9 deletions

View File

@@ -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()