mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
Fixed body downloader bug in Ethereum PoS of downloading blocks ahead of time (#8405)
This commit is contained in:
parent
73e2bad897
commit
afd88edea8
@ -177,8 +177,10 @@ func (e *EthereumExecutionModule) ValidateChain(ctx context.Context, req *execut
|
||||
}, tx.Commit()
|
||||
}
|
||||
|
||||
currentHeadHash := rawdb.ReadHeadHeaderHash(tx)
|
||||
|
||||
extendingHash := e.forkValidator.ExtendingForkHeadHash()
|
||||
extendCanonical := extendingHash == libcommon.Hash{}
|
||||
extendCanonical := extendingHash == libcommon.Hash{} && header.ParentHash == currentHeadHash
|
||||
|
||||
status, lvh, validationError, criticalError := e.forkValidator.ValidatePayload(tx, header, body.RawBody(), extendCanonical)
|
||||
if criticalError != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user