|
August 31, 2014, 12:53:49 PM Last edit: August 31, 2014, 01:07:52 PM by sanic |
|
Hello, I have a website which will be using Bitcoin to receive payments and I'm wondering how to reduce the memory usage of Bitcoind.
I have pre-generated 1,000,000 addresses (using keypool) for my website which will contain the encrypted wallet.dat with a long and random encryption key which will not be stored, written down, or memorized. I chose 1,000,000 as it is large enough not to have to worry about generating any new addresses anytime soon. On my own PC I will have the wallet.dat encrypted with a key that I know, so I could use my funds from my PC.
I have no intentions to send any Bitcoins from my website, only receive, so I require to be able to use Bitcoind's API (getreceivedbyaddress).
Bitcoind uses about 700MB of memory, which is roughly the size of the wallet.dat, so I assume it loads it into memory.
Is there any way to reduce the memory usage without reducing the amount of pre-generated keys? or any other suggestions?
PS: I would prefer not using any external services to fetch the balance or the amount received for addresses.
Thanks!
|