76: Add indexing of ExecutionPayloads (and other Merge-related updates). #73
@ -303,7 +303,7 @@ func (ps *ProcessSlot) getSignedBeaconBlock(serverAddress string) error {
|
|||||||
ps.SszSignedBeaconBlock = []byte{}
|
ps.SszSignedBeaconBlock = []byte{}
|
||||||
ps.ParentBlockRoot = ""
|
ps.ParentBlockRoot = ""
|
||||||
ps.Status = "skipped"
|
ps.Status = "skipped"
|
||||||
return nil
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
var signedBeaconBlock SignedBeaconBlock
|
var signedBeaconBlock SignedBeaconBlock
|
||||||
@ -314,7 +314,7 @@ func (ps *ProcessSlot) getSignedBeaconBlock(serverAddress string) error {
|
|||||||
ps.SszSignedBeaconBlock = []byte{}
|
ps.SszSignedBeaconBlock = []byte{}
|
||||||
ps.ParentBlockRoot = ""
|
ps.ParentBlockRoot = ""
|
||||||
ps.Status = "skipped"
|
ps.Status = "skipped"
|
||||||
return nil
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
ps.FullSignedBeaconBlock = &signedBeaconBlock
|
ps.FullSignedBeaconBlock = &signedBeaconBlock
|
||||||
|
@ -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!")
|
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())
|
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
|
return body, rc, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user