-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
feat: [ADR-070] Unordered Transactions (1/2) #18641
Changes from 1 commit
22daac7
bd17641
990dd48
60a2d4a
03597f3
1e2254c
bc35655
7a421d4
38f1ec4
c573943
cded15e
dbb80dd
86ba3fa
f88f383
d265a13
deb44e1
fb216de
6194fdb
6c5f722
d1a59f0
975e224
453e270
44b960b
be3cad7
11cddfe
7017fdd
4f1c992
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -290,7 +290,7 @@ message TestUpdatedTxBody { | |
repeated google.protobuf.Any messages = 1; | ||
string memo = 2; | ||
int64 timeout_height = 3; | ||
uint64 some_new_field = 4; | ||
uint64 some_new_field = 5; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @facundomedica why does this fix the issue? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's because a new field was added with tag 4 to From what I understand, the rejecting of unknown fields happen by checking the tag numbers, so There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good find!! could you add a comment to not confuse future readers There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added a small comment on the test case 👌 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah this was such a footgun -- never would've found out. Thanks! |
||
string some_new_field_non_critical_field = 1050; | ||
repeated google.protobuf.Any extension_options = 1023; | ||
repeated google.protobuf.Any non_critical_extension_options = 2047; | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Changing the field number of an existing field can break backward compatibility as serialized data will not be correctly understood by the new schema. Ensure that this change is intentional and that all consumers of this protobuf are updated accordingly.