Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
This behavior was first noted by @EthanHeilman here: #11368 (comment) but it was conflated with the RPC issue there while I now think this is a separate issue.
When a lot of wallets are created in quick succession, sqlite will exhaust all the available file descriptors and the node crashes the next time it tries to create file for unrelated reasons (blk, rev etc.).
Expected behaviour
The node shouldn’t crash.
Steps to reproduce
0for i in $(seq 1 100); do src/bitcoin-cli createwallet "fd-wallet$i"; done
Relevant log output
https://0bin.net/paste/swIJVCaU#CuCCWv7cC4ZscxjCEiauqEhB1icPiMHkYo+D5dC8mSr
How did you obtain Bitcoin Core
Compiled from source
What version of Bitcoin Core are you using?
master
Operating system and version
macOS
Machine specifications
No response