76: Add indexing of ExecutionPayloads (and other Merge-related updates). #73

Merged
telackey merged 30 commits from telackey/the_merge into main 2022-09-29 01:39:56 +00:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit 552b3cb682 - Show all commits

View File

@ -303,7 +303,7 @@ func (ps *ProcessSlot) getSignedBeaconBlock(serverAddress string) error {
ps.SszSignedBeaconBlock = []byte{}
ps.ParentBlockRoot = ""
ps.Status = "skipped"
return nil
return err
}
var signedBeaconBlock SignedBeaconBlock
@ -314,7 +314,7 @@ func (ps *ProcessSlot) getSignedBeaconBlock(serverAddress string) error {
ps.SszSignedBeaconBlock = []byte{}
ps.ParentBlockRoot = ""
ps.Status = "skipped"
return nil
return err
}
ps.FullSignedBeaconBlock = &signedBeaconBlock

View File

@ -59,6 +59,9 @@ func querySsz(endpoint string, slot string) ([]byte, int, error) {
loghelper.LogSlotError(slot, err).Error("Unable to turn response into a []bytes array!")
return nil, rc, fmt.Errorf("Unable to turn response into a []bytes array!: %s", err.Error())
}
if rc != 200 {
return body, rc, fmt.Errorf("HTTP Error: %d", rc)
}
return body, rc, nil
}