diff --git a/cmd/run.go b/cmd/run.go index 5a874ccf37..f155593269 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -335,6 +335,7 @@ func runSynchronizer(cfg config.Config, etherman *etherman.Client, ethTxManagerS // XLayer handler setEthermanDaXLayer(cfg, st, eth, false) + eth.SetFork9UpgradeBatch(cfg.Fork9UpgradeBatch) etherManForL1 = append(etherManForL1, eth) } @@ -342,6 +343,7 @@ func runSynchronizer(cfg config.Config, etherman *etherman.Client, ethTxManagerS // XLayer handler setEthermanDaXLayer(cfg, st, etherman, false) + etherman.SetFork9UpgradeBatch(cfg.Fork9UpgradeBatch) etm := ethtxmanager.New(cfg.EthTxManager, etherman, ethTxManagerStorage, st) sy, err := synchronizer.NewSynchronizer( diff --git a/config/config.go b/config/config.go index 50337a1e05..4e7fb07b20 100644 --- a/config/config.go +++ b/config/config.go @@ -120,6 +120,8 @@ type Config struct { State state.Config // Apollo configuration Apollo types.ApolloConfig + // ForceBatchAddress Address of the L1 ForceBatch contract + Fork9UpgradeBatch uint64 `mapstructure:"Fork9UpgradeBatch"` } // Default parses the default configuration values. diff --git a/config/default.go b/config/default.go index 9d333cff8b..5f9e0f804a 100644 --- a/config/default.go +++ b/config/default.go @@ -5,6 +5,7 @@ const DefaultValues = ` IsTrustedSequencer = false ForkUpgradeBatchNumber = 0 ForkUpgradeNewForkId = 0 +Fork9UpgradeBatch = 0 [Log] Environment = "development" # "production" or "development" diff --git a/docs/config-file/node-config-doc.html b/docs/config-file/node-config-doc.html index 323fbfe5b9..8561f49ee2 100644 --- a/docs/config-file/node-config-doc.html +++ b/docs/config-file/node-config-doc.html @@ -88,4 +88,4 @@
"300ms"
URI is the server URI.
Host is the address to bind the metrics server
Port is the port to bind the metrics server
Enabled is the flag to enable/disable the metrics server
ProfilingHost is the address to bind the profiling server
ProfilingPort is the port to bind the profiling server
ProfilingEnabled is the flag to enable/disable the profiling server
Database name
Database User name
Database Password of the user
Host address of database
Port Number of database
EnableLog
MaxConns is the maximum number of connections in the pool.
Database name
Database User name
Database Password of the user
Host address of database
Port Number of database
EnableLog
MaxConns is the maximum number of connections in the pool.
MaxCumulativeGasUsed is the max gas allowed per batch
ChainID is the L2 ChainID provided by the Network Config
ForkIdIntervals is the list of fork id intervals
MaxResourceExhaustedAttempts is the max number of attempts to make a transaction succeed because of resource exhaustion
WaitOnResourceExhaustion is the time to wait before retrying a transaction because of resource exhaustion
"1m"
"300ms"
-
Batch number from which there is a forkid change (fork upgrade)
New fork id to be used for batches greaters than ForkUpgradeBatchNumber (fork upgrade)
Database name
Database User name
Database Password of the user
Host address of database
Port Number of database
EnableLog
MaxConns is the maximum number of connections in the pool.
MaxLogsCount is a configuration to set the max number of logs that can be returned
in a single call to the state, if zero it means no limit
MaxLogsBlockRange is a configuration to set the max range for block number when querying TXs
logs in a single call to the state, if zero it means no limit
MaxNativeBlockHashBlockRange is a configuration to set the max range for block number when querying
native block hashes in a single call to the state, if zero it means no limit
AvoidForkIDInMemory is a configuration that forces the ForkID information to be loaded
from the DB every time it's needed