Instance Method
setBlockTreeDBInMemory(_:)
Keeps the block-index database in RAM instead of on disk.
func setBlockTreeDBInMemory(_ inMemory: Bool)
Parameters
-
inMemory
-
true to use an in-memory block-index DB.
Discussion
Used by swift-bitcoinkernel’s test suite — see the regtest chainstate fixtures in ChainstateManagerTests. In production, leave disabled so the index survives process restart.