:what:Hey guys
pls advise if there any way to reduce size of the wallet.dat file without loosing its private keys? My wallet.dat is like 300Mb and it's getting bigger every day.
:what:
How did you manage to get it that big?
Anyway... -salvagewallet is the one that might help you a bit, at least it does exactly this - grabs key pairs it can find in wallet.dat, create a new wallet.dat with these key pairs and rescan blockchain to get balance right. However it will also fill wallet.dat with some additional info about txes/addresses that your key pairs belongs to so size might be almost the same as you have now but you'll never know until you try :smile:
NOTE: As usual - make a backup before messing up with your wallet!
Hmm... It actually should store whole wallet.dat parsed info in RAM once it's loaded on wallet start afaik...Well, it has many addresses which are receiving/sending lots of tiny transactions. I'd try salvaging wallet.dat.
I wonder if it's possible to load the whole wallet.dat into RAM? Like setting dbcache=1024 in dash.conf ? Would it help speeding up wallet operations?