fix: use td from current head for status (#1386)

This commit is contained in:
Dan Cline
2023-02-15 19:08:37 -05:00
committed by GitHub
parent 12d85087ac
commit 4f1ec0d8d2

View File

@ -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))
}
}