-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go/txsource: commission schedule amendments workload #2766
Conversation
49eff4c
to
01543f1
Compare
Codecov Report
@@ Coverage Diff @@
## master #2766 +/- ##
==========================================
+ Coverage 62.99% 63.25% +0.25%
==========================================
Files 388 389 +1
Lines 36828 37047 +219
==========================================
+ Hits 23200 23433 +233
+ Misses 10661 10640 -21
- Partials 2967 2974 +7
Continue to review full report at Codecov.
|
01543f1
to
16443da
Compare
Wouldn't it be better if the CLI argument to configure the runtime ID would be part of the runtime workload definition?
|
yeah (also probably ment for: #2759 :) ) |
Oops yeah, sorry I replied to the wrong e-mail :(
|
a300ac6
to
cc245c9
Compare
cc245c9
to
5e53567
Compare
5e53567
to
adb80b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to know about the schedule pruning. Where is that done?
|
||
// Check existing bound steps. In case there are existing steps for epoch | ||
// before `nextAlignedBoundChangeEpoch`, those cannot get amended and also | ||
// won't be pruned yet. Therefore we need to count those to not go over the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see that we're checking for steps that would be pruned
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We aren't checking for steps that would be pruned. We are checking for existing steps that won't get amended by the amendment that we are making (since the earliest step in the amendment we are submitting will be at nextAlignedBoundChangeEpoch
, existing steps for epochs smaller than it (and greater than current epoch) will be kept).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we check for steps that will get overridden here:
https://github.com/oasislabs/oasis-core/pull/2766/files#diff-569acfc539454f2a192a525f1dbbb355R190-R197
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
link seems to be out of date
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We aren't checking for steps that would be pruned.
Shouldn't we though? Because we can make the amendment longer if we take that into account
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and the comment mentions that it only counts steps that wouldn't be pruned. but the code counts steps that would be pruned too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh i think i know what you're saying, so the existingCommissionSchedule
obtained by account.Escrow.CommissionSchedule
could itself contain non pruned steps (meaning contain more than one past step with epoch.Start<currentEpoch
) - since we actually only prune it on amendments and not automatically on every epoch.
I don't think that can actually happen at the moment since we are constantly amending schedules, the existing schedules should get pruned more or less on every epoch, but nevertheless i'll do pruning on the obtained existingCommissionSchedule
to cover the case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that can actually happen at the moment since we are constantly amending schedules, the existing schedules should get pruned more or less on every epoch
ah yeah good point
c1b3ea2
to
393d7e7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lg thanks for the changes
393d7e7
to
f0da05c
Compare
thanks for the reviews |
Changing commission schedule workload, part of: #2506
TODO: