Conversation
ysv
left a comment
There was a problem hiding this comment.
@ysv reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @masihyeganeh and @TxCorpi0x)
x/pse/keeper/keeper.go line 38 at r1 (raw file):
AccountScoreSnapshot collections.Map[sdk.AccAddress, sdkmath.Int] AllocationSchedule collections.Map[uint64, types.ScheduledDistribution] // Map: timestamp -> ScheduledDistribution SkippedDistributions collections.Item[bool]
nit: I think SkipDistributions is slightly better name for this flag style keeper variable.
Because SkippedDistributions sounds like it returns list of skipped distributions
Code quote:
SkippedDistributionsx/pse/keeper/distribution_test.go line 332 at r1 (raw file):
requireT.NoError(err) // Process distribution err = testApp.FinalizeBlock()
I can see that startTime for distribution is in 1 hour.
Does it execute here ?
x/pse/keeper/genesis.go line 60 at r1 (raw file):
} return k.SkippedDistributions.Set(ctx, false)
shouldn't we import/export it to genesis.json also ?
miladz68
left a comment
There was a problem hiding this comment.
Reviewable status: 1 of 10 files reviewed, 2 unresolved discussions (waiting on @masihyeganeh, @TxCorpi0x, and @ysv)
x/pse/keeper/distribution_test.go line 332 at r1 (raw file):
Previously, ysv (Yaroslav Savchuk) wrote…
I can see that startTime for distribution is in 1 hour.
Does it execute here ?
start time is 1 hour before, note the -1
x/pse/keeper/genesis.go line 60 at r1 (raw file):
Previously, ysv (Yaroslav Savchuk) wrote…
shouldn't we import/export it to genesis.json also ?
Done.
x/pse/keeper/keeper.go line 38 at r1 (raw file):
Previously, ysv (Yaroslav Savchuk) wrote…
nit: I think SkipDistributions is slightly better name for this flag style keeper variable.
Because SkippedDistributions sounds like it returns list of skipped distributions
Done.
ysv
left a comment
There was a problem hiding this comment.
@ysv reviewed 9 of 9 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @masihyeganeh and @TxCorpi0x)
TxCorpi0x
left a comment
There was a problem hiding this comment.
@TxCorpi0x reviewed 1 of 5 files at r1, 9 of 9 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @masihyeganeh)
ysv
left a comment
There was a problem hiding this comment.
@ysv reviewed 3 of 3 files at r3, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @masihyeganeh)
Description
Reviewers checklist:
Authors checklist
This change is