Review report

core: PR #36685

1 suggestion

Optional improvements

Link

[suggestion] · The wallet interface does not test replacement-txid projection

A regression that drops either assignment could go unnoticed in this repository, leaving gui-qml without the RBF links it displays.

Location: src/wallet/interfaces.cpp:88 (head).

Details and suggested fix

MakeWalletTx copies replaces_txid and replaced_by_txid into WalletTx, but no in-tree code reads those fields; their only consumer is gui-qml, which is outside this repository. Existing functional tests read CWalletTx directly, and wallet_interfaces_tests.cpp does not cover this projection. Add an interface test that sets both values through AddToWallet and checks that getWalletTx returns them, then verifies that a transaction without either value returns std::nullopt.


Coverage details