Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1751assert_equal(info["descriptors"], True)1752assert_equal(info["format"], "sqlite")1754def run_test(self):1755self.master_node = self.nodes[0]1756self.old_node = self.nodes[1]1758self.generate(self.master_node, 101)1760# TODO: Test the actual records in the wallet for these tests too. The behavior may be correct, but the data written may not be what we actually want1761self.test_basic()1762self.test_multisig()1763self.test_other_watchonly()1764self.test_no_privkeys()1765self.test_pk_coinbases()1766self.test_encrypted()1767self.test_nonexistent()1768self.test_unloaded_by_path()1769self.test_wallet_with_path("path/to/trailing/")1770self.test_wallet_with_path("path/to/mywallet")1772migration_failure_cases = [1773"",1774os.path.abspath(self.master_node.datadir_path / "absolute_path"),1775"normallynamedwallet"1776]1777for wallet_name in migration_failure_cases:1778self.test_migration_failure(wallet_name=wallet_name)1780self.test_default_wallet()1781self.test_default_wallet_watch_only()1782self.test_direct_file()1783self.test_addressbook()1784self.test_migrate_raw_p2sh()1785self.test_conflict_txs()1786self.test_hybrid_pubkey()1787self.test_failed_migration_cleanup()1788self.test_avoidreuse()1789self.test_preserve_tx_extra_info()1790self.test_blank()1791self.test_migrate_simple_watch_only()1792self.test_manual_keys_import()1793self.test_p2wsh()1794self.test_disallowed_p2wsh()1795self.test_miniscript()1796self.test_taproot()1797self.test_no_load_after_migration()1798self.test_no_load_unnamed_wallet_does_not_autoload()1799self.test_no_load_reports_auxiliary_wallet_names()1800self.test_solvable_no_privs()1801self.test_loading_failure_after_migration()1802self.test_missing_bestblock()1804# Note: After this test the first 250 blocks of 'master_node' are pruned1805self.unsynced_wallet_on_pruned_node_fails()1807if __name__ == '__main__':1808WalletMigrationTest(__file__).main()
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.