Remove unused code from wallet and validation interface #6152

pull fanquake wants to merge 1 commits into bitcoin:master from fanquake:remove_unused_cwallet changing 4 files +0 −19
  1. fanquake commented at 9:13 AM on May 18, 2015: member

    Fixes #6109

  2. Remove unused code from wallet and validation interface
    Fixes #6109
    08d9373e2f
  3. laanwj added the label Wallet on May 18, 2015
  4. jonasschnelli commented at 1:36 PM on May 18, 2015: contributor

    code-review ACK. I think we don't need that code part (EraseTransaction) in near future. Removing makes sense.

  5. laanwj commented at 10:51 AM on May 21, 2015: member

    Not convinced about this. I do think we want to be able to remove unconfirmed, or conflicting transactions at some point (e.g. when implementing replace-by-fee, or other cases where the transaction is to time out after a while if it doesn't make it into a block). ("hide" semantics would work too, of course, instead of truly deleting, but there needs to be a notification path for this)

  6. luke-jr commented at 3:58 AM on June 2, 2015: member

    @laanwj I don't see a case where deleting or hiding a still-valid transaction is a good idea. And the only way it can become invalid is if a conflicting one is confirmed; even in that case, I don't think we want erase semantics. IMO the signal should go. The wallet may conceivably want to erase a transaction it is respending itself, especially once the respend has confirmed, so I agree the CWallet method should stay for now.

  7. laanwj commented at 3:56 PM on June 3, 2015: member

    @luke-jr True, in the case I mentioned it will be the wallet itself deciding to remove the transaction, not the node logic. So the notification path could go...

  8. laanwj merged this on Jun 5, 2015
  9. laanwj closed this on Jun 5, 2015

  10. laanwj referenced this in commit 12cdbabc26 on Jun 5, 2015
  11. fanquake deleted the branch on May 12, 2016
  12. zkbot referenced this in commit df07f9ad23 on Feb 15, 2017
  13. MarcoFalke locked this on Sep 8, 2021

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-04-21 15:15 UTC

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