[mempool] Remove unnecessary try-block #20854

pull amitiuttarwar wants to merge 1 commits into bitcoin:master from amitiuttarwar:2021-01-load-mempool-cleanup changing 1 files +2 −8
  1. amitiuttarwar commented at 8:47 pm on January 4, 2021: contributor
    In 0.21, we added unbroadcast txids to mempool.dat (#18038). When users upgraded from 0.21 to 0.22, this would throw a misleading “failed to deserialize mempool data” error even though everything actually loaded properly. So, commit 9c8a55d added a try-block to prevent throwing the error. After upgrading to 0.22, this exception handling is no longer useful, so now we can remove it.
  2. [mempool] Remove error suppression on upgrade
    In 0.21, we added unbroadcast txids to mempool.dat. Commit 9c8a55d
    added a try-block to prevent throwing a "failed to deserialize mempool data"
    error when a user upgrades from 0.21 to 0.22. This exception handling is no
    longer useful, so now we can remove it.
    7ff05358a9
  3. DrahtBot added the label Validation on Jan 4, 2021
  4. amitiuttarwar commented at 11:58 pm on January 4, 2021: contributor

    from a quick look, the test causing CI to be red looks like a failure in interface_zmq.py around the sequence number of the coinbase tx in a block.

    seems unrelated to these changes.

  5. MarcoFalke commented at 9:46 am on January 5, 2021: member

    review ACK 7ff05358a96f49ae6b7eb265ce301748bfde30a8

    nice cleanup. ci failure is known and can be ignored

  6. MarcoFalke removed the label Validation on Jan 5, 2021
  7. MarcoFalke added the label Mempool on Jan 5, 2021
  8. theStack approved
  9. theStack commented at 10:34 am on January 5, 2021: member
    Code review ACK 7ff05358a96f49ae6b7eb265ce301748bfde30a8
  10. MarcoFalke merged this on Jan 5, 2021
  11. MarcoFalke closed this on Jan 5, 2021

  12. sidhujag referenced this in commit 80b94f53e0 on Jan 5, 2021
  13. Fabcien referenced this in commit 73f6a97f26 on Jul 20, 2022
  14. DrahtBot locked this on Aug 16, 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: 2024-12-21 15:12 UTC

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