-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
WIP: Initial window downtime slash fix #1792
WIP: Initial window downtime slash fix #1792
Conversation
…that a newly bonded validator is 'good' so they can immediately start losing that reputation, rather than having to accrue it within the first SignedBlocksWindow blocks. This way we are able to slash as soon as validator fails to sign MinSignedPerWindow blocks in any given window; rather waiting until SignedBlocksWindow has passed
…tArray to be pre-initialised, rather than starting from zero; add new tests to assert new behaviour
… without having go installed locally
Codecov Report
@@ Coverage Diff @@
## develop #1792 +/- ##
===========================================
- Coverage 63.46% 63.44% -0.02%
===========================================
Files 117 117
Lines 6914 6919 +5
===========================================
+ Hits 4388 4390 +2
- Misses 2270 2272 +2
- Partials 256 257 +1 |
Link to forum conversation: As I mentioned in the forum:
Aka. I'm not sure if we want this, good to get @cwgoes input though Also for future reference this PR has not followed a general procedure from contributing which is to open up a proposal github issue with a suggested design before writing code... we just don't want anyone to waste time when the code will potentially not be used! To our foley, I just reviewed the contributing guidelines and I'll note that this information isn't clearly and explicitly stated, I'm going to address that now. For the time being let's use this pull request to discuss this potential issue, but we may (not necessarily!) have to scrap or rewrite this code depending on the conclusions we arrive at! edit: chris thinks you wrote good tests :) |
Thanks for the PR (and FWIW I think it's very well-written). Let's discuss the desired behavior a bit more first - see this post. |
Should be merged into a reference branch @cwgoes |
closing saved to reference branch for later implementation in |
Ref #2480 |
docs/
) - overall behaviour hasn't deviated from that documented.PENDING.md
cmd/gaia
andexamples/
- no changeFor Admin Use: