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

Commit 3d03765

Browse files
authored
stake-pool-test: Fix updating blockhash, force a new one (#6169)
1 parent 9888848 commit 3d03765

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

stake-pool/program/tests/update_validator_list_balance.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ async fn setup(
141141

142142
let last_blockhash = context
143143
.banks_client
144-
.get_new_latest_blockhash(&context.last_blockhash)
144+
.get_new_latest_blockhash(&last_blockhash)
145145
.await
146146
.unwrap();
147147

@@ -697,6 +697,12 @@ async fn success_with_burned_tokens() {
697697
slot += slots_per_epoch;
698698
context.warp_to_slot(slot).unwrap();
699699

700+
let last_blockhash = context
701+
.banks_client
702+
.get_new_latest_blockhash(&last_blockhash)
703+
.await
704+
.unwrap();
705+
700706
let mint_info = get_account(
701707
&mut context.banks_client,
702708
&stake_pool_accounts.pool_mint.pubkey(),

0 commit comments

Comments
 (0)