File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,9 @@ use std::sync::Arc;
22
33use solana_client:: {
44 nonblocking:: { rpc_client:: RpcClient , tpu_client:: TpuClient } ,
5+ rpc_config:: RpcSendTransactionConfig ,
56 send_and_confirm_transactions_in_parallel:: {
6- send_and_confirm_transactions_in_parallel , SendAndConfirmConfig ,
7+ send_and_confirm_transactions_in_parallel_v2 , SendAndConfirmConfigV2 ,
78 } ,
89 tpu_client:: TpuClientConfig ,
910} ;
@@ -89,14 +90,18 @@ pub async fn send_instructions(
8990 )
9091 . await ?;
9192
92- let results = send_and_confirm_transactions_in_parallel (
93+ let results = send_and_confirm_transactions_in_parallel_v2 (
9394 rpc_client. clone ( ) ,
9495 Some ( tpu_client) ,
9596 & with_auto_compute,
9697 & keys,
97- SendAndConfirmConfig {
98+ SendAndConfirmConfigV2 {
9899 with_spinner : true ,
99100 resign_txs_count : Some ( 5 ) ,
101+ rpc_send_transaction_config : RpcSendTransactionConfig {
102+ skip_preflight : true ,
103+ ..Default :: default ( )
104+ } ,
100105 } ,
101106 )
102107 . await ?;
You can’t perform that action at this time.
0 commit comments