-
Notifications
You must be signed in to change notification settings - Fork 143
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: Implement synthetic records for immediate genesis reconnect scenario #10176
Conversation
Signed-off-by: Matt Hess <matt.hess@swirldslabs.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #10176 +/- ##
==========================================
Coverage ? 63.16%
Complexity ? 30722
==========================================
Files ? 3329
Lines ? 134059
Branches ? 13892
==========================================
Hits ? 84685
Misses ? 46031
Partials ? 3343 ☔ View full report in Codecov by Sentry. |
hedera-node/hedera-app/src/main/java/com/hedera/node/app/Hedera.java
Outdated
Show resolved
Hide resolved
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.
One question and a couple nits but LGTM, tyvm @mhess-swl !
.../src/main/java/com/hedera/node/app/service/token/impl/schemas/SyntheticRecordsGenerator.java
Show resolved
Hide resolved
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, small comment.
Signed-off-by: Matt Hess <matt.hess@swirldslabs.com>
4fb7847
4b4c0e9
to
4fb7847
Compare
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
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, tyvm @mhess-swl !
The basic idea behind this PR is that the
TokenSchema
class has been split out into two parts: the synthetic records that need to be created, and the actual creation of the accounts. TheHedera
class now has logic to determine if any synthetic records need to be generated, and if so, theSyntheticRecordsGenerator
class will generate only the records. If applicable, these synthetic records will also be passed to the token schema class to actually create the entities in state.The modular behavior is now similar to the mono service in how it handles this scenario, but unfortunately we haven't figured out a way to test this.
Closes #9757