forked from evmos/evmos
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Introduce
In the following code, the project use Time.now to do some validate process. this validate may perform different in each node which could been called as non_determinism. It will cause the consensus to fail.
evermint/x/evm/utils/validation.go
Lines 28 to 35 in 74c1675
| if vestingAcc.GetEndTime() > time.Now().UTC().Unix() { | |
| reason = "unexpired vesting account is not suitable for destroying" | |
| return | |
| } | |
| } | |
| if vestingAcc, ok := account.(vesting.VestingAccount); ok { | |
| if vestingAcc.GetEndTime() > time.Now().UTC().Unix() { |
Ref
Recommand
Don't use Time.now in your project
Metadata
Metadata
Assignees
Labels
No labels