Combine function parameters (#9242)

This commit is contained in:
terence tsao 2021-07-21 07:55:37 -07:00 committed by GitHub
parent 2ffe8336fc
commit e1d543a77b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -225,7 +225,7 @@ func proposalDependentRoot(s iface.BeaconState, epoch types.Epoch) ([]byte, erro
// advanceState advances state with empty transitions up to the requested epoch start slot. // advanceState advances state with empty transitions up to the requested epoch start slot.
// In case 1 epoch ahead was requested, we take the start slot of the current epoch. // In case 1 epoch ahead was requested, we take the start slot of the current epoch.
// Taking the start slot of the next epoch would result in an error inside state.ProcessSlots. // Taking the start slot of the next epoch would result in an error inside state.ProcessSlots.
func advanceState(ctx context.Context, s iface.BeaconState, requestedEpoch types.Epoch, currentEpoch types.Epoch) (iface.BeaconState, error) { func advanceState(ctx context.Context, s iface.BeaconState, requestedEpoch, currentEpoch types.Epoch) (iface.BeaconState, error) {
var epochStartSlot types.Slot var epochStartSlot types.Slot
var err error var err error
if requestedEpoch == currentEpoch+1 { if requestedEpoch == currentEpoch+1 {