Skip to content
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

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

steven-sheehy
Copy link
Member

@steven-sheehy steven-sheehy commented Jan 15, 2025

Description:

  • 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

Related 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

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@steven-sheehy steven-sheehy added bug Type: Something isn't working parser Area: File parsing labels Jan 15, 2025
@steven-sheehy steven-sheehy added this to the 0.122.0 milestone Jan 15, 2025
@steven-sheehy steven-sheehy self-assigned this Jan 15, 2025
@steven-sheehy steven-sheehy requested a review from a team as a code owner January 15, 2025 00:15
Copy link

codecov bot commented Jan 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.19%. Comparing base (dbd5b4a) to head (7cc17df).
Report is 2 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@xin-hedera xin-hedera left a comment

Choose a reason for hiding this comment

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

LGTM

@steven-sheehy steven-sheehy merged commit 2833b87 into main Jan 15, 2025
36 checks passed
@steven-sheehy steven-sheehy deleted the fix-node-update-delete branch January 15, 2025 04:40
steven-sheehy added a commit that referenced this pull request Jan 15, 2025
* 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]>
steven-sheehy added a commit that referenced this pull request Jan 15, 2025
* 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]>
steven-sheehy added a commit that referenced this pull request Jan 15, 2025
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type: Something isn't working parser Area: File parsing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NodeUpdateTransaction always updates same node
2 participants