diff --git a/crates/node/core/src/node_config.rs b/crates/node/core/src/node_config.rs index fef518c60..ff36528dc 100644 --- a/crates/node/core/src/node_config.rs +++ b/crates/node/core/src/node_config.rs @@ -323,7 +323,9 @@ impl NodeConfig { let total_difficulty = provider .header_td_by_number(head)? - .expect("the total difficulty for the latest block is missing, database is corrupt"); + // total difficulty is effectively deprecated, but still required in some places, e.g. + // p2p + .unwrap_or_default(); let hash = provider .block_hash(head)?