From a0e809b9499980043dacc770d40a244d4a2a20c8 Mon Sep 17 00:00:00 2001 From: jimthematrix Date: Mon, 26 Jun 2023 13:23:57 -0400 Subject: [PATCH] Fix chains where the difficulty has risen above the 100 bitlength (#44) --- eth/protocols/eth/handshake.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/protocols/eth/handshake.go b/eth/protocols/eth/handshake.go index 2898f2e242..9d1fe18a7e 100644 --- a/eth/protocols/eth/handshake.go +++ b/eth/protocols/eth/handshake.go @@ -69,7 +69,7 @@ func (p *Peer) Handshake(network uint64, td *big.Int, head common.Hash, genesis // TD at mainnet block #7753254 is 76 bits. If it becomes 100 million times // larger, it will still fit within 100 bits - if tdlen := p.td.BitLen(); tdlen > 100 { + if tdlen := p.td.BitLen(); tdlen > 200 { return fmt.Errorf("too large total difficulty: bitlen %d", tdlen) } return nil