-
Notifications
You must be signed in to change notification settings - Fork 12
Remove the logic related to the score #162
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
Conversation
You can also remove score-related errors. Then please change the log messages related to scores to appropriate ones. |
You should consider that the score in tendermint is a combination of a block number and a view count. You cannot just replace a score to a block number. When the block number is the same, you should compare the view of the seal. |
@HoOngEe @sgkim126 I added a condition comparing the By the way, the |
The failure is caused by |
As @HoOngEe said, you cannot generally reveal view in the core module because of the solo consensus. How about implementing a compare function for the Seal structure? |
I added a compare function, and I'm trying to solve 2 test failures in Tendermint: |
I checked that the test failures occur in the part of comparing views. |
@HoOngEe I resolved some problems and checked the e2e tests. I'm waiting for your final review. |
I would merge the commits into one, but if it can be compiled for each commit, I don't matter even they are divided. |
Why does this PR remove the logic related to score, but doesn't remove the score field? |
@sgkim126 I requested @somniumism not to remove the score field. There were PRs that will conflict with this PR. One PR was adding a field in the header struct. The other PR was changing the whole tests. I thought we can split removing the score into two PRs. One is not using the score. The other one is removing the score field. IMO, removing the score field after all the big changes in the test directory will be easier. |
Each commit is normally built. When the review is finished, I will merge the four commits. |
I removed the
score
in headers. This PR may collide with #153 . To prevent a collision, I removed only the logic related to thescore
, not the field. Structs, which are related to thescore
, still have thescore
. This means that the field not be modified. However, logics such as control flow and some functions were removed. To completely remove thescore
, PR #153 must be merged first. That's on the next issue, and I think it's okay for this PR to merge.There is no problem when I replaced the value of all scores with a default value.
What remains to be done on another issue.