Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
docs: ADR-009 to revamp testing framework #1157
docs: ADR-009 to revamp testing framework #1157
Changes from 11 commits
43cea10
6152e82
009947e
b96d805
81eb8f3
bad46c9
cdd5dcf
d9f5c9e
6235136
c383c40
f5c0dbd
8bc5d5b
b3c447e
802de69
557c17a
cb8e706
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be
end_block
to denote that the storing of the store root and commitment prefix happens whenend_block
is called?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Here is my view:
end_block
doesn't produce the block as the top-level store is not committed yet. So, the context doesn't have access to the latest block yet. Hence, the latest block metadata is stored after producing the block, which is the nextbegin_block
.If you agree, I should add this logic in the doc - as this is a valid question that you raised.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I think what you're saying is that the storing of the root at the commitment prefix happens in the most recent block (i.e. not actually in a call to
end_block
)? If that's the case, it might be clearer to clarify that by saying "most recent block" instead of "end block", as that could be easily confused with theend_block
function name.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah. I think I misread your comment before. Yes, it happens in the
end_block
procedure.To avoid confusion, here is the order: