update help for -blockmaxsize and blockprioritysize #3409

pull Diapolo wants to merge 1 commits into bitcoin:master from Diapolo:init changing 1 files +4 −3
  1. Diapolo commented at 7:51 AM on December 13, 2013: none
  2. laanwj commented at 8:02 AM on December 13, 2013: member

    Why are we hardcoding these numbers in the message instead of using the appropriate constants?

  3. Diapolo commented at 8:35 AM on December 13, 2013: none

    @laanwj Don't ask me, but sometimes it feels like I'm the only one taking care of such string changes...

  4. laanwj commented at 8:51 AM on December 13, 2013: member

    Why not simply

     strUsage += "  -blockmaxsize=<n>      " + strprintf(_("Set maximum block size in bytes (default: %d)"), DEFAULT_BLOCK_MAX_SIZE) + "\n";
     strUsage += "  -blockprioritysize=<n> " + strprintf(_("Set maximum size of high-priority/low-fee transactions in bytes (default: %d)"), DEFAULT_BLOCK_PRIORITY_SIZE) + "\n";
    
  5. update help for -blockmaxsize and blockprioritysize
    - was left out in #3326
    a9a37c8bb5
  6. Diapolo commented at 9:02 AM on December 13, 2013: none

    Good suggestion... perhaps we can update all strings containing defaults in constants that way in the future.

  7. laanwj referenced this in commit 5e2fb330fd on Dec 13, 2013
  8. laanwj merged this on Dec 13, 2013
  9. laanwj closed this on Dec 13, 2013

  10. BitcoinPullTester commented at 9:16 AM on December 13, 2013: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/a9a37c8bb5b69df4d8270d27ce070f1b16f6ff6b for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  11. Diapolo deleted the branch on Dec 16, 2013
  12. DrahtBot 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 21:15 UTC

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