RPC: keypoolrefill now permits optional size parameter, to bump keypool #2776

pull jgarzik wants to merge 2 commits into bitcoin:master from jgarzik:keypoolsize changing 4 files +22 −9
  1. jgarzik commented at 6:25 PM on June 18, 2013: contributor

    Users are now permitted to increase the keypool size at runtime.

    Ideally they will update their config and restart, but that is not always feasible. This enables the admin to login, refill the keypool to handle heavy traffic needs immediately, without downtime.

    However, the keypool target size returns to its configuration-specified value at restart, as expected.

  2. BitcoinPullTester commented at 11:12 PM on June 18, 2013: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/7c1bb9a13226e7b46cc6836099809607ade8365a 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.

  3. CWallet::TopUpKeyPool() takes optional pool size argument
    Also, GetKeyPoolSize() now returns an accurate type, unsigned int.
    13dd2d090e
  4. RPC: keypoolrefill gains optional size parameter 36bd46f1c4
  5. in src/main.cpp:None in 7c1bb9a132 outdated
      48 | @@ -49,6 +49,7 @@
      49 |  bool fTxIndex = false;
      50 |  unsigned int nCoinCacheSize = 5000;
      51 |  bool fHaveGUI = false;
      52 | +unsigned int nKeyPoolTarget = 100;
    


    sipa commented at 3:51 PM on June 22, 2013:

    This variable should be in CWallet, IMHO; certainly not a global in main.

    Actually, why is this variable even necessary at all? Have CWallet::TopupKeyPool take an int size as argument, and pass GetArg("-keypool") to it, or where necessary an overridable value.

  6. jgarzik commented at 8:24 PM on June 25, 2013: contributor

    Updated per @sipa suggestion.

  7. BitcoinPullTester commented at 5:23 PM on July 8, 2013: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/36bd46f1c4330fa57a3730bd80706eca11510b55 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.

  8. gavinandresen referenced this in commit 4323bfeafd on Aug 15, 2013
  9. gavinandresen merged this on Aug 15, 2013
  10. gavinandresen closed this on Aug 15, 2013

  11. jgarzik deleted the branch on Aug 24, 2014
  12. Bushstar referenced this in commit e52763d21b on Apr 5, 2019
  13. 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:16 UTC

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