Update bitcoin.conf #24969

pull BradleyC wants to merge 2 commits into bitcoin:master from BradleyC:patch-1 changing 1 files +4 −0
  1. BradleyC commented at 9:45 AM on April 25, 2022: none

    Add txindex to miscellaneous config options.

    As a developer migrating from Ethereum to BTC development, it's incredibly useful to see this option in the default config rather than discovering the option later and having to reindex, reboot development stack, etc.

  2. Update bitcoin.conf
    Add txindex to miscellaneous config options.
    d3f3f0ce52
  3. DrahtBot commented at 9:50 AM on April 25, 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:

    • #22235 (script: add script to generate example bitcoin.conf by josibake)

    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.

  4. josibake commented at 10:18 AM on April 25, 2022: member

    hi @BradleyC , I've proposed #22235 as a "once and for all" solution to this problem. The idea is to generate a config file from the bitcoind help output so that every config option is documented and kept up-to-date with each Bitcoin Core release. Would love to have your input on the PR

  5. in share/examples/bitcoin.conf:159 in d3f3f0ce52 outdated
     155 | @@ -156,6 +156,9 @@
     156 |  # Maintain coinstats index used by the gettxoutsetinfo RPC (default: 0).
     157 |  #coinstatsindex=1
     158 |  
     159 | +# Maintain the transaction index, which is useful for exploration and development.
    


    evanlinjin commented at 10:22 AM on April 25, 2022:

    I would be a bit more descriptive here: "Maintain transaction index for all transactions."

    Bitcoin Core by default maintains transaction indexes for "relevant" transactions: https://bitcoin.stackexchange.com/a/37979

  6. BradleyC commented at 11:14 AM on April 25, 2022: none

    Issue #22235 addresses this use case much more elegantly, when that PR gets merged this would become irrelevant.

  7. Update bitcoin.conf
    updated text for clarity
    d800211404
  8. laanwj added the label Docs on Apr 28, 2022
  9. in share/examples/bitcoin.conf:159 in d800211404
     155 | @@ -156,6 +156,10 @@
     156 |  # Maintain coinstats index used by the gettxoutsetinfo RPC (default: 0).
     157 |  #coinstatsindex=1
     158 |  
     159 | +# Maintains an index of all transactions that have ever happened, which you can query using the remote procedure 
    


    jonatack commented at 4:53 PM on April 29, 2022:
    • If you are still maintaining this proposal, you would need to remove the trailing space here for the CI linter task to pass. You can verify your change locally by running test/lint/lint-whitespace.py.

    • Maybe can be shortened and state the default, similar to the existing coinstats entry:

    -# Maintains an index of all transactions that have ever happened, which you can query using the remote procedure 
    -# call (RPC) method `getrawtransaction` or the RESTful API call `get-tx`.
    +# Maintain transaction index used by the getrawtransaction RPC (default: 0).
     #txindex=1
    
  10. fanquake commented at 7:15 PM on May 4, 2022: member

    Closing this now that #22235 has been merged.

  11. fanquake closed this on May 4, 2022

  12. laanwj commented at 7:16 PM on May 4, 2022: member

    Closing as #22235 made it in. Please make any changes to help text in the option declarations in init.cpp etc.

  13. DrahtBot locked this on May 4, 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 15:13 UTC

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