mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-09 12:31:21 +00:00
This reverts commit 1c5ec22d09
.
This commit is contained in:
parent
1c5ec22d09
commit
fd2886b927
@ -625,7 +625,7 @@ func verifyAndSaveNewPoSHeader(
|
||||
// Side chain or something weird
|
||||
// TODO(yperbasis): considered non-canonical because some missing headers were downloaded but not canonized
|
||||
// Or it's not a problem because forkChoice is updated frequently?
|
||||
status, latestValidHash, validationError, criticalError := cfg.hd.ValidatePayload(tx, header, body, false, cfg.execPayload)
|
||||
status, latestValidHash, validationError, criticalError := cfg.hd.ValidatePayload(tx, header, body, cfg.chainConfig.TerminalTotalDifficulty, false, cfg.execPayload)
|
||||
if criticalError != nil {
|
||||
return &privateapi.PayloadStatus{CriticalError: criticalError}, false, criticalError
|
||||
}
|
||||
|
@ -1106,7 +1106,7 @@ func (hd *HeaderDownload) StorePayloadFork(tx kv.RwTx, header *types.Header, bod
|
||||
return nil
|
||||
}
|
||||
|
||||
func (hd *HeaderDownload) ValidatePayload(tx kv.RwTx, header *types.Header, body *types.RawBody, store bool, execPayload func(kv.RwTx, *types.Header, *types.RawBody, uint64, []*types.Header, []*types.RawBody) error) (status remote.EngineStatus, latestValidHash common.Hash, validationError error, criticalError error) {
|
||||
func (hd *HeaderDownload) ValidatePayload(tx kv.RwTx, header *types.Header, body *types.RawBody, terminalTotalDifficulty *big.Int, store bool, execPayload func(kv.RwTx, *types.Header, *types.RawBody, uint64, []*types.Header, []*types.RawBody) error) (status remote.EngineStatus, latestValidHash common.Hash, validationError error, criticalError error) {
|
||||
hd.lock.Lock()
|
||||
defer hd.lock.Unlock()
|
||||
maxDepth := uint64(16)
|
||||
|
Loading…
Reference in New Issue
Block a user