Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: SgtSpike on June 22, 2011, 07:31:02 AM



Title: What does "Flushing wallet.dat" mean?
Post by: SgtSpike on June 22, 2011, 07:31:02 AM
Currently, my bitcoind service is stuck doing it.  I'd just like to know what it means if my wallet is being flushed.  Sounds a bit frightening...


Title: Re: What does "Flushing wallet.dat" mean?
Post by: shantee on May 23, 2013, 03:53:25 PM
I am sorry this is a bit old I know..But why does this topic hasn't received any reply ?
I am also wondering the same ? what's "Flushing wallet.dat" I can read in my debug.log


Title: Re: What does "Flushing wallet.dat" mean?
Post by: twobits on May 25, 2013, 06:37:53 PM
Flushing in this context means to flush or empty out the memory buffers, and force the data to be written to disk.   Now this does not actually always work with modern consumer grade drives, but that is what it is at least trying to do when it logs that message.

One interesting thing is it uses the line

Code:
dbenv.txn_checkpoint(0, 0, 0);

to do this. While another section of code seem to have been written thinking this is a nop.  Wonder what the actually behavior is.


Title: Re: What does "Flushing wallet.dat" mean?
Post by: Quicker_777 on May 26, 2013, 12:30:36 AM

This might be a bit off-topic, I don't know... when people talk about a "paper wallet", are they just saying that they're writing down their private key(s) and putting them in a safe, and then deleting all electronic traces until they re-establish a wallet?



Title: Re: What does "Flushing wallet.dat" mean?
Post by: Photon939 on May 26, 2013, 01:14:41 AM

This might be a bit off-topic, I don't know... when people talk about a "paper wallet", are they just saying that they're writing down their private key(s) and putting them in a safe, and then deleting all electronic traces until they re-establish a wallet?



Generally yes, it's a good way to safeguard your coin stash for longer periods of time.

They can be created entirely offline and then you send all your coins to the generated address without the wallet ever being online.


Title: Re: What does "Flushing wallet.dat" mean?
Post by: Quicker_777 on May 26, 2013, 01:53:16 AM

This might be a bit off-topic, I don't know... when people talk about a "paper wallet", are they just saying that they're writing down their private key(s) and putting them in a safe, and then deleting all electronic traces until they re-establish a wallet?



Generally yes, it's a good way to safeguard your coin stash for longer periods of time.

They can be created entirely offline and then you send all your coins to the generated address without the wallet ever being online.

Thanks for the response!   So, as a follow-up, how do you "restore" a wallet with your keys?


Title: Re: What does "Flushing wallet.dat" mean?
Post by: Photon939 on May 26, 2013, 02:53:36 AM
There are command line commands for importing private keys to your wallet, it's not an option available from the GUI AFAIK