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

Example of deserializing the SlotHash sysvar while remaining within the BPF compute limit #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mvines
Copy link
Owner

@mvines mvines commented Dec 12, 2020

Normal decoding of the SlotHash sysvar will exceed the current BPF compute limit. This PR demonstrates how to manually decode the sysvar to avoid this issue

@mvines mvines changed the title SlotHash example SlotHash sysvar example Dec 12, 2020
@mvines mvines changed the title SlotHash sysvar example Example of deserializing the SlotHash sysvar while remaining within the BPF compute limit Dec 13, 2020
@mvines mvines force-pushed the slot_hashes branch 2 times, most recently from 7a71492 to 9c653f1 Compare December 13, 2020 07:35
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