Skip to content

Commit

Permalink
Changed current time for delegator tx
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko Boben committed Aug 21, 2023
1 parent de80c32 commit d4341e1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,9 @@ func (e *ProposalTxExecutor) AddDelegatorTx(tx *txs.AddDelegatorTx) error {
return state.ErrMissingParentState
}
currentTimestamp := parentState.GetTimestamp()
now := e.Clk.Time()

_, maxValidatorStake, minDelegatorStake, _, _, minDelegateDuration, maxStakeDuration, minFutureStartTimeOffset, maxValidatorWeightFactor, _ := GetCurrentInflationSettings(currentTimestamp, e.Backend.Ctx.NetworkID, e.Config)
_, maxValidatorStake, minDelegatorStake, _, _, minDelegateDuration, maxStakeDuration, minFutureStartTimeOffset, maxValidatorWeightFactor, _ := GetCurrentInflationSettings(now, e.Backend.Ctx.NetworkID, e.Config)

duration := tx.Validator.Duration()
switch {
Expand Down

0 comments on commit d4341e1

Please sign in to comment.