Skip to content

Conversation

@remagpie
Copy link
Contributor

The patches in #27 were originally ported from the CodeChain's snapshot branch, which includes CurrentValidators patch in CodeChain-io/codechain#1922. I found out that there was something wrong about the previous implementation, and introduced PreviousValidator state value to solve this.
It's almost the same as the CurrentValidators, except that it is updated with the values from CurrentValidators.
The fee calculation function is changed a bit to utilize this state value. Please take a look at it carefully.

Some other patches not related to the fee calculation are included too. A detailed explanation is written in the commit messages.

@remagpie remagpie added bug Something isn't working enhancement New feature or request labels Dec 27, 2019
@remagpie remagpie mentioned this pull request Dec 27, 2019
sgkim126
sgkim126 previously approved these changes Dec 28, 2019
foriequal0 and others added 4 commits December 29, 2019 00:43
PreviousValidators represent the list of validators whose
signatures should be included in this block. Its value is the same
as the CurrentValidators of the previous block's state, and the
NextValidators of the grandparent block's state.
CurrentValidators was introduced to tendermint, but it wasn't
used by some part of our implementation. This patch doesn't fix
all of them, but important parts are filled in.
1th term open doesn't require any reward distribution since the
0th term is static validator consensus
@sgkim126
Copy link
Contributor

sgkim126 commented Jan 2, 2020

@HoOngEe please review it.

@sgkim126 sgkim126 merged commit e81dd2c into CodeChain-io:master Jan 2, 2020
@remagpie remagpie deleted the fix-tendermint branch January 2, 2020 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants