Skip to content

Commit

Permalink
stake-pool-test: Fix updating blockhash, force a new one (#6169)
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque authored Jan 23, 2024
1 parent 9888848 commit 3d03765
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion stake-pool/program/tests/update_validator_list_balance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ async fn setup(

let last_blockhash = context
.banks_client
.get_new_latest_blockhash(&context.last_blockhash)
.get_new_latest_blockhash(&last_blockhash)
.await
.unwrap();

Expand Down Expand Up @@ -697,6 +697,12 @@ async fn success_with_burned_tokens() {
slot += slots_per_epoch;
context.warp_to_slot(slot).unwrap();

let last_blockhash = context
.banks_client
.get_new_latest_blockhash(&last_blockhash)
.await
.unwrap();

let mint_info = get_account(
&mut context.banks_client,
&stake_pool_accounts.pool_mint.pubkey(),
Expand Down

0 comments on commit 3d03765

Please sign in to comment.