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 force-pushed on Apr 25, 2015
  4. jonasschnelli renamed this:
    add autoprune information to RPC "getinfo"
    add autoprune information to RPC "getblockchaininfo"
    on Apr 25, 2015
  5. jonasschnelli force-pushed on Apr 25, 2015
  6. jonasschnelli force-pushed on Apr 25, 2015
  7. 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().
  8. add autoprune information to RPC "getblockchaininfo" 1b2e555593
  9. in src/rpcblockchain.cpp: 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?
  10. jonasschnelli force-pushed on Apr 26, 2015
  11. jgarzik commented at 9:31 pm on April 26, 2015: contributor
    ut ACK
  12. jonasschnelli renamed this:
    add autoprune information to RPC "getblockchaininfo"
    autoprune minor post-merge improvements
    on Apr 27, 2015
  13. 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.
  14. jonasschnelli force-pushed on Apr 27, 2015
  15. sipa commented at 9:05 am on April 27, 2015: member
    utACK
  16. laanwj added the label Improvement on Apr 29, 2015
  17. 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.
  18. jonasschnelli force-pushed on Apr 29, 2015
  19. jonasschnelli commented at 11:27 am on April 29, 2015: contributor
    Agreed with @sdaftuar. Corrected prune mode test.
  20. jonasschnelli force-pushed on May 2, 2015
  21. appropriate response when trying to get a block in pruned mode 03c56872b5
  22. jonasschnelli force-pushed on May 11, 2015
  23. laanwj merged this on May 11, 2015
  24. laanwj closed this on May 11, 2015

  25. laanwj referenced this in commit 7e0e7f823f on May 11, 2015
  26. 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: 2024-07-05 22:12 UTC

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