Function cuprate_blockchain::service::init
source · pub fn init(
config: Config,
) -> Result<(DatabaseReadHandle, DatabaseWriteHandle), InitError>Expand description
Initialize a database & thread-pool, and return a read/write handle to it.
Once the returned handles are Drop::droped, the reader
thread-pool and writer thread will exit automatically.
§Errors
This will forward the error if crate::open failed.