Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 99a6e95

Browse files
authored
stake-pool: Optimizations for 4k validators (#2041)
* In-place serde * Add cleanup instruction * Add BigVec tests, clarify lifetimes
1 parent 8734338 commit 99a6e95

File tree

13 files changed

+1602
-235
lines changed

13 files changed

+1602
-235
lines changed

stake-pool/cli/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ fn command_list(config: &Config, stake_pool_address: &Pubkey) -> CommandResult {
697697
);
698698
println!(
699699
"Max number of validators: {}",
700-
validator_list.max_validators
700+
validator_list.header.max_validators
701701
);
702702

703703
if config.verbose {
@@ -755,7 +755,7 @@ fn command_update(
755755

756756
let validator_list = get_validator_list(&config.rpc_client, &stake_pool.validator_list)?;
757757

758-
let (mut update_list_instructions, update_balance_instruction) =
758+
let (mut update_list_instructions, final_instructions) =
759759
spl_stake_pool::instruction::update_stake_pool(
760760
&spl_stake_pool::id(),
761761
&stake_pool,
@@ -787,7 +787,7 @@ fn command_update(
787787
}
788788
let transaction = checked_transaction_with_signers(
789789
config,
790-
&[update_balance_instruction],
790+
&final_instructions,
791791
&[config.fee_payer.as_ref()],
792792
)?;
793793
send_transaction(config, transaction)?;

0 commit comments

Comments
 (0)