mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
Swap the wrong arguments in a call (#15639)
* Swap the wrong arguments in a call I saw that the names of the passed arguments and the ones of the function parameters don't match, so I suspect that it's a bug. * Add changelog * Add validation for the fillInForkChocieMissingBlocks checkpoints. * Add test for checkpoint epoch validation in fillInForkChoiceMissingBlocks. * Use a sentinel error rather than error string --------- Co-authored-by: kasey <489222+kasey@users.noreply.github.com> Co-authored-by: Preston Van Loon <preston@pvl.dev>
This commit is contained in:
@@ -159,7 +159,7 @@ func (s *Service) onBlockBatch(ctx context.Context, blks []consensusblocks.ROBlo
|
||||
}
|
||||
|
||||
// Fill in missing blocks
|
||||
if err := s.fillInForkChoiceMissingBlocks(ctx, blks[0], preState.CurrentJustifiedCheckpoint(), preState.FinalizedCheckpoint()); err != nil {
|
||||
if err := s.fillInForkChoiceMissingBlocks(ctx, blks[0], preState.FinalizedCheckpoint(), preState.CurrentJustifiedCheckpoint()); err != nil {
|
||||
return errors.Wrap(err, "could not fill in missing blocks to forkchoice")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user