mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-06 01:32:18 +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 {
|
if err := s.SaveHeader(collation.Header()); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := s.SaveBody(collation.Body()); err != nil {
|
return s.SaveBody(collation.Body())
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetCanonical sets the collation header as canonical in the shardDB. This is called
|
// SetCanonical sets the collation header as canonical in the shardDB. This is called
|
||||||
|
Loading…
Reference in New Issue
Block a user