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

feat: Use Transaction.body by default, normalize other transactions on ingest #17449

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

netopyr
Copy link
Contributor

@netopyr netopyr commented Jan 20, 2025

Description:

This PR simplifies the usage of Transaction. The field Transaction.body is used by default to store the TransactionBody. If a transaction is submitted to the network that does not follow the new standard, it is adjusted on ingest.

Related issue(s):

Fixes #17448

Notes for reviewer:

Checklist

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

@netopyr netopyr added this to the v0.59 milestone Jan 20, 2025
@netopyr netopyr self-assigned this Jan 20, 2025
@netopyr netopyr requested review from a team as code owners January 20, 2025 16:24
@netopyr netopyr requested a review from derektriley January 20, 2025 16:24
Signed-off-by: Michael Heinrichs <[email protected]>
Copy link

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.00% (target: -1.00%) 100.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (3e8fa1f) 97675 71128 72.82%
Head commit (6a26f32) 97683 (+8) 71136 (+8) 72.82% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#17449) 27 27 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

Copy link

codecov bot commented Jan 20, 2025

Codecov Report

Attention: Patch coverage is 96.29630% with 1 line in your changes missing coverage. Please review.

Project coverage is 68.91%. Comparing base (3e8fa1f) to head (6a26f32).

Files with missing lines Patch % Lines
.../hedera/node/app/workflows/TransactionChecker.java 95.83% 0 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #17449   +/-   ##
=========================================
  Coverage     68.91%   68.91%           
- Complexity    22667    22673    +6     
=========================================
  Files          2613     2613           
  Lines         97892    97900    +8     
  Branches      10156    10156           
=========================================
+ Hits          67463    67471    +8     
  Misses        26613    26613           
  Partials       3816     3816           
Files with missing lines Coverage Δ
...va/com/hedera/node/app/hapi/utils/CommonUtils.java 87.17% <100.00%> (+0.69%) ⬆️
...ra/node/app/workflows/query/QueryWorkflowImpl.java 88.23% <100.00%> (ø)
.../hedera/node/app/workflows/TransactionChecker.java 92.71% <95.83%> (+0.30%) ⬆️

Impacted file tree graph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accept Transaction.body and normalize transactions
1 participant