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 (0.121) #10136

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

steven-sheehy
Copy link
Member

Description:

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

Related issue(s):

Fixes #10133

Notes for reviewer:

Checklist

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

* 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 steven-sheehy added bug Type: Something isn't working parser Area: File parsing labels 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 04:46
@steven-sheehy steven-sheehy added this to the 0.121.1 milestone Jan 15, 2025
Copy link

codecov bot commented Jan 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.24%. Comparing base (80d237b) to head (5e620c0).
Report is 2 commits behind head on release/0.121.

Additional details and impacted files
@@               Coverage Diff                @@
##             release/0.121   #10136   +/-   ##
================================================
  Coverage            92.24%   92.24%           
- Complexity            7856     7857    +1     
================================================
  Files                  956      956           
  Lines                32918    32921    +3     
  Branches              4153     4154    +1     
================================================
+ Hits                 30364    30367    +3     
  Misses                1579     1579           
  Partials               975      975           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@steven-sheehy steven-sheehy merged commit 3222eb3 into release/0.121 Jan 15, 2025
36 checks passed
@steven-sheehy steven-sheehy deleted the 10133-fix-node-tx-121 branch January 15, 2025 14:30
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.

3 participants