From bc36121948e41275d7acb15a530d9b31f45433d3 Mon Sep 17 00:00:00 2001 From: Dmytro-Hladkykh Date: Thu, 24 Apr 2025 11:22:04 +0300 Subject: [PATCH 1/5] Add gas price configuration params and lower coordinator gas price --- config/coordinator/coordinator-docker.config.toml | 2 +- config/sequencer/config.toml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config/coordinator/coordinator-docker.config.toml b/config/coordinator/coordinator-docker.config.toml index bc97742..594147b 100644 --- a/config/coordinator/coordinator-docker.config.toml +++ b/config/coordinator/coordinator-docker.config.toml @@ -235,7 +235,7 @@ gas-price-fixed-cost = 3000000 legacy-fees-multiplier = 1.2 margin = 4.0 variable-cost-upper-bound = 10000000001 # ~10 GWEI -variable-cost-lower-bound = 90000001 # ~0.09 GWEI +variable-cost-lower-bound = 1000000 # ~0.001 GWEI [l2-network-gas-pricing.extra-data-pricing-propagation] extra-data-update-recipient = "http://sequencer:8545/" diff --git a/config/sequencer/config.toml b/config/sequencer/config.toml index 300a320..c982111 100644 --- a/config/sequencer/config.toml +++ b/config/sequencer/config.toml @@ -8,6 +8,9 @@ host-allowlist=["*"] min-gas-price=0 tx-pool-min-gas-price=0 max-peers=10 +api-gas-price-blocks=100 +api-gas-price-percentile=50.0 +api-gas-price-max=10000000 # 0.01 GWEI # engine engine-host-allowlist=["*"] @@ -66,7 +69,7 @@ plugin-linea-min-margin="1.0" # WARNING - DEV VALUE plugin-linea-fixed-gas-cost-wei=30000000 plugin-linea-variable-gas-cost-wei=1000000000 plugin-linea-extra-data-set-min-gas-price-enabled=true -plugin-linea-estimate-gas-min-margin="1.2 " # WARNING - DEV VALUE +plugin-linea-estimate-gas-min-margin="1.2" # WARNING - DEV VALUE strict-tx-replay-protection-enabled=false Xplugin-rocksdb-high-spec-enabled=true From a27bfbc8e0e8ebf89a78cab0682f1bc993df0c69 Mon Sep 17 00:00:00 2001 From: Dmytro-Hladkykh Date: Thu, 24 Apr 2025 12:22:58 +0300 Subject: [PATCH 2/5] Lower legacy gas price lower bound --- config/coordinator/coordinator-docker.config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/coordinator/coordinator-docker.config.toml b/config/coordinator/coordinator-docker.config.toml index 594147b..afbbbfe 100644 --- a/config/coordinator/coordinator-docker.config.toml +++ b/config/coordinator/coordinator-docker.config.toml @@ -243,7 +243,7 @@ extra-data-update-recipient = "http://sequencer:8545/" [l2-network-gas-pricing.legacy] type="SampleTransaction" gas-price-upper-bound = 10000000000 # 10 GWEI -gas-price-lower-bound = 90000000 # 0.09 GWEI +gas-price-lower-bound = 1000000 # ~0.001 GWEI [l2-network-gas-pricing.json-rpc-pricing-propagation] geth-gas-price-update-recipients = [ From da71b43f8bfb5a07223814bddb05f4c07617da28 Mon Sep 17 00:00:00 2001 From: Dmytro-Hladkykh Date: Thu, 24 Apr 2025 13:39:07 +0300 Subject: [PATCH 3/5] Move sequencer gas price params in api-gas section --- config/coordinator/coordinator-docker.config.toml | 4 ++-- config/sequencer/config.toml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/coordinator/coordinator-docker.config.toml b/config/coordinator/coordinator-docker.config.toml index afbbbfe..b88e541 100644 --- a/config/coordinator/coordinator-docker.config.toml +++ b/config/coordinator/coordinator-docker.config.toml @@ -235,7 +235,7 @@ gas-price-fixed-cost = 3000000 legacy-fees-multiplier = 1.2 margin = 4.0 variable-cost-upper-bound = 10000000001 # ~10 GWEI -variable-cost-lower-bound = 1000000 # ~0.001 GWEI +variable-cost-lower-bound = 1000000 # 0.001 GWEI [l2-network-gas-pricing.extra-data-pricing-propagation] extra-data-update-recipient = "http://sequencer:8545/" @@ -243,7 +243,7 @@ extra-data-update-recipient = "http://sequencer:8545/" [l2-network-gas-pricing.legacy] type="SampleTransaction" gas-price-upper-bound = 10000000000 # 10 GWEI -gas-price-lower-bound = 1000000 # ~0.001 GWEI +gas-price-lower-bound = 1000000 # 0.001 GWEI [l2-network-gas-pricing.json-rpc-pricing-propagation] geth-gas-price-update-recipients = [ diff --git a/config/sequencer/config.toml b/config/sequencer/config.toml index c982111..3cf5635 100644 --- a/config/sequencer/config.toml +++ b/config/sequencer/config.toml @@ -8,9 +8,6 @@ host-allowlist=["*"] min-gas-price=0 tx-pool-min-gas-price=0 max-peers=10 -api-gas-price-blocks=100 -api-gas-price-percentile=50.0 -api-gas-price-max=10000000 # 0.01 GWEI # engine engine-host-allowlist=["*"] @@ -42,6 +39,9 @@ metrics-port=9545 tx-pool-no-local-priority=false # +api-gas-price-blocks=100 +api-gas-price-percentile=50.0 +api-gas-price-max=10000000 # 0.01 GWEI api-gas-and-priority-fee-limiting-enabled=false api-gas-and-priority-fee-lower-bound-coefficient=120 api-gas-and-priority-fee-upper-bound-coefficient=300 From e6b5ed088f4bbef33e36488d6e44b1e72a6d1948 Mon Sep 17 00:00:00 2001 From: Dmytro-Hladkykh Date: Thu, 24 Apr 2025 16:55:00 +0300 Subject: [PATCH 4/5] Reduce fixed gas cost in sequencer plugin --- config/sequencer/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/sequencer/config.toml b/config/sequencer/config.toml index 3cf5635..d03adc6 100644 --- a/config/sequencer/config.toml +++ b/config/sequencer/config.toml @@ -66,7 +66,7 @@ plugin-linea-max-tx-calldata-size=60000 plugin-linea-max-block-gas=24000000 plugin-linea-tx-pool-min-margin="0.8" # WARNING - DEV VALUE plugin-linea-min-margin="1.0" # WARNING - DEV VALUE -plugin-linea-fixed-gas-cost-wei=30000000 +plugin-linea-fixed-gas-cost-wei=1000000 plugin-linea-variable-gas-cost-wei=1000000000 plugin-linea-extra-data-set-min-gas-price-enabled=true plugin-linea-estimate-gas-min-margin="1.2" # WARNING - DEV VALUE From adf92c374e31384420dc1a323bc7eb6a4d292613 Mon Sep 17 00:00:00 2001 From: Dmytro-Hladkykh Date: Thu, 24 Apr 2025 17:01:13 +0300 Subject: [PATCH 5/5] Reduce fixed gas price params in sequencer plugin --- config/sequencer/config.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/sequencer/config.toml b/config/sequencer/config.toml index d03adc6..39360dd 100644 --- a/config/sequencer/config.toml +++ b/config/sequencer/config.toml @@ -66,8 +66,8 @@ plugin-linea-max-tx-calldata-size=60000 plugin-linea-max-block-gas=24000000 plugin-linea-tx-pool-min-margin="0.8" # WARNING - DEV VALUE plugin-linea-min-margin="1.0" # WARNING - DEV VALUE -plugin-linea-fixed-gas-cost-wei=1000000 -plugin-linea-variable-gas-cost-wei=1000000000 +plugin-linea-fixed-gas-cost-wei=3000000 +plugin-linea-variable-gas-cost-wei=100000000 plugin-linea-extra-data-set-min-gas-price-enabled=true plugin-linea-estimate-gas-min-margin="1.2" # WARNING - DEV VALUE strict-tx-replay-protection-enabled=false