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

Cache API #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Cache API #3

wants to merge 2 commits into from

Conversation

s1na
Copy link
Collaborator

@s1na s1na commented Aug 14, 2019

Implements a variation of ewasm/scout#18, with 1 block cache TTL. The difference being that each EE has access to a read-only cache and a write-only cache. The write-only cache is what will persist to the next block. The read-only cache is what was saved to the write-only cache in the previous block.

I also modified the hello-world example to use the new cache API. The example now caches its block data for the next block, and adds the current preStateRoot to the previous block's cached block data.

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.

1 participant