From 4c3b2c8fcbc18bce296a0b567ca5f73a0f9c34af Mon Sep 17 00:00:00 2001 From: AurelienFT Date: Wed, 23 Oct 2024 16:06:19 +0200 Subject: [PATCH 1/2] Update the flag for txpool chain count. --- bin/fuel-core/src/cli/run/tx_pool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/fuel-core/src/cli/run/tx_pool.rs b/bin/fuel-core/src/cli/run/tx_pool.rs index 34f33df44c1..a7addf83bef 100644 --- a/bin/fuel-core/src/cli/run/tx_pool.rs +++ b/bin/fuel-core/src/cli/run/tx_pool.rs @@ -32,7 +32,7 @@ pub struct TxPoolArgs { pub tx_max_total_bytes: usize, /// The max number of tx in a chain of dependent transactions that supported by the `TxPool`. - #[clap(long = "tx-max-depth", default_value = "32", env)] + #[clap(long = "tx-max-chain-count", default_value = "32", env)] pub tx_max_chain_count: usize, /// The maximum number of active subscriptions that supported by the `TxPool`. From eefc4f237415e4a1772071218704726bdef3d60a Mon Sep 17 00:00:00 2001 From: AurelienFT Date: Fri, 24 Jan 2025 16:24:05 +0100 Subject: [PATCH 2/2] Update description and remove breaking --- CHANGELOG.md | 3 +++ bin/fuel-core/src/cli/run/tx_pool.rs | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b8ffdcfef1d..149140ab680 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Changed +- [2387](https://github.com/FuelLabs/fuel-core/pull/2387): Update description `tx-max-depth` flag. + ## [Version 0.41.3] ### Fixed diff --git a/bin/fuel-core/src/cli/run/tx_pool.rs b/bin/fuel-core/src/cli/run/tx_pool.rs index a7addf83bef..6ab336dd807 100644 --- a/bin/fuel-core/src/cli/run/tx_pool.rs +++ b/bin/fuel-core/src/cli/run/tx_pool.rs @@ -31,8 +31,9 @@ pub struct TxPoolArgs { #[clap(long = "tx-max-total-bytes", default_value = "131072000", env)] pub tx_max_total_bytes: usize, + /// The flag name is `tx-max-depth` for backward compatibility but the behavior is: /// The max number of tx in a chain of dependent transactions that supported by the `TxPool`. - #[clap(long = "tx-max-chain-count", default_value = "32", env)] + #[clap(long = "tx-max-depth", default_value = "32", env)] pub tx_max_chain_count: usize, /// The maximum number of active subscriptions that supported by the `TxPool`.