Skip to content

Feature: Catchup Eval Stake Exception Round Handling#5795

Merged
gmalouf merged 7 commits intoalgorand:masterfrom
gmalouf:stake-exception-rounds
Oct 23, 2023
Merged

Feature: Catchup Eval Stake Exception Round Handling#5795
gmalouf merged 7 commits intoalgorand:masterfrom
gmalouf:stake-exception-rounds

Conversation

@gmalouf
Copy link
Copy Markdown
Contributor

@gmalouf gmalouf commented Oct 20, 2023

Summary

We had a brief period where a handful of rounds had stake miniscully mismatching in cases based on delta corruption in some nodes. This pull request ensures catchup cannot stall while removing the stake dilution factor (underlying cause/corrections were addressed in the last consensus upgrade).

Test Plan

Added a new TestEval_EndOfBlockStake (thanks @algorandskiy ) to exercise various cases being handled as expected.

Comment thread ledger/eval/eval.go Outdated
Comment thread ledger/eval/eval_test.go
Comment thread ledger/eval/eval.go
Comment thread ledger/eval/eval_test.go Outdated
Comment thread ledger/eval/eval.go Outdated
Comment thread ledger/eval/eval.go Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 23, 2023

Codecov Report

Merging #5795 (1c44d24) into master (4249027) will increase coverage by 0.03%.
Report is 10 commits behind head on master.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##           master    #5795      +/-   ##
==========================================
+ Coverage   55.56%   55.60%   +0.03%     
==========================================
  Files         473      473              
  Lines       66813    66803      -10     
==========================================
+ Hits        37124    37145      +21     
+ Misses      27182    27152      -30     
+ Partials     2507     2506       -1     
Files Coverage Δ
ledger/eval/eval.go 52.93% <83.33%> (+1.89%) ⬆️

... and 13 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Co-authored-by: cce <51567+cce@users.noreply.github.com>
@gmalouf gmalouf merged commit c4e94fe into algorand:master Oct 23, 2023
@gmalouf gmalouf deleted the stake-exception-rounds branch October 23, 2023 19:27
algorandskiy added a commit to algorandskiy/go-algorand that referenced this pull request Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants