-
Notifications
You must be signed in to change notification settings - Fork 112
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
Fix NodeUpdateTransaction always updating node zero #10134
Conversation
Signed-off-by: Steven Sheehy <[email protected]>
Quality Gate passedIssues Measures |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10134 +/- ##
=========================================
Coverage 92.19% 92.19%
- Complexity 7860 7861 +1
=========================================
Files 956 956
Lines 32859 32862 +3
Branches 4151 4152 +1
=========================================
+ Hits 30295 30298 +3
Misses 1587 1587
Partials 977 977 ☔ View full report in Codecov by Sentry. |
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.
LGTM
* Change node update to populate `createdTimestamp` if it's missing and an inner transaction. This is because nodes erroneously sent us updates instead of creates when migrating state. * Fix `NodeUpdateTransaction` updating the wrong node * Fix `NodeDeleteTransaction` deleting the wrong node Signed-off-by: Steven Sheehy <[email protected]>
* Change node update to populate `createdTimestamp` if it's missing and an inner transaction. This is because nodes erroneously sent us updates instead of creates when migrating state. * Fix `NodeUpdateTransaction` updating the wrong node * Fix `NodeDeleteTransaction` deleting the wrong node Signed-off-by: Steven Sheehy <[email protected]>
Cherry pick of #10134 to `release/0.121`. * Change node update to populate `createdTimestamp` if it's missing and an inner transaction. This is because nodes erroneously sent us updates instead of creates when migrating state. * Fix `NodeUpdateTransaction` updating the wrong node * Fix `NodeDeleteTransaction` deleting the wrong node Signed-off-by: Steven Sheehy <[email protected]>
Description:
createdTimestamp
if it's missing and an inner transaction. This is because nodes erroneously sent us updates instead of creates when migrating state.NodeUpdateTransaction
updating the wrong nodeNodeDeleteTransaction
deleting the wrong nodeRelated issue(s):
Fixes #10133
Notes for reviewer:
The protobuf spec silently changed in https://github.com/hashgraph/hedera-services/pull/16622/files after we implemented the logic.
Checklist