Bitcoin Forum
May 13, 2024, 03:01:10 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: what's the benefit of keypoolrefill rpc method ?  (Read 1488 times)
Farghaly (OP)
Newbie
*
Offline Offline

Activity: 38
Merit: 0


View Profile
March 13, 2014, 11:16:57 PM
 #1

As far as i know that key pool get refilled automatically every time new address is taken out of it, so what's the benefit of keypoolrefill method ?
If you see garbage posts (off-topic, trolling, spam, no point, etc.), use the "report to moderator" links. All reports are investigated, though you will rarely be contacted about your reports.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
E.exchanger
Hero Member
*****
Offline Offline

Activity: 714
Merit: 500


NEED CRYPTO CODER? COIN DEVELOPER? PM US FOR HELP!


View Profile
March 14, 2014, 05:49:32 PM
 #2

i guess it refills automatically when it chooses to. keypoolrefill tells it to do it now  Grin
buysellbitcoin
Legendary
*
Offline Offline

Activity: 1105
Merit: 1001


https://www.zebpay.com


View Profile WWW
December 20, 2014, 12:34:56 PM
 #3

Read this answer from theymos

http://bitcoin.stackexchange.com/a/32760

Copied here :

Most people don't need to use keypoolrefill.

Bitcoin Core tries to fill the keypool to its configured maximum size whenever you take an address from the keypool. (It does not wait until the keypool is empty before regenerating it.) However, it isn't possible to add keys to the keypool unless the wallet is unlocked with walletpassphrase. So if you call getnewaddress 100 times (by default), your keypool will be empty and you will be prompted to unlock your wallet and run keypoolrefill. The same effect could be achieved by unlocking your wallet and then generating another address, which will also cause the keypool to be topped up.

Another use is if you want to temporarily increase the size of your keypool. For example, a really safe way of doing payment processing is to generate an encrypted wallet with a strong passphrase, generate thousands of keys using keypoolrefill 10000 or whatever, put this wallet on the live payment processing server, but only use the commands that don't require unlocking the wallet. Then even if the live server is compromised, the attacker can't steal the money because he can't unlock the wallet. This is similar to the idea of a watch-only wallet. You could do the same thing with the keypool setting, but I guess that restarting Bitcoin Core might be inconvenient in some cases.

Running Bitcoin with -keypool=0 and then only manually adjusting the keypool with keypoolresize might also be useful for some backup strategies, or if you have multiple servers using the same wallet (which is not recommended, but maybe possible if you're really careful).


Regards

Download Zebpay Fastest way to Buy / Sell Bitcoins in India
Transaction processing within one working day and best bitcoin rates | Recharge airtime & buy vouchers of Amazon, Flipkart, Domino's at great discounts
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!