txdb: Fix assert crash in new UTXO set cursor #7904

pull laanwj wants to merge 1 commits into bitcoin:master from laanwj:2016_04_fix_utxo_iterator changing 1 files +1 −5
  1. laanwj commented at 10:10 AM on April 18, 2016: member

    Remove the mistaken assumption that GetKey returning false signifies an internal database issue. It will return false when the key cannot be deserialized into the (char,uint256) stanza, which indicates that the cursor has reached a different kind of key.

    Fixes bug #7890 introduced in #7756.

  2. txdb: Fix assert crash in new UTXO set cursor
    Remove the mistaken assumption that GetKey returning false signifies
    an internal database issue. It will return false when the key cannot
    be deserialized into the (char,uint256) stanza, which indicates
    that the cursor has reached a different kind of key.
    
    Fixes bug #7890 introduced in #7756.
    a3310b4d48
  3. laanwj added the label UTXO Db and Indexes on Apr 18, 2016
  4. sipa commented at 10:49 AM on April 18, 2016: member

    utACK a3310b4d485b1510c240f1db882530590b6fd7c9

  5. paveljanik commented at 12:04 PM on April 18, 2016: contributor

    tested ACK https://github.com/bitcoin/bitcoin/pull/7904/commits/a3310b4d485b1510c240f1db882530590b6fd7c9

    Current master aborts at the end of gettxoutsetinfo:

    Assertion failed: (ok), function Next, file txdb.cpp, line 139.
    Abort trap: 6
    

    With this change, the command finished without abort.

    Thanks!

  6. laanwj merged this on Apr 19, 2016
  7. laanwj closed this on Apr 19, 2016

  8. laanwj referenced this in commit fc9e3346e6 on Apr 19, 2016
  9. codablock referenced this in commit 8602b99318 on Sep 16, 2017
  10. codablock referenced this in commit b64cd1ea96 on Sep 19, 2017
  11. codablock referenced this in commit 9b0bc05565 on Sep 27, 2017
  12. codablock referenced this in commit 89fcb5dc5f on Oct 12, 2017
  13. codablock referenced this in commit 17f2ea5d73 on Oct 19, 2017
  14. UdjinM6 referenced this in commit e1885ea7ad on Nov 8, 2017
  15. str4d referenced this in commit 4f3d6245d5 on Jan 27, 2018
  16. str4d referenced this in commit 9b1958bf06 on Mar 9, 2018
  17. str4d referenced this in commit 18752ec0ce on Mar 12, 2018
  18. str4d referenced this in commit 8b4e86b6d3 on Mar 15, 2018
  19. str4d referenced this in commit 9160285eea on Mar 30, 2018
  20. str4d referenced this in commit c602b06475 on Apr 4, 2018
  21. str4d referenced this in commit 06f21492d5 on May 31, 2018
  22. str4d referenced this in commit 9d3c1a7098 on Oct 24, 2018
  23. str4d referenced this in commit 06f3023ac1 on Jan 4, 2019
  24. str4d referenced this in commit 2705fea323 on Mar 14, 2019
  25. str4d referenced this in commit 9e893790c3 on Apr 2, 2019
  26. str4d referenced this in commit ffc99bbf49 on Apr 5, 2019
  27. str4d referenced this in commit 3647f0a7b1 on May 23, 2019
  28. milesmanley referenced this in commit aad9246f47 on Jun 22, 2019
  29. blondfrogs referenced this in commit 8156c70d30 on Jun 28, 2019
  30. milesmanley referenced this in commit 6ffd55e6b6 on Aug 27, 2019
  31. TheTrunk referenced this in commit 0d20c51843 on Aug 27, 2019
  32. 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-13 18:15 UTC

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