Skip to content

Conversation

@buffalojoec
Copy link
Collaborator

Refactors the way fallback accounts are created and then plumbed through the account compilation step before instruction execution.

There are a few performance benefits as a result of this refactoring, including creation of all fallback accounts ahead of time instead of within each instruction of a chain.

There is one subtle behavioral change. Currently, Mollusk always stubs out the target program account, whether you provide it or not. This is actually undesirable for some use cases. After this change, the program account is only stubbed out if it's not provided in the accounts list, making it a fallback account.

@buffalojoec buffalojoec added the breaking Breaking change label Dec 12, 2025
@buffalojoec buffalojoec changed the title refactpr: account compilation: fallback accounts refactor: account compilation: fallback accounts Dec 12, 2025
@buffalojoec buffalojoec merged commit ddadaf6 into main Dec 12, 2025
5 checks passed
@buffalojoec buffalojoec deleted the account-comp-refactor-again branch December 12, 2025 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant