Skip to content
This repository was archived by the owner on Jul 27, 2022. It is now read-only.

Problem (Fix #1091): Inactivated validator can still appear in block proposer #1092

Merged
merged 1 commit into from
Feb 18, 2020

Conversation

yihuang
Copy link
Collaborator

@yihuang yihuang commented Feb 18, 2020

Solution:

  • Check validator not active when record reward stats

… in block proposer

Solution:
- Check validator not active when record reward stats
Copy link
Contributor

@tomtau tomtau left a comment

Choose a reason for hiding this comment

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

not that happy about validator_voting_power being used directly (I left it public for later encapsulation), but I guess ok for a quick fix for now, as implementation will likely change after crypto-org-chain/chain-docs#79

@tomtau
Copy link
Contributor

tomtau commented Feb 18, 2020

bors r+

@codecov
Copy link

codecov bot commented Feb 18, 2020

Codecov Report

Merging #1092 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master   #1092      +/-   ##
=========================================
- Coverage   66.41%   66.4%   -0.01%     
=========================================
  Files         145     145              
  Lines       18792   18793       +1     
=========================================
- Hits        12480   12479       -1     
- Misses       6312    6314       +2
Impacted Files Coverage Δ
chain-abci/src/app/app_init/validator_state.rs 79.47% <100%> (+0.05%) ⬆️
chain-core/src/tx/fee/mod.rs 87% <0%> (-0.5%) ⬇️
chain-core/src/common/merkle_tree.rs 98.55% <0%> (-0.25%) ⬇️

bors bot added a commit that referenced this pull request Feb 18, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1092: Problem (Fix #1091): Inactivated validator can still appear in block proposer r=tomtau a=yihuang

Solution:
- Check validator not active when record reward stats

1094: Problem (Fix #1093): Mock mode in master branch not buildable r=tomtau a=yihuang

Solution:
- Make it build again



Co-authored-by: yihuang <huang@crypto.com>
@bors
Copy link
Contributor

bors bot commented Feb 18, 2020

Build failed (retrying...)

bors bot added a commit that referenced this pull request Feb 18, 2020
Merge #1092

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1092: Problem (Fix #1091): Inactivated validator can still appear in block proposer r=tomtau a=yihuang

Solution:
- Check validator not active when record reward stats

Co-authored-by: yihuang <huang@crypto.com>
@bors
Copy link
Contributor

bors bot commented Feb 18, 2020

Build failed

@tomtau
Copy link
Contributor

tomtau commented Feb 18, 2020

bors retry

bors bot added a commit that referenced this pull request Feb 18, 2020
Merge #1092

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1092: Problem (Fix #1091): Inactivated validator can still appear in block proposer r=tomtau a=yihuang

Solution:
- Check validator not active when record reward stats

Co-authored-by: yihuang <huang@crypto.com>
@bors
Copy link
Contributor

bors bot commented Feb 18, 2020

@bors bors bot merged commit 8195441 into crypto-com:master Feb 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants