Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Aug 15, 2013

Conversation

jgarzik
Copy link
Contributor

@jgarzik jgarzik commented Jun 18, 2013

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.

@BitcoinPullTester
Copy link

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.

@@ -49,6 +49,7 @@
bool fTxIndex = false;
unsigned int nCoinCacheSize = 5000;
bool fHaveGUI = false;
unsigned int nKeyPoolTarget = 100;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Jeff Garzik added 2 commits June 25, 2013 16:07
@jgarzik
Copy link
Contributor Author

jgarzik commented Jun 25, 2013

Updated per @sipa suggestion.

@BitcoinPullTester
Copy link

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.

gavinandresen added a commit that referenced this pull request Aug 15, 2013
RPC: keypoolrefill now permits optional size parameter, to bump keypool
@gavinandresen gavinandresen merged commit 4323bfe into bitcoin:master Aug 15, 2013
@jgarzik jgarzik deleted the keypoolsize branch August 24, 2014 04:22
Bushstar pushed a commit to Bushstar/omnicore that referenced this pull request Apr 5, 2019
* Unify autoIS/send_smth functions

* Rename autoix-mempool.py -> autois-mempool.py

* Make sure create_raw_trx produces expected results

* Make sure sender has enough inputs and nodes are synced before starting the actual test

* Mine one block to clean mempool up

* 2 blocks is enough for IS on regtest

This also unifies it across different IS tests

* Allow wait_for_instantlock to be called on any node, not only on the one that has the tx in the wallet

* No need to query for tx this often in wait_for_instantlock

* Rename create_raw_trx -> create_raw_tx

* Fund sender with a single TX instead of 30
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants