Instance Method
setChainstateDBInMemory(_:)
Keeps the chainstate (UTXO) database in RAM instead of on disk.
func setChainstateDBInMemory(_ inMemory: Bool)
Parameters
-
inMemory
-
true to use an in-memory chainstate DB.
Discussion
Test-oriented; pairs with setBlockTreeDBInMemory(_:) to make a completely ephemeral chainstate that evaporates at process exit. Not suitable for production — the UTXO set must survive restart.