From fbec576e9278f2e146b8a925d9634d0cee7ade0a Mon Sep 17 00:00:00 2001 From: Abdul Basit Date: Wed, 14 Aug 2024 18:39:29 +0500 Subject: [PATCH] rename fee_upgrade to fee --- data/genesis/demo.toml | 4 ++-- doc/upgrades.md | 10 +++++----- sequencer/src/genesis.rs | 16 ++++++++-------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/data/genesis/demo.toml b/data/genesis/demo.toml index a850d8799d..00a6b60ef5 100644 --- a/data/genesis/demo.toml +++ b/data/genesis/demo.toml @@ -16,9 +16,9 @@ version = "0.2" start_proposing_view = 5 stop_proposing_view = 15 -[upgrade.fee_upgrade] +[upgrade.fee] -[upgrade.fee_upgrade.chain_config] +[upgrade.fee.chain_config] chain_id = 999999999 base_fee = '1 wei' max_block_size = '1mb' diff --git a/doc/upgrades.md b/doc/upgrades.md index 072086d6f5..72811804a8 100644 --- a/doc/upgrades.md +++ b/doc/upgrades.md @@ -88,9 +88,9 @@ version = "0.2" start_proposing_view = 5 stop_proposing_view = 15 -[upgrade.fee_upgrade] +[upgrade.fee] -[upgrade.fee_upgrade.chain_config] +[upgrade.fee.chain_config] chain_id = 999999999 base_fee = '1 wei' max_block_size = '1mb' @@ -106,13 +106,13 @@ stop_proposing_view = 15 ``` In the TOML configuration example above, the `upgrade` section defines an array of tables, each specifying upgrade -parameters: +parameters - **Version:** the new version after an upgrade is successful. - **start_proposing_view:** Represents the `start_proposing_view` value at which the upgrade is proposed. -- **stop_proposing_view:** Refers to the view at which the proposing an upgrade has stopped. +- **stop_proposing_view:** Refers to the view view after which the node stops proposing an upgrade. -The `upgrade.fee_upgrade.chain_config` table contains the complete set of chain config parameters, which can be used, for example, +The `upgrade.fee.chain_config` table contains the complete set of chain config parameters, which can be used, for example, to enable protocol fees or modify other parameters. ## Fee upgrade diff --git a/sequencer/src/genesis.rs b/sequencer/src/genesis.rs index fd305cac88..565f6f43a8 100644 --- a/sequencer/src/genesis.rs +++ b/sequencer/src/genesis.rs @@ -430,9 +430,9 @@ mod test { start_proposing_view = 1 stop_proposing_view = 15 - [upgrade.fee_upgrade] + [upgrade.fee] - [upgrade.fee_upgrade.chain_config] + [upgrade.fee.chain_config] chain_id = 12345 max_block_size = 30000 base_fee = 1 @@ -494,9 +494,9 @@ mod test { start_proposing_time = "2024-01-01T00:00:00Z" stop_proposing_time = "2024-01-02T00:00:00Z" - [upgrade.fee_upgrade] + [upgrade.fee] - [upgrade.fee_upgrade.chain_config] + [upgrade.fee.chain_config] chain_id = 12345 max_block_size = 30000 base_fee = 1 @@ -562,9 +562,9 @@ mod test { start_proposing_time = 1 stop_proposing_time = 10 - [upgrade.fee_upgrade] + [upgrade.fee] - [upgrade.fee_upgrade.chain_config] + [upgrade.fee.chain_config] chain_id = 12345 max_block_size = 30000 base_fee = 1 @@ -651,9 +651,9 @@ mod test { start_proposing_view = 1 stop_proposing_view = 15 - [upgrade.fee_upgrade] + [upgrade.fee] - [upgrade.fee_upgrade.chain_config] + [upgrade.fee.chain_config] chain_id = 12345 max_block_size = 30000 base_fee = 1