-
Notifications
You must be signed in to change notification settings - Fork 690
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
[store] Remove genesis_height param from ChainStore::new() #12831
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #12831 +/- ##
=======================================
Coverage 70.37% 70.37%
=======================================
Files 848 848
Lines 174960 174870 -90
Branches 174960 174870 -90
=======================================
- Hits 123129 123072 -57
+ Misses 46575 46544 -31
+ Partials 5256 5254 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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
genesis.transaction_validity_period, | ||
), | ||
} | ||
Self { chain_store: ChainStore::new(store, false, genesis.transaction_validity_period) } |
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.
If you can get rid of the transaction_validity_period
we could remove genesis all together from here. Just saying ;)
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.
I'll try...
Part 2 of removing dependency of ChainStoreAdapter from genesis_height Follow up of PR near#12828 We can cleanup the interface of ChainStoreAdapter and we no longer need `genesis_height` and `save_trie_changes` as initialization params.
Part 2 of removing dependency of ChainStoreAdapter from genesis_height Follow up of PR near#12828 We can cleanup the interface of ChainStoreAdapter and we no longer need `genesis_height` and `save_trie_changes` as initialization params.
Part 2 of removing dependency of ChainStoreAdapter from genesis_height
Follow up of PR #12828
We can cleanup the interface of ChainStoreAdapter and we no longer need
genesis_height
andsave_trie_changes
as initialization params.