Skip to content
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

Fixed bug in consensus #181

Merged
merged 3 commits into from
Aug 19, 2022
Merged

Fixed bug in consensus #181

merged 3 commits into from
Aug 19, 2022

Conversation

ricardopinto
Copy link
Contributor

@ricardopinto ricardopinto commented Aug 18, 2022

Scope

What is changing with this PR?
Fixed a bug in consensus that would block it after an accusation was found. Shout out to @nelsonhp for helping debugging, identifying and fixing this one.

Why?

Why are we doing this?
Because otherwise consensus would halt forever after an accusation was found and the malicious validator was evicted.

Round of tests

Unit tests

  • Consensus unit tests

Integration tests

  • Deployment
  • ETHDKG
  • Consensus working normally without any transactions on the network
  • Sync
  • Snapshots
  • Fast sync
  • Consensus working normally with transactions on the network
  • Sync while transactions are being processed by the network
  • Fast sync while transactions are being processed by the network

@ricardopinto ricardopinto added t/bug Something isn't working go Pull requests that update Go code labels Aug 18, 2022
@codecov
Copy link

codecov bot commented Aug 18, 2022

Codecov Report

Merging #181 (2150719) into main (7269b95) will increase coverage by 0.06%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #181      +/-   ##
==========================================
+ Coverage   53.38%   53.45%   +0.06%     
==========================================
  Files         338      338              
  Lines       43043    43042       -1     
  Branches      367      367              
==========================================
+ Hits        22978    23007      +29     
+ Misses      17641    17617      -24     
+ Partials     2424     2418       -6     
Impacted Files Coverage Δ
consensus/lstate/statechnglocal.go 72.55% <100.00%> (+0.46%) ⬆️
badgerTrie/smt_merkle_proof.go 69.53% <0.00%> (ø)
consensus/objs/rs.go 60.65% <0.00%> (+0.78%) ⬆️
consensus/lstate/engine.go 53.21% <0.00%> (+1.89%) ⬆️
consensus/lstate/statecastlocal.go 57.10% <0.00%> (+2.18%) ⬆️
consensus/objs/pcn.go 41.30% <0.00%> (+3.26%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@ricardopinto ricardopinto marked this pull request as ready for review August 18, 2022 20:55
@ricardopinto ricardopinto requested a review from a team as a code owner August 18, 2022 20:55
@nelsonhp nelsonhp merged commit 642d11f into alicenet:main Aug 19, 2022
vtleonardo referenced this pull request in vtleonardo/alicenet Sep 26, 2022
* Prevents double processing in p2p client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Pull requests that update Go code t/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants