Remove TD validation during handshake

This commit is contained in:
Marcin Sobczak 2025-02-06 12:25:48 +01:00 committed by GitHub
parent 9e33b29c74
commit 749e1924ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -316,9 +316,6 @@ loop:
return fmt.Errorf("wrong head block in status, want: %#x (block %d) have %#x",
want, chain.blocks[chain.Len()-1].NumberU64(), have)
}
if have, want := msg.TD.Cmp(chain.TD()), 0; have != want {
return fmt.Errorf("wrong TD in status: have %v want %v", have, want)
}
if have, want := msg.ForkID, chain.ForkID(); !reflect.DeepEqual(have, want) {
return fmt.Errorf("wrong fork ID in status: have %v, want %v", have, want)
}