autoprune minor post-merge improvements #6058

pull jonasschnelli wants to merge 2 commits into bitcoin:master from jonasschnelli:2015/04/autoprune_info changing 2 files +15 −0
  1. jonasschnelli commented at 8:12 PM on April 24, 2015: contributor
    • Adds information about whether we are in pruned mode or not to RPC getblockchaininfo().
    • Produces appropriate response when trying to access a pruned block over REST and RPC.
  2. sipa commented at 8:13 PM on April 24, 2015: member

    Please don't extend getinfo. We want to deprecate it.

  3. jonasschnelli cross-referenced this on Apr 24, 2015 from issue re-enable wallet in autoprune by jonasschnelli
  4. jonasschnelli force-pushed on Apr 25, 2015
  5. jonasschnelli renamed this:
    add autoprune information to RPC "getinfo"
    add autoprune information to RPC "getblockchaininfo"
    on Apr 25, 2015
  6. jonasschnelli force-pushed on Apr 25, 2015
  7. jonasschnelli force-pushed on Apr 25, 2015
  8. jonasschnelli commented at 6:31 PM on April 25, 2015: contributor

    @sipa: right. You already told me that on IRC. My mistake, sorry. Moved information to getblockchaininfo().

  9. add autoprune information to RPC "getblockchaininfo" 1b2e555593
  10. in src/rpcblockchain.cpp:None in 76c2a4c7f0 outdated
     491 | @@ -492,6 +492,15 @@ Value getblockchaininfo(const Array& params, bool fHelp)
     492 |      obj.push_back(Pair("difficulty",            (double)GetDifficulty()));
     493 |      obj.push_back(Pair("verificationprogress",  Checkpoints::GuessVerificationProgress(chainActive.Tip())));
     494 |      obj.push_back(Pair("chainwork",             chainActive.Tip()->nChainWork.GetHex()));
     495 | +    obj.push_back(Pair("autoprune",             fPruneMode));
    


    sipa commented at 9:19 PM on April 26, 2015:

    I think we're abolishing the name "autoprune". Can you just call it "pruned" or something?

  11. jonasschnelli force-pushed on Apr 26, 2015
  12. jgarzik commented at 9:31 PM on April 26, 2015: contributor

    ut ACK

  13. jonasschnelli renamed this:
    add autoprune information to RPC "getblockchaininfo"
    autoprune minor post-merge improvements
    on Apr 27, 2015
  14. jonasschnelli commented at 3:22 AM on April 27, 2015: contributor

    Renamed and added some error handling for REST and RPC when trying to access a pruned block.

  15. jonasschnelli force-pushed on Apr 27, 2015
  16. sipa commented at 9:05 AM on April 27, 2015: member

    utACK

  17. laanwj added the label Improvement on Apr 29, 2015
  18. laanwj commented at 10:14 AM on April 29, 2015: member

    utACK after @sdaftuar 's nit fixed. The error message specifically mentions "pruned", so it should be sure that's actually the case.

  19. jonasschnelli force-pushed on Apr 29, 2015
  20. jonasschnelli commented at 11:27 AM on April 29, 2015: contributor

    Agreed with @sdaftuar. Corrected prune mode test.

  21. jonasschnelli force-pushed on May 2, 2015
  22. appropriate response when trying to get a block in pruned mode 03c56872b5
  23. jonasschnelli force-pushed on May 11, 2015
  24. laanwj merged this on May 11, 2015
  25. laanwj closed this on May 11, 2015

  26. laanwj referenced this in commit 7e0e7f823f on May 11, 2015
  27. jonasschnelli cross-referenced this on May 14, 2015 from issue Add autoprune functionality by sdaftuar
  28. bitcoin 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-05-20 06:55 UTC