Mempool trimming regression: removes local wallet transactions #6959

issue luke-jr opened this issue on November 6, 2015
  1. luke-jr commented at 9:37 AM on November 6, 2015: member

    #6722 introduces the possibility of removing transactions generated by the local wallet from its mempool, but fails to update CMerkleTx::GetDepthInMainChain which assumes a transaction neither in the blockchain nor the mempool must be conflicted. Since the wallet transaction is now assumed to be conflicted, the wallet will happily produce a double-spend using the same inputs again.

  2. jonasschnelli commented at 9:45 AM on November 6, 2015: contributor

    During another case i was also stumbling over a GetDepthInMainChain() inconsistency. IMO the wallet should keep it's own height cache or even it's own headers-only-chain (anyways required in case of process separation).

    But anyways; the bitcoin-core local wallet (and other wallets) need to find a way to handle removed transactions from the mempool without marking them as conflicted.

    But you are saying using inputs from a conflicted transaction results in a double-spend? The transaction was removed from the mempool and is not in the chain,... that means it's available again for coin selection, isn't it?

  3. luke-jr commented at 9:50 AM on November 6, 2015: member

    In most cases, it means the wallet wishes to keep it in the mempool and rebroadcast until it is mined.

  4. jonasschnelli commented at 10:09 AM on November 6, 2015: contributor

    Yes. Such use cases, together with the FSS-RBF (or CPFP) need to be handled by the wallet.

  5. laanwj added the label Wallet on Nov 6, 2015
  6. jgarzik commented at 12:43 PM on November 6, 2015: contributor

    Yes - this problem was the same one that merge-blocked mempool janitor... Need to solve for local wallet

  7. laanwj added the label Mempool on Nov 6, 2015
  8. morcos cross-referenced this on Nov 10, 2015 from issue Mempool trimming regression: Rejects my own high prority 0-fee transactions by sturles
  9. MarcoFalke cross-referenced this on Nov 10, 2015 from issue Mempool should not reject wallet created transactions with sufficient fee by MarcoFalke
  10. sturles cross-referenced this on Nov 12, 2015 from issue [WIP] [Mempool] Add space for priority transactions by sdaftuar
  11. sturles referenced this in commit b79c9f2be6 on Nov 12, 2015
  12. MarcoFalke commented at 12:04 AM on April 27, 2020: member

    Is this still an issue with a recent version of Bitcoin Core? If yes, what are the steps to reproduce?

  13. MarcoFalke closed this on Apr 27, 2020

  14. bitcoin locked this on Feb 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-19 15:55 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me