Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Example: Add example of deserializing the SlotHash sysvar while remaining within the BPF compute limit #945

Closed
mvines opened this issue Dec 13, 2020 · 0 comments
Labels
good first issue Good for newcomers stale [bot only] Added to stale content; will be closed soon

Comments

@mvines
Copy link
Contributor

mvines commented Dec 13, 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/solana-bpf-program-template#4

This PR should be added to the examples/

@joncinque joncinque added the good first issue Good for newcomers label Jan 11, 2022
@github-actions github-actions bot added the stale [bot only] Added to stale content; will be closed soon label Aug 10, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers stale [bot only] Added to stale content; will be closed soon
Projects
None yet
Development

No branches or pull requests

2 participants