-
Notifications
You must be signed in to change notification settings - Fork 113
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
Roothash processing fees #2504
Roothash processing fees #2504
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2504 +/- ##
==========================================
- Coverage 66.97% 66.89% -0.09%
==========================================
Files 328 330 +2
Lines 30263 30498 +235
==========================================
+ Hits 20270 20403 +133
- Misses 7469 7538 +69
- Partials 2524 2557 +33
Continue to review full report at Codecov.
|
6f3b705
to
7cd1536
Compare
21371cd
to
c6acc1d
Compare
0727eb7
to
373f63f
Compare
52f453c
to
ffd9087
Compare
fe9724b
to
e130bfa
Compare
@@ -122,7 +122,7 @@ func (app *beaconApplication) onBeaconEpochChange(ctx *abci.Context, epoch epoch | |||
case true: | |||
// UNSAFE/DEBUG - Deterministic beacon. | |||
entropyCtx = debugEntropyCtx | |||
entropy = []byte("If you change this, you will fuck up the byzantine tests!!") | |||
entropy = []byte("If you change this, you will fuck up the byzantine tests!!!") |
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.
At some point we should probably just add in hacks to the scheduler that just schedules things "correctly" for the byzantine tests.
) | ||
return errors.Wrap(err, "registry: genesis suspended runtime registration failure") | ||
} | ||
var rt registry.Runtime |
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.
Instead of doing this, just make app.registerRuntime
return (*registry.Runtime, error)
?
Otherwise, the cbor.Unmarshal
call failing is a sign that something when absolutely horrifically wrong since the runtime registration does an Unmarshal.
e130bfa
to
e28cc5e
Compare
e28cc5e
to
a3e3b56
Compare
This avoids the need for passing the message type as an interface{} and thus reflection. It also cleans up some unnecessary arguments.
This refactors the rather large onCommitteeChanged method so that it is possible to apply runtime state updates in a single pass: - Preparation of new commitment pool structures based on the latest scheduler and registry states is now part of prepareNewCommittees. - Failing to fetch either committees from scheduler state or node info from registry state is now a hard error as it indicates some kind of internal state inconsistency.
Previously the set of orphaned nodes was not cleared when doing rollback which could have resulted in incorrect nodes being marked as orphaned.
Previously a compute worker would start processing requests even if the runtime required a key manager but one wasn't yet available. This caused the processing of confidential runtime transactions to fail.
a3e3b56
to
80cb5dd
Compare
Part of #2406.
TODO
registerRuntime
.