mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-26 05:17:22 +00:00
Combine function parameters (#9242)
This commit is contained in:
parent
2ffe8336fc
commit
e1d543a77b
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user