Unverified Commit 62470eea authored by Marius van der Wijden's avatar Marius van der Wijden Committed by GitHub

consensus/beacon: copy td value so we can modify it (#25230)

* consensus/beacon: copy td value so we can modify it

* consensus/beacon: copy td value so we can modify it
parent 2697e44d
......@@ -178,6 +178,7 @@ func verifyTerminalPoWBlock(chain consensus.ChainHeaderReader, preHeaders []*typ
if td == nil {
return 0, consensus.ErrUnknownAncestor
}
td = new(big.Int).Set(td)
// Check that all blocks before the last one are below the TTD
for i, head := range preHeaders {
if td.Cmp(chain.Config().TerminalTotalDifficulty) >= 0 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment