mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05:00
fix: p2p head initial td (#1294)
This commit is contained in:
@@ -8,7 +8,7 @@ use crate::{
|
||||
NetworkHandle, NetworkManager,
|
||||
};
|
||||
use reth_discv4::{Discv4Config, Discv4ConfigBuilder, DEFAULT_DISCOVERY_PORT};
|
||||
use reth_primitives::{ChainSpec, ForkFilter, Head, NodeRecord, PeerId, MAINNET, U256};
|
||||
use reth_primitives::{ChainSpec, ForkFilter, Head, NodeRecord, PeerId, MAINNET};
|
||||
use reth_provider::{BlockProvider, HeaderProvider};
|
||||
use reth_tasks::TaskExecutor;
|
||||
use secp256k1::{SecretKey, SECP256K1};
|
||||
@@ -309,7 +309,7 @@ impl NetworkConfigBuilder {
|
||||
number: 0,
|
||||
timestamp: 0,
|
||||
difficulty: chain_spec.genesis.difficulty,
|
||||
total_difficulty: U256::ZERO,
|
||||
total_difficulty: chain_spec.genesis.difficulty,
|
||||
});
|
||||
|
||||
// set the status
|
||||
|
||||
Reference in New Issue
Block a user