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

flamenco: slot check against program deploy/upgrades #1904

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ibhatt-jumptrading
Copy link
Contributor

@ibhatt-jumptrading ibhatt-jumptrading commented May 17, 2024

programs can't be executed on the same slot that they are deployed or upgraded. Adding ledger test to CI as well

@ibhatt-jumptrading ibhatt-jumptrading force-pushed the program_deploy_upgrade_slot_check branch from efe66af to 70d7a20 Compare May 17, 2024 18:08
is same as the current slot */
FD_BORROWED_ACCOUNT_DECL( program_account );
const fd_pubkey_t * program_id_pubkey = &ctx.instr->program_id_pubkey;
int err = fd_acc_mgr_view( ctx.txn_ctx->acc_mgr, ctx.txn_ctx->funk_txn, program_id_pubkey, program_account );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You cannot use acc_mgr in the native programs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updating in rewrite of bpf loader

@lheeger-jump lheeger-jump marked this pull request as draft May 17, 2024 21:04
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.

None yet

2 participants