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

fix!: updating sortition executor #608

Merged
merged 3 commits into from
Jul 30, 2023
Merged

Conversation

themantre
Copy link
Contributor

Description

This PR introduces changes to the sortition executor to address several issues:

  • It fixes a bug that was causing duplicate sortition transactions.
  • It corrects the calculation used to determine whether a proposer has proposed a block or not.
  • The LastJoinedHeight replaced by LastSortitionHeight

BREAKING CHANGE

@codecov
Copy link

codecov bot commented Jul 29, 2023

Codecov Report

Merging #608 (4332456) into main (6c36120) will decrease coverage by 0.18%.
The diff coverage is 79.31%.

@@            Coverage Diff             @@
##             main     #608      +/-   ##
==========================================
- Coverage   83.46%   83.28%   -0.18%     
==========================================
  Files         154      154              
  Lines        7292     7289       -3     
==========================================
- Hits         6086     6071      -15     
- Misses        922      934      +12     
  Partials      284      284              

execution/executor/sortition.go Outdated Show resolved Hide resolved
types/account/account.go Outdated Show resolved Hide resolved
www/http/blockchain.go Show resolved Hide resolved
Copy link
Member

@amirvalhalla amirvalhalla left a comment

Choose a reason for hiding this comment

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

@themantre thanks

@kehiy kehiy enabled auto-merge (squash) July 29, 2023 19:00
@kehiy
Copy link
Contributor

kehiy commented Jul 29, 2023

@themantre LGTM

@amirvalhalla amirvalhalla enabled auto-merge (squash) July 30, 2023 06:18
@amirvalhalla amirvalhalla merged commit d30f0a2 into main Jul 30, 2023
12 checks passed
@amirvalhalla amirvalhalla deleted the updating-sortition-executor branch July 30, 2023 06:26
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.

4 participants