From 4f1ec0d8d2c1d44379e36a1c2bc230963fb7207d Mon Sep 17 00:00:00 2001 From: Dan Cline <6798349+Rjected@users.noreply.github.com> Date: Wed, 15 Feb 2023 19:08:37 -0500 Subject: [PATCH] fix: use td from current head for status (#1386) --- crates/net/eth-wire/src/types/status.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/net/eth-wire/src/types/status.rs b/crates/net/eth-wire/src/types/status.rs index a4dfd1278d..7bd5f859ce 100644 --- a/crates/net/eth-wire/src/types/status.rs +++ b/crates/net/eth-wire/src/types/status.rs @@ -76,6 +76,7 @@ impl Status { .chain(spec.chain) .genesis(spec.genesis_hash()) .blockhash(head.hash) + .total_difficulty(head.total_difficulty) .forkid(spec.fork_id(head)) } }