mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 13:07:17 +00:00
if no latest valid hash default to empty hash (#4411)
This commit is contained in:
parent
935975bebd
commit
77e2934647
@ -78,6 +78,8 @@ func convertPayloadStatus(x *remote.EnginePayloadStatus) map[string]interface{}
|
||||
}
|
||||
if x.LatestValidHash != nil {
|
||||
json["latestValidHash"] = common.Hash(gointerfaces.ConvertH256ToHash(x.LatestValidHash))
|
||||
} else {
|
||||
json["latestValidHash"] = common.Hash{}
|
||||
}
|
||||
if x.ValidationError != "" {
|
||||
json["validationError"] = x.ValidationError
|
||||
|
Loading…
Reference in New Issue
Block a user