mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
eth/catalyst: add validation error in new paylaod hash mismatch
This commit is contained in:
parent
f988b2332e
commit
7b718d5be8
1 changed files with 2 additions and 1 deletions
|
|
@ -513,7 +513,8 @@ func (api *ConsensusAPI) newPayload(params engine.ExecutableData, versionedHashe
|
||||||
block, err := engine.ExecutableDataToBlock(params, versionedHashes, beaconRoot)
|
block, err := engine.ExecutableDataToBlock(params, versionedHashes, beaconRoot)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Warn("Invalid NewPayload params", "params", params, "error", err)
|
log.Warn("Invalid NewPayload params", "params", params, "error", err)
|
||||||
return engine.PayloadStatusV1{Status: engine.INVALID}, nil
|
errMsg := err.Error()
|
||||||
|
return engine.PayloadStatusV1{Status: engine.INVALID, LatestValidHash: nil, ValidationError: &errMsg}, nil
|
||||||
}
|
}
|
||||||
// Stash away the last update to warn the user if the beacon client goes offline
|
// Stash away the last update to warn the user if the beacon client goes offline
|
||||||
api.lastNewPayloadLock.Lock()
|
api.lastNewPayloadLock.Lock()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue