refactor: move *index constants out of validation #26235

pull fanquake wants to merge 3 commits into bitcoin:master from fanquake:move_index_from_val changing 5 files +7 −4
  1. fanquake commented at 3:04 PM on October 3, 2022: member

    Move *index default constants out of validation.h.

  2. in src/node/caches.cpp:10 in 3521e630bf outdated
       3 | @@ -4,6 +4,7 @@
       4 |  
       5 |  #include <node/caches.h>
       6 |  
       7 | +#include <index/txindex.h>
       8 |  #include <txdb.h>
       9 |  #include <util/system.h>
      10 |  #include <validation.h>
    


    stickies-v commented at 4:58 PM on October 3, 2022:

    No more need for validation.h


    fanquake commented at 5:21 PM on October 3, 2022:

    Dropped.

  3. DrahtBot added the label Refactoring on Oct 3, 2022
  4. stickies-v approved
  5. stickies-v commented at 5:04 PM on October 3, 2022: contributor

    ACK 3521e630b - more sensible place for these constants to live

  6. refactor: move DEFAULT_TXINDEX from validation to txindex 2bfc1e6aaa
  7. refactor: move DEFAULT_COINSTATSINDEX from validation to coinstatsindex c87d569189
  8. refactor: move DEFAULT_BLOCKFILTERINDEX from val to blockfilterindex 7d14577d0f
  9. fanquake force-pushed on Oct 3, 2022
  10. stickies-v commented at 5:24 PM on October 3, 2022: contributor

    re-ACK 7d14577d0f9316feef3bcb5220aa3037748615d3

  11. DrahtBot commented at 11:40 PM on October 3, 2022: contributor

    <!--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:

    • #25704 (refactor: Remove almost all validation option globals by MarcoFalke)
    • #24897 ([Draft / POC] Silent Payments by w0xlt)
    • #24539 (Add a "tx output spender" index by sstone)

    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.

  12. aureleoules approved
  13. aureleoules commented at 7:08 AM on October 4, 2022: member

    ACK 7d14577d0f9316feef3bcb5220aa3037748615d3

  14. maflcko merged this on Oct 4, 2022
  15. maflcko closed this on Oct 4, 2022

  16. fanquake deleted the branch on Oct 4, 2022
  17. sidhujag referenced this in commit 06d3f5426b on Oct 4, 2022
  18. bitcoin locked this on Nov 8, 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-22 06:13 UTC

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