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
sealing halt on exec fork #178
sealing halt on exec fork #178
Changes from 35 commits
a97d504
0b7ae9a
8682f5f
9ad30da
f8624f7
0c84641
fb21a73
8da45d3
b82c533
c075e73
9662906
f1742a6
f186c66
36a3ec5
7269be8
94288ff
bcd4f3d
5de72e3
9f4c7ad
4bd114e
0c1f245
278b470
0df7cce
4524714
d61f61f
7c48153
6fc4c6a
a6f3aa5
2d0fef0
e1006ad
0e7af9c
ab67a1b
33de9d9
addcb4b
49fb4a1
d14a1e7
2b6e669
d798b6b
3a9d171
3ded2bf
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.
The
IncorporatedResult
is used to store approval signatures when they are received:flow-go/model/flow/incorporated_result.go
Line 26 in 7c48153
aggregatedSignatures
in the ID computation, this changes the ID of the entity, which should not be the case.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.
I don't think it changes the ID of the IncorporatedResult because
aggregatedSignatures
is a private field and is ignored in the RLP encoding which is used to calculate the IDThere 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.
💡 thanks for pointing this out @arrivets . I was not aware that RLP did skip private fields.
Obviously, I didn't read the test you wrote:
flow-go/model/flow/incorporated_result_test.go
Lines 12 to 14 in 49fb4a1
Rolled back my changes to
incorporated_result.go
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.
I'm not quite clear how this tests work.
But if you need help creating such forks in tests, I have an example here.
https://github.com/onflow/flow-go/blob/master/engine/execution/ingestion/engine_test.go#L816-L831
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.
thanks for the reference. The test for the
Builder
already contained its own implementation:flow-go/module/builder/consensus/builder_test.go
Lines 87 to 92 in addcb4b
it has some specialized functionality for testing the payload
Builder
:I am inclined to keep the current test structure as I just added a test. 😅