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

[Merged by Bors] - tortoise: don't use active set to compute number of expected ballots #5002

Closed

Conversation

dshulyak
Copy link
Contributor

@dshulyak dshulyak commented Sep 13, 2023

closes: #4841

with this change active set is used only to verify eligibilities in the current epoch.
tortoise doesn't need to load activeset into the state, which is reflected in the accepted type

@dshulyak dshulyak marked this pull request as ready for review September 14, 2023 05:33
@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Merging #5002 (7bcbb8a) into develop (290a03a) will increase coverage by 0.0%.
The diff coverage is 90.3%.

@@           Coverage Diff           @@
##           develop   #5002   +/-   ##
=======================================
  Coverage     77.1%   77.2%           
=======================================
  Files          254     254           
  Lines        30385   30351   -34     
=======================================
- Hits         23443   23432   -11     
+ Misses        5422    5399   -23     
  Partials      1520    1520           
Files Changed Coverage Δ
common/types/ballot.go 51.8% <ø> (-0.3%) ⬇️
common/types/layer.go 82.5% <ø> (-0.7%) ⬇️
common/types/tortoise_data.go 0.0% <ø> (ø)
proposals/util.go 86.3% <ø> (ø)
proposals/util/util.go 76.9% <ø> (-2.4%) ⬇️
tortoise/state.go 97.3% <ø> (+1.0%) ⬆️
tortoise/sim/layer.go 88.9% <76.9%> (-1.6%) ⬇️
config/mainnet.go 95.8% <100.0%> (+<0.1%) ⬆️
miner/oracle.go 74.5% <100.0%> (+0.9%) ⬆️
node/node.go 63.1% <100.0%> (+<0.1%) ⬆️
... and 5 more

... and 6 files with indirect coverage changes

Copy link
Contributor

@countvonzero countvonzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you want, you can also just delete the hare active set grading all together and remove legacy layer.

@dshulyak
Copy link
Contributor Author

if you want, you can also just delete the hare active set grading all together and remove legacy layer.

probably not in this change, but will do if i will be touching that code

@dshulyak
Copy link
Contributor Author

bors merge

bors bot pushed a commit that referenced this pull request Sep 14, 2023
…5002)

closes: #4841

with this change active set is used only to verify eligibilities in the current epoch. 
tortoise doesn't need to load activeset into the state, which is reflected in the accepted type
@bors
Copy link

bors bot commented Sep 14, 2023

Pull request successfully merged into develop.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title tortoise: don't use active set to compute number of expected ballots [Merged by Bors] - tortoise: don't use active set to compute number of expected ballots Sep 14, 2023
@bors bors bot closed this Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ballots: remove GetLegacyNumEligible in the next epoch
2 participants