-
Notifications
You must be signed in to change notification settings - Fork 311
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
Refactor - Makes loader-v4 the default #2796
Conversation
The Firedancer team maintains a line-for-line reimplementation of the |
43b7b38
to
221fd7d
Compare
enable_loader_v4
a1303e6
to
f984bbc
Compare
eec5813
to
1cb4d44
Compare
8a2a279
to
19c1df9
Compare
19c1df9
to
30f3fcb
Compare
95261f9
to
64c09b6
Compare
64c09b6
to
2d4b884
Compare
2d4b884
to
489694d
Compare
489694d
to
33f0270
Compare
33f0270
to
fc55020
Compare
8a2d4bc
to
f7b5eb0
Compare
dbb8d90
to
47a487f
Compare
d2ab272
to
38dacf0
Compare
@@ -13277,12 +13278,10 @@ fn test_deploy_last_epoch_slot() { | |||
solana_logger::setup(); | |||
|
|||
// Bank Setup | |||
let (mut genesis_config, mint_keypair) = create_genesis_config(1_000_000 * LAMPORTS_PER_SOL); | |||
genesis_config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this line removed on purpose? It doesn't seem related to loader-v4.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I refactored the test to use loader-v4 and have remove_accounts_executable_flag_checks
instead of disable_fees_sysvar
as the dummy feature to trigger an environment change.
cli/tests/program.rs
Outdated
@@ -82,8 +82,17 @@ fn test_cli_program_deploy_non_upgradeable() { | |||
let mint_keypair = Keypair::new(); | |||
let mint_pubkey = mint_keypair.pubkey(); | |||
let faucet_addr = run_local_faucet(mint_keypair, None); | |||
let test_validator = | |||
TestValidator::with_no_fees(mint_pubkey, Some(faucet_addr), SocketAddrSpace::Unspecified); | |||
let test_validator = TestValidatorGenesis::default() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it's worth adding a wrapper function, as this block of code is being repeated in multiple tests.
38dacf0
to
0c10a9f
Compare
Problem
Loader-v4 was originally planned as a PRv2 loader, but will be used as default loader (superseding loader-v3) in PRv1 now.
Summary of Changes
enable_program_runtime_v2_and_loader_v4
toenable_loader_v4
.test_program_upgradeable_locks()
(which was introduced in Prevent the invoke and upgrade of programs in the same tx batch solana-labs/solana#14653) and is superseded bytest_program_sbf_invoke_in_same_tx_as_redeployment()
.test_program_sbf_invoke_upgradeable()
intotest_program_sbf_upgrade()
.test_program_sbf_invoke_upgradeable_via_cpi()
andtest_program_sbf_set_upgrade_authority_via_cpi()
intotest_program_sbf_upgrade_via_cpi()
.test_program_sbf_invoke_in_same_tx_as_redeployment()
andtest_program_sbf_invoke_in_same_tx_as_undeployment()