Bitcoin RPC. How to close wallet files opened by bitcoin?

0

Bitcoin RPC unloadwallet command does not close files opened by bitcoind process. I want to generate addresses for multiple wallets (over 1000) and get 'Too many opened files error'. Is there a way to close files, associated with unloaded wallet?

.bitcoin/testnet3/wallets/3f7b93e26b498be43235a9beda796d8d/.walletlock .bitcoin/testnet3/wallets/3f7b93e26b498be43235a9beda796d8d/db.log .bitcoin/testnet3/wallets/3f7b93e26b498be43235a9beda796d8d/database/log.0000000001

Elizaveta Olehnovich

Posted 2019-03-04T14:51:06.997

Reputation: 75

To begin with, why on earth do you want to do that?Anonymous 2019-03-04T15:10:51.260

For my project. I generate wallets for customersElizaveta Olehnovich 2019-03-04T15:13:18.057

That’s generally not how people go about this. At the very least the software isn’t designed to handle tens or hundreds of wallets. Generally speaking if you’re handling customer money it’ll just end up all in one wallet.Anonymous 2019-03-04T15:46:20.973

Thank you for comments. But why money would end up in one wallet? I have multiple folders under wallets directory. And Bitcoin RPC allows to create and switch between walletsElizaveta Olehnovich 2019-03-04T16:00:33.270

Why would you want them in separate wallets?Anonymous 2019-03-04T18:36:59.863

To separate users funds safelyElizaveta Olehnovich 2019-03-04T19:07:11.360

Answers

0

This is a known bug and has been fixed for 0.18 which will be released in the coming weeks.

Andrew Chow

Posted 2019-03-04T14:51:06.997

Reputation: 40 910

Yes, thank you a lot. Already found that Soooo glad it is fixed :) I'm the happiest person today!Elizaveta Olehnovich 2019-03-05T09:34:44.083