mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-08 22:28:12 -05:00
validator/pow: store block difficulty info in sled
This commit is contained in:
@@ -40,7 +40,7 @@ struct Node {
|
||||
impl Node {
|
||||
fn new() -> Result<Self> {
|
||||
let blockchain = Blockchain::new(&sled::Config::new().temporary(true).open()?)?;
|
||||
let module = PoWModule::new(blockchain.clone(), None, POW_TARGET);
|
||||
let module = PoWModule::new(blockchain.clone(), None, POW_TARGET)?;
|
||||
Ok(Self { blockchain, module })
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user