def METHOD_NAME(self):
    # Test that it is possible to top up inactive hd chains even if there is no key origin
    # in CKeyMetadata. This tests for the segfault reported in
    # https://github.com/bitcoin/bitcoin/issues/21605
    self.log.info("Test that topping up inactive HD chains does not need upgraded key origin")
    self.nodes[0].createwallet(wallet_name="keymeta_base", descriptors=False, blank=True)
    # Createwallet is overridden in the test framework so that the descriptor option can be filled
    # depending on the test's cli args. However we don't want to do that when using old nodes that
    # do not support descriptors. So we use the createwallet_passthrough function.
    self.nodes[1].createwallet_passthrough(wallet_name="keymeta_test")
    base_wallet = self.nodes[0].get_wallet_rpc("keymeta_base")
    test_wallet = self.nodes[1].get_wallet_rpc("keymeta_test")
    # Setup both wallets with the same HD seed
    seed = get_generate_key()
    base_wallet.sethdseed(True, seed.privkey)
    test_wallet.sethdseed(True, seed.privkey)
    # Encrypting will generate a new HD seed and flush the keypool
    test_wallet.encryptwallet("pass")
    # Copy test wallet to node 0
    test_wallet.unloadwallet()
    test_wallet_dir = self.nodes[1].wallets_path / "keymeta_test"
    new_test_wallet_dir = self.nodes[0].wallets_path / "keymeta_test"
    shutil.copytree(test_wallet_dir, new_test_wallet_dir)
    self.nodes[0].loadwallet("keymeta_test")
    test_wallet = self.nodes[0].get_wallet_rpc("keymeta_test")
    self.do_inactive_test(base_wallet, test_wallet, encrypt=True)