Deprecate more Fee/Blockhash APIs (#21140)

This commit is contained in:
Jack May
2021-11-02 16:38:23 -07:00
committed by GitHub
parent b9eee66f94
commit 1adf255e3a
6 changed files with 105 additions and 18 deletions

View File

@ -423,10 +423,9 @@ async fn get_blockhash_post_warp() {
let new_blockhash = context
.banks_client
.get_new_blockhash(&context.last_blockhash)
.get_new_latest_blockhash(&context.last_blockhash)
.await
.unwrap()
.0;
.unwrap();
let mut tx = Transaction::new_with_payer(&[], Some(&context.payer.pubkey()));
tx.sign(&[&context.payer], new_blockhash);
context.banks_client.process_transaction(tx).await.unwrap();
@ -435,10 +434,9 @@ async fn get_blockhash_post_warp() {
let new_blockhash = context
.banks_client
.get_new_blockhash(&context.last_blockhash)
.get_new_latest_blockhash(&context.last_blockhash)
.await
.unwrap()
.0;
.unwrap();
let mut tx = Transaction::new_with_payer(&[], Some(&context.payer.pubkey()));
tx.sign(&[&context.payer], new_blockhash);