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

fix decode cache #592

Merged
merged 2 commits into from
Dec 13, 2023
Merged

fix decode cache #592

merged 2 commits into from
Dec 13, 2023

Conversation

xlc
Copy link
Member

@xlc xlc commented Dec 13, 2023

we need individual cache for each runtime version

const getStorageEntry = (meta: DecoratedMeta, block: Block, key: HexString) => {
const cache = getCache(block.chain.uid)
const getStorageEntry = (meta: DecoratedMeta, key: HexString) => {
const cache = getCache(meta.registry.metadata.hash.toHex())
Copy link
Member Author

Choose a reason for hiding this comment

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

not sure if this will be slow, but that's to be addressed later when we do proper benchmarking

@xlc xlc enabled auto-merge (squash) December 13, 2023 03:29
@xlc xlc merged commit 8059dbc into master Dec 13, 2023
6 checks passed
@xlc xlc deleted the fix-decode branch December 13, 2023 06:08
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.

None yet

1 participant