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

HIP-1056 Add block streams design #9716

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

edwin-greene
Copy link
Contributor

Description:
Adds the design for phase one, support for block stream files.

Related issue(s):

Fixes #9573

Notes for reviewer:

Checklist

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

Signed-off-by: Edwin Greene <[email protected]>
@edwin-greene edwin-greene added enhancement Type: New feature design labels Nov 7, 2024
@edwin-greene edwin-greene self-assigned this Nov 7, 2024
@edwin-greene edwin-greene linked an issue Nov 7, 2024 that may be closed by this pull request
### Block protobuf to mirror node database mapping

#### Contract Create Transaction

Copy link
Contributor Author

Choose a reason for hiding this comment

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

More details on the missing entries still to come.

- Add a `BlockStreamTranslator` that will translate a block file into a record file according to the mapping below.

### Block protobuf to mirror node database mapping

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've created a prototype of a block to record file translator for the contract create transaction. If we'd like to include it I can push it up as well.

Copy link

codecov bot commented Nov 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.23%. Comparing base (7be3d87) to head (c20aad7).
Report is 92 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9716      +/-   ##
============================================
- Coverage     92.32%   92.23%   -0.10%     
- Complexity     7413     7628     +215     
============================================
  Files           911      937      +26     
  Lines         31050    32117    +1067     
  Branches       3978     4071      +93     
============================================
+ Hits          28667    29622     +955     
- Misses         1450     1542      +92     
- Partials        933      953      +20     

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

Signed-off-by: Edwin Greene <[email protected]>
Signed-off-by: Edwin Greene <[email protected]>
Signed-off-by: Edwin Greene <[email protected]>
Signed-off-by: Edwin Greene <[email protected]>
Copy link

sonarcloud bot commented Nov 14, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design enhancement Type: New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HIP-1056: Design block stream support
1 participant