mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-11 09:42:17 +01:00
0cdddeb224kernel: Move block tree db open to BlockManager constructor (TheCharlatan)7fbb1bc44bkernel: Move block tree db open to block manager (TheCharlatan)57ba59c0cdrefactor: Remove redundant reindex check (TheCharlatan) Pull request description: Before this change the block tree db was needlessly re-opened during startup when loading a completed snapshot. Improve this by letting the block manager open it on construction. This also simplifies the test code a bit. The change was initially motivated to make it easier for users of the kernel library to instantiate a BlockManager that may be used to read data from disk without loading the block index into a cache. ACKs for top commit: maflcko: re-ACK0cdddeb224🏪 achow101: ACK0cdddeb224mzumsande: re-ACK0cdddeb224Tree-SHA512: fe3d557a725367e549e6a0659f64259cfef6aaa565ec867d9a177be0143ff18a2c4a20dd57e35e15f97cf870df476d88c05b03b6a7d9e8d51c568d9eda8947ef
48 KiB
48 KiB