diff --git a/docker/data/zkevm/node.toml b/docker/data/zkevm/node.toml index 8bee090..4a1f6b4 100644 --- a/docker/data/zkevm/node.toml +++ b/docker/data/zkevm/node.toml @@ -6,62 +6,62 @@ Level = "debug" Outputs = ["stderr"] [State] - [State.DB] - User = "state_user" - Password = "state_password" - Name = "state_db" - Host = "zkevm-state-db" - Port = "5432" - EnableLog = false - MaxConns = 200 - [State.Batch] - [State.Batch.Constraints] - MaxTxsPerBatch = 300 - MaxBatchBytesSize = 120000 - MaxCumulativeGasUsed = 30000000 - MaxKeccakHashes = 2145 - MaxPoseidonHashes = 252357 - MaxPoseidonPaddings = 135191 - MaxMemAligns = 236585 - MaxArithmetics = 236585 - MaxBinaries = 473170 - MaxSteps = 7570538 +[State.DB] +User = "state_user" +Password = "state_password" +Name = "state_db" +Host = "zkevm-state-db" +Port = "5432" +EnableLog = false +MaxConns = 200 +[State.Batch] +[State.Batch.Constraints] +MaxTxsPerBatch = 300 +MaxBatchBytesSize = 120000 +MaxCumulativeGasUsed = 30000000 +MaxKeccakHashes = 2145 +MaxPoseidonHashes = 252357 +MaxPoseidonPaddings = 135191 +MaxMemAligns = 236585 +MaxArithmetics = 236585 +MaxBinaries = 473170 +MaxSteps = 7570538 [Pool] FreeClaimGasLimit = 1500000 IntervalToRefreshBlockedAddresses = "5m" IntervalToRefreshGasPrices = "5s" -MaxTxBytesSize=100132 -MaxTxDataBytesSize=100000 +MaxTxBytesSize = 100132 +MaxTxDataBytesSize = 100000 DefaultMinGasPriceAllowed = 1000000000 MinAllowedGasPriceInterval = "5m" PollMinAllowedGasPriceInterval = "15s" AccountQueue = 64 GlobalQueue = 1024 - [Pool.EffectiveGasPrice] - Enabled = false - L1GasPriceFactor = 0.25 - ByteGasCost = 16 - ZeroByteGasCost = 4 - NetProfit = 1 - BreakEvenFactor = 1.1 - FinalDeviationPct = 10 - L2GasPriceSuggesterFactor = 0.5 - [Pool.DB] - User = "pool_user" - Password = "pool_password" - Name = "pool_db" - Host = "zkevm-pool-db" - Port = "5432" - EnableLog = false - MaxConns = 200 +[Pool.EffectiveGasPrice] +Enabled = false +L1GasPriceFactor = 0.25 +ByteGasCost = 16 +ZeroByteGasCost = 4 +NetProfit = 1 +BreakEvenFactor = 1.1 +FinalDeviationPct = 10 +L2GasPriceSuggesterFactor = 0.5 +[Pool.DB] +User = "pool_user" +Password = "pool_password" +Name = "pool_db" +Host = "zkevm-pool-db" +Port = "5432" +EnableLog = false +MaxConns = 200 [Etherman] URL = "http://l1:8545" ForkIDChunkSize = 20000 MultiGasProvider = false - [Etherscan] - ApiKey = "" +[Etherscan] +ApiKey = "" [RPC] Host = "0.0.0.0" @@ -71,28 +71,28 @@ WriteTimeout = "60s" MaxRequestsPerIPAndSecond = 5000 SequencerNodeURI = "" EnableL2SuggestedGasPricePolling = true - [RPC.WebSockets] - Enabled = true - Port = 8133 +[RPC.WebSockets] +Enabled = true +Port = 8133 [Synchronizer] SyncInterval = "1s" SyncChunkSize = 100 -TrustedSequencerURL = "" # If it is empty or not specified, then the value is read from the smc. +TrustedSequencerURL = "" # If it is empty or not specified, then the value is read from the smc. L1SynchronizationMode = "sequential" # "sequential" or "parallel" - [Synchronizer.L1ParallelSynchronization] - MaxClients = 10 - MaxPendingNoProcessedBlocks = 25 - RequestLastBlockPeriod = "5s" - RequestLastBlockTimeout = "5s" - RequestLastBlockMaxRetries = 3 - StatisticsPeriod = "5m" - TimeoutMainLoop = "5m" - RollupInfoRetriesSpacing= "5s" - FallbackToSequentialModeOnSynchronized = false - [Synchronizer.L1ParallelSynchronization.PerformanceWarning] - AceptableInacctivityTime = "5s" - ApplyAfterNumRollupReceived = 10 +[Synchronizer.L1ParallelSynchronization] +MaxClients = 10 +MaxPendingNoProcessedBlocks = 25 +RequestLastBlockPeriod = "5s" +RequestLastBlockTimeout = "5s" +RequestLastBlockMaxRetries = 3 +StatisticsPeriod = "5m" +TimeoutMainLoop = "5m" +RollupInfoRetriesSpacing = "5s" +FallbackToSequentialModeOnSynchronized = false +[Synchronizer.L1ParallelSynchronization.PerformanceWarning] +AceptableInacctivityTime = "5s" +ApplyAfterNumRollupReceived = 10 [Sequencer] WaitPeriodPoolIsEmpty = "1s" @@ -101,28 +101,28 @@ BlocksAmountForTxsToBeDeleted = 100 FrequencyToCheckTxsForDelete = "12h" TxLifetimeCheckTimeout = "10m" MaxTxLifetime = "3h" - [Sequencer.Finalizer] - GERDeadlineTimeout = "2s" - ForcedBatchDeadlineTimeout = "5s" - SleepDuration = "100ms" - ResourcePercentageToCloseBatch = 10 - GERFinalityNumberOfBlocks = 0 - ClosingSignalsManagerWaitForCheckingL1Timeout = "10s" - ClosingSignalsManagerWaitForCheckingGER = "10s" - ClosingSignalsManagerWaitForCheckingForcedBatches = "10s" - ForcedBatchesFinalityNumberOfBlocks = 0 - TimestampResolution = "10s" - StopSequencerOnBatchNum = 0 - [Sequencer.DBManager] - PoolRetrievalInterval = "500ms" - L2ReorgRetrievalInterval = "5s" +[Sequencer.Finalizer] +GERDeadlineTimeout = "2s" +ForcedBatchDeadlineTimeout = "5s" +SleepDuration = "100ms" +ResourcePercentageToCloseBatch = 10 +GERFinalityNumberOfBlocks = 0 +ClosingSignalsManagerWaitForCheckingL1Timeout = "10s" +ClosingSignalsManagerWaitForCheckingGER = "10s" +ClosingSignalsManagerWaitForCheckingForcedBatches = "10s" +ForcedBatchesFinalityNumberOfBlocks = 0 +TimestampResolution = "10s" +StopSequencerOnBatchNum = 0 +[Sequencer.DBManager] +PoolRetrievalInterval = "500ms" +L2ReorgRetrievalInterval = "5s" [SequenceSender] WaitPeriodSendSequence = "15s" LastBatchVirtualizationTimeMaxWaitPeriod = "10s" MaxTxSizeForL1 = 131072 L2Coinbase = "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266" -PrivateKey = {Path = "/pk/sequencer.keystore", Password = "testonly"} +PrivateKey = { Path = "/pk/sequencer.keystore", Password = "testonly" } [Aggregator] Host = "0.0.0.0" @@ -138,13 +138,11 @@ GeneratingProofCleanupThreshold = "10m" SettlementBackend = "beethoven" BeethovenURL = "http://beethoven:4444" BeethovenTxTimeout = "30s" -SequencerPrivateKey = {Path = "/pk/sequencer.keystore", Password = "testonly"} +SequencerPrivateKey = { Path = "/pk/sequencer.keystore", Password = "testonly" } [EthTxManager] ForcedGas = 0 -PrivateKeys = [ - {Path = "/pk/sequencer.keystore", Password = "testonly"}, -] +PrivateKeys = [{ Path = "/pk/sequencer.keystore", Password = "testonly" }] [L2GasPriceSuggester] Type = "default" @@ -154,7 +152,7 @@ DefaultGasPriceWei = 1000000000 MaxGasPriceWei = 0 [MTClient] -URI = "zkevm-prover:50061" +URI = "zkevm-prover:50061" [Executor] URI = "zkevm-prover:50071" @@ -175,4 +173,4 @@ Name = "prover_db" Host = "zkevm-state-db" Port = "5432" EnableLog = false -MaxConns = 200 \ No newline at end of file +MaxConns = 200