-
Notifications
You must be signed in to change notification settings - Fork 86
Conversation
src/blockchain_election.erl
Outdated
{Remove, Replace} = determine_sizes(Size, OldLen, Delay, Ledger), | ||
|
||
%% remove dupes, sort | ||
{OldGroupScored0, Gateways1} = dedup(OldGroup0, Gateways0, Ledger), |
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.
nit: I know this is probably just to keep the code super similar but calling it "Scored" is confusing.
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.
Not as confusing any more now that I saw the default score of 1.0 thing.
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.
will fix.
Codecov Report
@@ Coverage Diff @@
## master #676 +/- ##
==========================================
+ Coverage 67.96% 68.11% +0.14%
==========================================
Files 93 93
Lines 12175 12211 +36
==========================================
+ Hits 8275 8317 +42
+ Misses 3900 3894 -6
Continue to review full report at Codecov.
|
LG! |
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.
lgtm
This PR adds new election behavior that ignores hotspot scores in both selection and old elector removal. It will need to be activated by chain var, seeing
election_version
to4
.