Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion crates/driver/example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ url = "https://your.custom.rpc.endpoint"
name = "custom_name"
max-additional-tip = "5000000000"
additional-tip-percentage = 0.05
use-soft-cancellations = false
mines-reverting-txs = true

[contracts] # Optionally override the contract addresses, necessary on less popular blockchains
Expand Down
1 change: 0 additions & 1 deletion crates/driver/src/infra/config/file/load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,6 @@ pub async fn load(chain: Chain, path: &Path) -> infra::Config {
},
max_additional_tip: mempool.max_additional_tip,
additional_tip_percentage: mempool.additional_tip_percentage,
use_soft_cancellations: mempool.use_soft_cancellations,
})
.collect(),
simulator: match (config.tenderly, config.enso) {
Expand Down
11 changes: 0 additions & 11 deletions crates/driver/src/infra/config/file/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,6 @@ struct Mempool {
/// floating point value between 0 and 1.
#[serde(default = "default_additional_tip_percentage")]
additional_tip_percentage: f64,
/// Configures whether the submission logic is allowed to assume the
/// submission nodes implement soft cancellations. With soft
/// cancellations a cancellation transaction doesn't have to get mined
/// to have an effect. On arrival in the node all pending transactions
/// with the same sender and nonce will get discarded immediately.
#[serde(default = "default_soft_cancellations_flag")]
use_soft_cancellations: bool,
/// Informs the submission logic whether a reverting transaction will
/// actually be mined or just ignored. This is an advanced feature
/// for private mempools so for most configured mempools you have to
Expand Down Expand Up @@ -226,10 +219,6 @@ fn default_max_additional_tip() -> eth::U256 {
eth::U256::from(3) * eth::U256::from(10).pow(eth::U256::from(9))
}

fn default_soft_cancellations_flag() -> bool {
false
}

fn default_mines_reverting_txs() -> bool {
true
}
Expand Down
1 change: 0 additions & 1 deletion crates/driver/src/infra/mempool/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ pub struct Config {
/// web3 lib's default behavior, which is `latest`.
pub nonce_block_number: Option<web3::types::BlockNumber>,
pub url: reqwest::Url,
pub use_soft_cancellations: bool,
pub name: String,
pub revert_protection: RevertProtection,
pub max_additional_tip: eth::U256,
Expand Down
1 change: 0 additions & 1 deletion crates/driver/src/tests/setup/solver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,6 @@ impl Solver {
additional_tip_percentage: 0.,
revert_protection: infra::mempool::RevertProtection::Disabled,
nonce_block_number: None,
use_soft_cancellations: false,
url: config.blockchain.web3_url.parse().unwrap(),
}],
)
Expand Down
Loading