-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
sdk: introduce trait based StorageAPI
(wip)
#12157
Conversation
e730428
to
0ac0c92
Compare
how confident are you with our existing tests to make sure we're not breaking anything with this? I know there's been quite a bit of work around it |
901d3ed
to
daa9a18
Compare
although the trait would be introduced in this PR, it wouldnt actually be used afaik. Primitive traits still need more work. So it should not break anything |
5fa3508
to
1c01506
Compare
yeah this progress will flag all the things that we need to do first to get unblocked |
bb20578
to
04252ad
Compare
d0b1e96
to
e7e88a4
Compare
closes #11243
tldr: each chain needs to write/read their own blocks. Eg. Not all chains may want
Ommers
as part of a block. These components are spread across different tables and need to be assembled.Creating the PR to initiate a discussion. I think the first question is how to pass this from
ProviderFactory<N>
toDatabaseProvider
. Right now it takes<TX, Spec>
as generics. #11872 Adds a newStateCommittment
generic. If we add a storage one, it's too much. Thoughts?some options:
Spec and Storage
under yet anotherNode
trait ? What about SC?N
/NodeTypes
fromProviderFactory
(proposed here withDatabaseProvider2
)Storage
genericChainStorageReader