Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions programs/voter-stake-registry/tests/program_test/solana.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ impl SolanaCookie {
*self.program_output.write().unwrap() = super::ProgramOutput::default();

let mut context = self.context.borrow_mut();
let latest_blockhash = context.banks_client.get_latest_blockhash().await.unwrap();

let mut transaction =
Transaction::new_with_payer(&instructions, Some(&context.payer.pubkey()));
Expand All @@ -40,10 +41,7 @@ impl SolanaCookie {
all_signers.extend_from_slice(signers);
}

// This fails when warping is involved - https://gitmemory.com/issue/solana-labs/solana/18201/868325078
// let recent_blockhash = self.context.banks_client.get_recent_blockhash().await.unwrap();

transaction.sign(&all_signers, context.last_blockhash);
transaction.sign(&all_signers, latest_blockhash);

context
.banks_client
Expand Down
6 changes: 0 additions & 6 deletions programs/voter-stake-registry/tests/test_basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ async fn test_basic() -> Result<(), TransportError> {
.create_voter(&registrar, &token_owner_record, &voter_authority, &payer)
.await;

// create the voter again, should have no effect
context
.addin
.create_voter(&registrar, &token_owner_record, &voter_authority, &payer)
.await;

// test deposit and withdraw

let reference_account = context.users[1].token_accounts[0];
Expand Down