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

harness: rework sysvar caching #64

Merged
merged 1 commit into from
Dec 10, 2024
Merged

harness: rework sysvar caching #64

merged 1 commit into from
Dec 10, 2024

Conversation

buffalojoec
Copy link
Collaborator

This PR reworks the way Mollusk creates a sysvar cache for instruction processing.

After this change, the harness will create a new sysvar cache based first on the provided accounts and then on the default values contained in the Sysvars object.

This allows fuzz fixtures to provide invalid sysvar account data and see the proper errors in their program's execution as a result.

cc @2501babe

@buffalojoec buffalojoec mentioned this pull request Dec 9, 2024
@buffalojoec buffalojoec added the v2.0 Backport to solana-v2.0 label Dec 9, 2024
@buffalojoec buffalojoec merged commit cea8833 into main Dec 10, 2024
4 checks passed
@buffalojoec buffalojoec deleted the rework-sysvars branch December 10, 2024 01:38
github-actions bot pushed a commit that referenced this pull request Dec 10, 2024
buffalojoec added a commit that referenced this pull request Dec 10, 2024
buffalojoec added a commit that referenced this pull request Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2.0 Backport to solana-v2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant