Skip to content

Commit

Permalink
comment the dag.set_reindex_root in block chain initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
jackzhhuang committed Sep 9, 2024
1 parent 4f3c900 commit 7d7837b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chain/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ impl BlockChain {
vm_metrics,
dag: dag.clone(),
};
let genesis_header = storage
.get_block_header_by_hash(genesis)?
.ok_or_else(|| format_err!("failed to get genesis because it is none"))?;
dag.set_reindex_root(genesis_header.parent_hash())?;
// let genesis_header = storage
// .get_block_header_by_hash(genesis)?
// .ok_or_else(|| format_err!("failed to get genesis because it is none"))?;
// dag.set_reindex_root(genesis_header.parent_hash())?;
watch(CHAIN_WATCH_NAME, "n1251");
match uncles {
Some(data) => chain.uncles = data,
Expand Down

0 comments on commit 7d7837b

Please sign in to comment.