mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 05:57:59 +01:00
5952292133wallet, rpc: show mempool conflicts in `gettransaction` result (ishaanam)54e07ee22fwallet: track mempool conflicts (ishaanam)d64922b590wallet refactor: use CWalletTx member functions to determine tx state (ishaanam)ffe5ff1fb6scripted-diff: wallet: s/TxStateConflicted/TxStateBlockConflicted (ishaanam)180973a941test: Add tests for wallet mempool conflicts (ishaanam) Pull request description: The `mempool_conflicts` variable is added to `CWalletTx`, it is a set of txids of txs in the mempool conflicting with the wallet tx or a wallet tx's parent. This PR only changes how mempool-conflicted txs are dealt with in memory. `IsSpent` now returns false for an output being spent by a mempool conflicted transaction where it previously returned true. A txid is added to `mempool_conflicts` during `transactionAddedToMempool`. A txid is removed from `mempool_conflicts` during `transactionRemovedFromMempool`. This PR also adds a `mempoolconflicts` field to the `gettransaction` wallet RPC result. Builds on #27145 Second attempt at #18600 ACKs for top commit: achow101: ACK5952292133ryanofsky: Code review ACK5952292133. Just small suggested changes since last review furszy: ACK59522921Tree-SHA512: 615779606723dbb6c2e302681d8e58ae2052ffee52d721ee0389746ddbbcf4b4c4afacf01ddf42b6405bc6f883520524186a955bf6b628fe9b3ae54cffc56a29
11 KiB
Executable File
11 KiB
Executable File