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.
1#!/usr/bin/env python32# Copyright (c) 2026-present The Bitcoin Core developers3# Distributed under the MIT software license, see the accompanying4# file COPYING or http://www.opensource.org/licenses/mit-license.php.5"""Test deprecation of RPC calls."""6from test_framework.util import assert_equal7from test_framework.test_framework import BitcoinTestFramework9'''10This test exercises the deprecatedrpc=bip125 flag and deprecated -walletrbf options11and should be removed when the options are removed post deprecation.12'''13class WalletDeprecatedRBFTest(BitcoinTestFramework):14def set_test_params(self):15self.num_nodes = 116self.setup_clean_chain = True17self.extra_args = [[]]19def skip_test_if_missing_module(self):20self.skip_if_no_wallet()22def run_test(self):23self.log.info("Test -deprecatedrpc=bip125 and -walletrbf startup option")25self.restart_node(0, extra_args=["-walletrbf=0", "-deprecatedrpc=bip125"])26node = self.nodes[0]27node.createwallet("deprecated_optinrbf")28wallet = node.get_wallet_rpc("deprecated_optinrbf")29self.generatetoaddress(node, nblocks=101, address=wallet.getnewaddress(), sync_fun=self.no_op)30tx = wallet.gettransaction(wallet.sendall(recipients=[wallet.getnewaddress()])["txid"])31assert_equal("bip125-replaceable" in tx, True)32assert_equal(tx["bip125-replaceable"], "no")33self.stop_node(0, expected_stderr="Warning: -walletrbf is deprecated and will be fully removed in the next release.")36if __name__ == '__main__':37WalletDeprecatedRBFTest(__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.