mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-06 18:53:21 +01:00
2656a5658ctests: add a test for the new blocksdir lock (Cory Fields)bdc0a68e67init: lock blocksdir in addition to datadir (Cory Fields)cabb2e5c24refactor: introduce a more general LockDirectories for init (Cory Fields)1db331ba76init: allow a new xor key to be written if the blocksdir is newly created (Cory Fields) Pull request description: This probably should've been included in #12653 when `-blocksdir` was introduced. Credit TheCharlatan for noticing that it's missing. This guards against 2 processes running with separate datadirs but the same blocksdir. I didn't add `walletdir` as I assume sqlite has us covered there. It's not likely to happen currently, but may be more relevant in the future with applications using the kernel. Note that the kernel does not currently do any dir locking, but it should. ACKs for top commit: maflcko: review ACK2656a5658c🏼 kevkevinpal: ACK [2656a56](2656a5658c) achow101: ACK2656a5658ctdb3: Code review and light test ACK2656a5658cTree-SHA512: 3ba17dc670126adda104148e14d1322ea4f67d671c84aaa9c08c760ef778ca1936832c0dc843cd6367e09939f64c6f0a682b0fa23a5967e821b899dff1fff961
112 KiB
112 KiB