mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 16:37:39 +00:00
sharding: return val in SaveCollation simplified
Former-commit-id: 89be5b180c196bc4b965de200b4494abd5692f33 [formerly 9027cf7a563279b1fa6992732a3c2b2b5ca4c83b] Former-commit-id: 1303c98eca9ab5da08990c3371208ac4b6217cd3
This commit is contained in:
parent
564ba9289b
commit
562db195cd
@ -192,10 +192,7 @@ func (s *Shard) SaveCollation(collation *Collation) error {
|
||||
if err := s.SaveHeader(collation.Header()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := s.SaveBody(collation.Body()); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return s.SaveBody(collation.Body())
|
||||
}
|
||||
|
||||
// SetCanonical sets the collation header as canonical in the shardDB. This is called
|
||||
|
Loading…
Reference in New Issue
Block a user