Skip to content

Commit

Permalink
Wait until transactions are confirmed, not merely sent.
Browse files Browse the repository at this point in the history
Use `send_and_confirm_transaction` instead of `send_transaction_with_config`
as the former only returns once the transaction has been confirmed
(via the "finalized" strategy) or has timed out. The latter method only
sends the transaction in the _hopes_ that it will be confirmed, which, during
periods of high congestion, isn't a secure strategy.
  • Loading branch information
ke6jjj committed Feb 4, 2025
1 parent 2c33a85 commit 7ddce36
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions helium-wallet/src/cmd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ use helium_lib::{
keypair::Keypair,
message, priority_fee,
solana_client::{
self, rpc_config::RpcSendTransactionConfig, rpc_request::RpcResponseErrorData,
rpc_response::RpcSimulateTransactionResult,
self, rpc_request::RpcResponseErrorData, rpc_response::RpcSimulateTransactionResult,
},
solana_sdk::transaction::VersionedTransaction,
TransactionOpts,
Expand Down

0 comments on commit 7ddce36

Please sign in to comment.