Update SWQOS submit behavior
This commit is contained in:
@@ -61,7 +61,7 @@ pub struct SwapParams {
|
||||
pub output_token_program: Option<Pubkey>,
|
||||
pub input_amount: Option<u64>,
|
||||
pub slippage_basis_points: Option<u64>,
|
||||
pub address_lookup_table_account: Option<AddressLookupTableAccount>,
|
||||
pub address_lookup_table_accounts: Vec<AddressLookupTableAccount>,
|
||||
pub recent_blockhash: Option<Hash>,
|
||||
pub wait_tx_confirmed: bool,
|
||||
pub protocol_params: DexParamEnum,
|
||||
@@ -82,13 +82,15 @@ pub struct SwapParams {
|
||||
pub simulate: bool,
|
||||
/// Whether to output SDK logs (from TradeConfig.log_enabled).
|
||||
pub log_enabled: bool,
|
||||
/// Fast-submit only (`wait_tx_confirmed = false`): when true, wait for every
|
||||
/// SWQOS route's HTTP submit response so all submitted signatures are
|
||||
/// returned. Defaults to false (post-4.0.11 behaviour: return after the
|
||||
/// first route accepts). Set to true when the caller does its own on-chain
|
||||
/// confirmation against a pinned durable nonce — only one route's tx can
|
||||
/// land, but the caller cannot know which in advance, so it needs every
|
||||
/// signature to poll via `getSignatureStatuses`.
|
||||
/// When true, wait for every SWQOS route's HTTP submit response before
|
||||
/// returning so the result includes all submitted signatures.
|
||||
///
|
||||
/// This is useful when confirmation or external monitoring polls all
|
||||
/// signatures: each route can submit a distinct transaction because relay
|
||||
/// tips may use different accounts. With a durable nonce, at most one route
|
||||
/// can consume the nonce; with a recent blockhash, multiple route variants
|
||||
/// may be valid, so callers must choose strategy and account state
|
||||
/// accordingly. Defaults to false for lower submit latency.
|
||||
pub wait_for_all_submits: bool,
|
||||
/// Use dedicated sender threads (internal; set via client.with_dedicated_sender_threads()).
|
||||
pub use_dedicated_sender_threads: bool,
|
||||
|
||||
Reference in New Issue
Block a user