wallet: Use MTP for locktime checks, not adjusted time #24038

pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:2201-lockstuff changing 4 files +41 −2
  1. MarcoFalke commented at 3:21 PM on January 11, 2022: member

    The "flags" parameter is used to decide whether to use MTP or network adjusted time. Make the wallet use MTP instead of adjusted time.

    Otherwise this might calculate the wrong wallet balance or list the wrong coins.

  2. MarcoFalke marked this as a draft on Jan 11, 2022
  3. MarcoFalke force-pushed on Jan 11, 2022
  4. DrahtBot added the label interfaces on Jan 11, 2022
  5. DrahtBot added the label RPC/REST/ZMQ on Jan 11, 2022
  6. DrahtBot added the label Validation on Jan 11, 2022
  7. DrahtBot added the label Wallet on Jan 11, 2022
  8. DrahtBot commented at 5:29 PM on January 11, 2022: member

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #20892 (tests: Run both descriptor and legacy tests within a single test invocation by achow101)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  9. MarcoFalke removed the label RPC/REST/ZMQ on Jan 13, 2022
  10. MarcoFalke removed the label Validation on Jan 13, 2022
  11. MarcoFalke removed the label interfaces on Jan 13, 2022
  12. MarcoFalke added the label Refactoring on Jan 13, 2022
  13. MarcoFalke marked this as ready for review on Jan 13, 2022
  14. MarcoFalke force-pushed on Jan 13, 2022
  15. MarcoFalke renamed this:
    wallet: Enforce BIP68
    wallet: Use MTP for locktime checks, not adjusted time
    on Jan 13, 2022
  16. luke-jr commented at 6:16 PM on January 13, 2022: member

    Concept ACK, but maybe while you're renaming, we should make it do CheckSequenceLocks as well?

  17. MarcoFalke removed the label Refactoring on Jan 13, 2022
  18. MarcoFalke added the label Bug on Jan 13, 2022
  19. MarcoFalke force-pushed on Jan 13, 2022
  20. MarcoFalke force-pushed on Jan 13, 2022
  21. wallet: Use MTP for locktime checks, not adjusted time fa0411993f
  22. MarcoFalke force-pushed on Jan 13, 2022
  23. MarcoFalke force-pushed on Jan 13, 2022
  24. MarcoFalke force-pushed on Jan 13, 2022
  25. MarcoFalke commented at 7:32 PM on January 13, 2022: member

    Concept ACK, but maybe while you're renaming, we should make it do CheckSequenceLocks as well?

    Thanks, I've edited the scripted diff, but I am including this in a follow-up refactor to keep the bugfix patch minimal.

  26. MarcoFalke commented at 7:49 PM on January 13, 2022: member

    The included regression test can be tested by observing a failure when running against current master

  27. luke-jr commented at 8:35 PM on January 13, 2022: member

    But without CheckSequenceLocks, this is only a partial fix, and the bug remains...?

  28. MarcoFalke commented at 10:58 AM on January 14, 2022: member
  29. MarcoFalke marked this as a draft on Jan 14, 2022
  30. MarcoFalke closed this on Jan 14, 2022

  31. MarcoFalke deleted the branch on Jan 14, 2022
  32. DrahtBot locked this on Jan 14, 2023

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-17 06:14 UTC

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