diff --git a/node/src/main.rs b/node/src/main.rs index 0a19184..20f946a 100644 --- a/node/src/main.rs +++ b/node/src/main.rs @@ -19,6 +19,7 @@ async fn main() -> Result<(), std::io::Error> { .render(args.render) .bootstrap(args.bootstrap) .temporary(args.temporary) + .database(args.database) .start() .await; diff --git a/node/src/watcher/builder.rs b/node/src/watcher/builder.rs index 1235044..ff3a8fc 100644 --- a/node/src/watcher/builder.rs +++ b/node/src/watcher/builder.rs @@ -76,7 +76,7 @@ impl WatcherBuilder { self.addr = Some(crate::seeds_constants::SEED_NODES[0]); } - let chain = node::Blockchain::new(None, self.temporary).unwrap(); + let chain = node::Blockchain::new(self.database, self.temporary).unwrap(); let mut node = Node::new(self.addr.clone(), exec_tx.clone(), chain); log(msg!(INFO, "Built Node"));