From 0da3a3b918c6395ac4f23d129aa52b5597cb973e Mon Sep 17 00:00:00 2001 From: wood Date: Sun, 6 Jul 2025 23:38:09 +0800 Subject: [PATCH] remove use_rpc --- src/common/types.rs | 3 --- src/main.rs | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/common/types.rs b/src/common/types.rs index a15d61e..784de85 100755 --- a/src/common/types.rs +++ b/src/common/types.rs @@ -12,7 +12,6 @@ pub struct TradeConfig { pub priority_fee: PriorityFee, pub commitment: CommitmentConfig, pub lookup_table_key: Option, - pub use_rpc: bool, } impl TradeConfig { @@ -22,7 +21,6 @@ impl TradeConfig { priority_fee: PriorityFee, commitment: CommitmentConfig, lookup_table_key: Option, - use_rpc: bool, ) -> Self { Self { rpc_url, @@ -30,7 +28,6 @@ impl TradeConfig { priority_fee, commitment, lookup_table_key, - use_rpc, } } } diff --git a/src/main.rs b/src/main.rs index 199a3f1..497a03c 100755 --- a/src/main.rs +++ b/src/main.rs @@ -259,7 +259,6 @@ async fn test_pumpfun_sniper() -> AnyResult<()> { priority_fee: PriorityFee::default(), swqos_configs, lookup_table_key: None, - use_rpc: true, }; let solana_trade_client = SolanaTrade::new(Arc::new(payer), trade_config).await; let creator = Pubkey::from_str("xxx")?; // dev account @@ -304,7 +303,6 @@ async fn test_pumpfun() -> AnyResult<()> { priority_fee: PriorityFee::default(), swqos_configs, lookup_table_key: None, - use_rpc: true, }; let solana_trade_client = SolanaTrade::new(Arc::new(payer), trade_config).await; @@ -376,7 +374,6 @@ async fn test_pumpswap() -> AnyResult<()> { priority_fee: PriorityFee::default(), swqos_configs, lookup_table_key: None, - use_rpc: true, }; let solana_trade_client = SolanaTrade::new(Arc::new(payer), trade_config).await; let creator = Pubkey::from_str("11111111111111111111111111111111")?; // dev account