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] - update majority calculation for optimistic filtering #4879

Conversation

countvonzero
Copy link
Contributor

Motivation

Closes #4878

Changes

this change will take effect at the first layer of epoch 3

@codecov
Copy link

codecov bot commented Aug 20, 2023

Codecov Report

Merging #4879 (c6cc9e0) into develop (391cb83) will decrease coverage by 0.1%.
The diff coverage is 88.8%.

@@            Coverage Diff            @@
##           develop   #4879     +/-   ##
=========================================
- Coverage     76.7%   76.7%   -0.1%     
=========================================
  Files          256     256             
  Lines        29655   29665     +10     
=========================================
- Hits         22774   22772      -2     
- Misses        5408    5423     +15     
+ Partials      1473    1470      -3     
Files Changed Coverage Δ
blocks/generator.go 90.7% <ø> (-0.1%) ⬇️
node/node.go 64.4% <0.0%> (-0.2%) ⬇️
proposals/util/util.go 80.9% <ø> (ø)
blocks/utils.go 88.1% <100.0%> (+0.5%) ⬆️
common/types/layer.go 85.1% <100.0%> (+0.5%) ⬆️

... and 5 files with indirect coverage changes

blocks/utils.go Outdated
@@ -69,15 +69,22 @@ func getProposalMetadata(
if err != nil {
return nil, err
}
upgrade := proposals[0].Layer.Uint32() >= types.OpUpgradeLayer()
Copy link
Contributor

Choose a reason for hiding this comment

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

it is not obvious that proposals[0] exists

@countvonzero
Copy link
Contributor Author

bors merge

bors bot pushed a commit that referenced this pull request Aug 30, 2023
## Motivation
Closes #4878

## Changes
this change will take effect at the first layer of epoch 3
@bors
Copy link

bors bot commented Aug 30, 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 update majority calculation for optimistic filtering [Merged by Bors] - update majority calculation for optimistic filtering Aug 30, 2023
@bors bors bot closed this Aug 30, 2023
bors bot pushed a commit that referenced this pull request Aug 30, 2023
## Motivation
follow up on #4879 update changelog for release

also rename migration file to reflect its released state
bors bot pushed a commit that referenced this pull request Aug 30, 2023
## Motivation
follow up on #4879 update changelog for release

also rename migration file to reflect its released state
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.

optimistic filtering majority should be weighted
2 participants