460@@ -461,8 +461,12 @@ struct ChainstateManagerOptions {
461 .block_tree_db_params = DBParams{
462 .path = data_dir / "blocks" / "index",
463 .cache_bytes = kernel::CacheSizes{DEFAULT_KERNEL_CACHE}.block_tree_db,
464+ .memory_only = false,
465 }}},
466- m_context{context}, m_chainstate_load_options{node::ChainstateLoadOptions{}}
467+ m_context{context}, m_chainstate_load_options{node::ChainstateLoadOptions{
468+ .coins_db_in_memory = false,
469+ .coins_error_cb = {},
I think these options are set by default?
Yes they are. No strong opinion, but it might be better to also explicitly set the default values here (in the kernel code -
ChainstateManagerOptions ctor) for options we have setters for. Looks more intentional and readable to me this way.
But
coins_error_cb = {} is to make the
compiler happy.