forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDK: Slot Hashes: Add queries using
sol_get_sysvar
(#1622)
* sysvars: add `get_sysvar` handler * sysvars: add `SlotHashesSysvar` trait * use bytemuck slices for binary search * refactor get_sysvar API * add tests * add pointer alignment check * make the API a struct * move allocation check * use `PodSlotHash` for layout * cleanup
- Loading branch information
1 parent
5ff764d
commit a6035da
Showing
2 changed files
with
190 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters