Skip to content

NO-TICK: Use block height when resolving pre-state hash.#169

Merged
goral09 merged 2 commits intocasper-network:masterfrom
goral09:block_exec_proto_height
Aug 26, 2020
Merged

NO-TICK: Use block height when resolving pre-state hash.#169
goral09 merged 2 commits intocasper-network:masterfrom
goral09:block_exec_proto_height

Conversation

@goral09
Copy link
Contributor

@goral09 goral09 commented Aug 26, 2020

This PR changes how the pre-state hash for the finalized block is calculated. Instead of fetching it by protoblock's hash we fetch it based on the finalized block height.

@goral09 goral09 requested review from Fraser999 and afck August 26, 2020 08:38
@goral09
Copy link
Contributor Author

goral09 commented Aug 26, 2020

Tested by running 5-node network: no errors, no warnings and nodes finalized same blocks in the same order.

Copy link
Contributor

@afck afck left a comment

Choose a reason for hiding this comment

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

Looks good to me.
I'm still a bit confused and am wondering whether this will come back to bite us; but I don't see how. Anyway, could you add the reason why we need this to the description? (I know we talked about it yesterday, but I can't remember.)

@goral09
Copy link
Contributor Author

goral09 commented Aug 26, 2020

First, I think it's simpler. Second, the reason for doing it is so that we can turn linear chain's Block(header) into FinalizedBlock.

@goral09 goral09 merged commit 29f9863 into casper-network:master Aug 26, 2020
@goral09 goral09 deleted the block_exec_proto_height branch August 26, 2020 09:51
rafal-ch pushed a commit that referenced this pull request Sep 11, 2024
rafal-ch pushed a commit that referenced this pull request Sep 11, 2024
sacherjj pushed a commit that referenced this pull request Oct 7, 2025
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.

2 participants