pub struct CrossChainConfig {
pub attempts_tx: u32,
pub interval_tx_ms: u64,
pub post_confirm_wait_ms: u64,
pub attempts_spv: u32,
pub interval_spv_ms: u64,
pub attempts_final: u32,
pub interval_final_ms: u64,
pub verbose: bool,
pub max_total_time_ms: u64,
}Expand description
Configuration for the full cross-chain transfer helper. Values can be sourced from environment variables (see Default impl) so callers can tune behavior without code changes.
Env vars (all optional): XCHAIN_ATTEMPTS -> attempts for initial tx polling (default 30, 0 = infinite) XCHAIN_INTERVAL_MS -> interval ms between initial tx polls (default 5000) XCHAIN_POST_CONFIRM_WAIT_MS-> delay after tx success before requesting SPV (default 10000) XCHAIN_SPV_ATTEMPTS -> attempts for SPV polling (default 0 = infinite, >0 = use limit) XCHAIN_SPV_INTERVAL_MS -> interval ms between SPV polls (default 5000) XCHAIN_FINAL_ATTEMPTS -> attempts for final continuation tx poll (default 30, 0 = infinite) XCHAIN_FINAL_INTERVAL_MS -> interval ms between final polls (default 5000) XCHAIN_VERBOSE -> if set (any value), emit diagnostic prints XCHAIN_MAX_TOTAL_TIME_MS -> max total time for all polling combined (default 360000 = 6min, 0 = no limit)
Fields§
§attempts_tx: u32§interval_tx_ms: u64§post_confirm_wait_ms: u64§attempts_spv: u32§interval_spv_ms: u64§attempts_final: u32§interval_final_ms: u64§verbose: bool§max_total_time_ms: u64Trait Implementations§
Source§impl Clone for CrossChainConfig
impl Clone for CrossChainConfig
Source§fn clone(&self) -> CrossChainConfig
fn clone(&self) -> CrossChainConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more