Skip to content

Commit

Permalink
(NOBIDS) node_jobs: do not check if epoch is not 0 for exit-jobs (#2872)
Browse files Browse the repository at this point in the history
  • Loading branch information
guybrush authored May 2, 2024
1 parent d5d8825 commit 4a9ca17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/node_jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (nj *NodeJob) ParseData() error {
//var d *VoluntaryExitsNodeJobData
var d *phase0.SignedVoluntaryExit
err := json.Unmarshal(nj.RawData, &d)
if err == nil && d.Message.Epoch != 0 {
if err == nil {
if nj.Type != "" && nj.Type != UnknownNodeJobType && nj.Type != VoluntaryExitsNodeJobType {
return fmt.Errorf("nodejob.RawData mismatches nodejob.Type (%v)", nj.Type)
}
Expand Down

0 comments on commit 4a9ca17

Please sign in to comment.