@@ -31,185 +31,185 @@ jq '.aggregatorClientHost = "127.0.0.1" | .databaseURL = "postgresql://cdk_user:
3131
32323 . Create a file ` node-config.toml ` inside ` /tmp/cdk/ ` and paste in the following content.
3333
34- ??? "` node-config.toml ` "
35- #/tmp/cdk/node-config.toml
36- IsTrustedSequencer = true
37-
38- [Log]
39- Environment = "development" # "production" or "development"
40- Level = "debug"
41- Outputs = ["stderr"]
42-
43- [State]
44- [State.DB]
45- User = "cdk_user"
46- Password = "cdk_password"
47- Name = "state_db"
48- Host = "localhost"
49- Port = "5432"
50- EnableLog = false
51- MaxConns = 200
52- [State.Batch]
53- [State.Batch.Constraints]
54- MaxTxsPerBatch = 300
55- MaxBatchBytesSize = 120000
56- MaxCumulativeGasUsed = 30000000
57- MaxKeccakHashes = 2145
58- MaxPoseidonHashes = 252357
59- MaxPoseidonPaddings = 135191
60- MaxMemAligns = 236585
61- MaxArithmetics = 236585
62- MaxBinaries = 473170
63- MaxSteps = 7570538
64-
65- [Pool]
66- FreeClaimGasLimit = 1500000
67- IntervalToRefreshBlockedAddresses = "5m"
68- IntervalToRefreshGasPrices = "5s"
69- MaxTxBytesSize=100132
70- MaxTxDataBytesSize=100000
71- DefaultMinGasPriceAllowed = 0
72- MinAllowedGasPriceInterval = "5m"
73- PollMinAllowedGasPriceInterval = "15s"
74- AccountQueue = 64
75- GlobalQueue = 1024
76- [Pool.EffectiveGasPrice]
77- Enabled = false
78- L1GasPriceFactor = 0.25
79- ByteGasCost = 16
80- ZeroByteGasCost = 4
81- NetProfit = 1
82- BreakEvenFactor = 1.1
83- FinalDeviationPct = 10
84- L2GasPriceSuggesterFactor = 0.5
85- [Pool.DB]
34+ ??? "`node-config.toml`"
35+ #/tmp/cdk/node-config.toml
36+ IsTrustedSequencer = true
37+
38+ [Log]
39+ Environment = "development" # "production" or "development"
40+ Level = "debug"
41+ Outputs = ["stderr"]
42+
43+ [State]
44+ [State.DB]
45+ User = "cdk_user"
46+ Password = "cdk_password"
47+ Name = "state_db"
48+ Host = "localhost"
49+ Port = "5432"
50+ EnableLog = false
51+ MaxConns = 200
52+ [State.Batch]
53+ [State.Batch.Constraints]
54+ MaxTxsPerBatch = 300
55+ MaxBatchBytesSize = 120000
56+ MaxCumulativeGasUsed = 30000000
57+ MaxKeccakHashes = 2145
58+ MaxPoseidonHashes = 252357
59+ MaxPoseidonPaddings = 135191
60+ MaxMemAligns = 236585
61+ MaxArithmetics = 236585
62+ MaxBinaries = 473170
63+ MaxSteps = 7570538
64+
65+ [Pool]
66+ FreeClaimGasLimit = 1500000
67+ IntervalToRefreshBlockedAddresses = "5m"
68+ IntervalToRefreshGasPrices = "5s"
69+ MaxTxBytesSize=100132
70+ MaxTxDataBytesSize=100000
71+ DefaultMinGasPriceAllowed = 0
72+ MinAllowedGasPriceInterval = "5m"
73+ PollMinAllowedGasPriceInterval = "15s"
74+ AccountQueue = 64
75+ GlobalQueue = 1024
76+ [Pool.EffectiveGasPrice]
77+ Enabled = false
78+ L1GasPriceFactor = 0.25
79+ ByteGasCost = 16
80+ ZeroByteGasCost = 4
81+ NetProfit = 1
82+ BreakEvenFactor = 1.1
83+ FinalDeviationPct = 10
84+ L2GasPriceSuggesterFactor = 0.5
85+ [Pool.DB]
86+ User = "cdk_user"
87+ Password = "cdk_password"
88+ Name = "pool_db"
89+ Host = "localhost"
90+ Port = "5432"
91+ EnableLog = false
92+ MaxConns = 200
93+
94+ [Etherman]
95+ URL = "https://sepolia.infura.io/v3/bd6164d34c324fa08ca5b6dc1d3ed3a2"
96+ ForkIDChunkSize = 20000
97+ MultiGasProvider = false
98+ [Etherscan]
99+ ApiKey = ""
100+
101+ [RPC]
102+ Host = "0.0.0.0"
103+ Port = 8123
104+ ReadTimeout = "60s"
105+ WriteTimeout = "60s"
106+ MaxRequestsPerIPAndSecond = 5000
107+ SequencerNodeURI = ""
108+ BatchRequestsEnabled = true
109+ EnableL2SuggestedGasPricePolling = true
110+ [RPC.WebSockets]
111+ Enabled = true
112+ Port = 8133
113+
114+ [Synchronizer]
115+ SyncInterval = "1s"
116+ SyncChunkSize = 100
117+ TrustedSequencerURL = "" # If it is empty or not specified, then the value is read from the smc.
118+ L1SynchronizationMode = "sequential" # "sequential" or "parallel"
119+ [Synchronizer.L1ParallelSynchronization]
120+ MaxClients = 10
121+ MaxPendingNoProcessedBlocks = 25
122+ RequestLastBlockPeriod = "5s"
123+ RequestLastBlockTimeout = "5s"
124+ RequestLastBlockMaxRetries = 3
125+ StatisticsPeriod = "5m"
126+ TimeoutMainLoop = "5m"
127+ RollupInfoRetriesSpacing= "5s"
128+ FallbackToSequentialModeOnSynchronized = false
129+ [Synchronizer.L1ParallelSynchronization.PerformanceWarning]
130+ AceptableInacctivityTime = "5s"
131+ ApplyAfterNumRollupReceived = 10
132+
133+ [Sequencer]
134+ WaitPeriodPoolIsEmpty = "1s"
135+ LastBatchVirtualizationTimeMaxWaitPeriod = "10s"
136+ BlocksAmountForTxsToBeDeleted = 100
137+ FrequencyToCheckTxsForDelete = "12h"
138+ TxLifetimeCheckTimeout = "10m"
139+ MaxTxLifetime = "3h"
140+ [Sequencer.Finalizer]
141+ GERDeadlineTimeout = "2s"
142+ ForcedBatchDeadlineTimeout = "5s"
143+ SleepDuration = "100ms"
144+ ResourcePercentageToCloseBatch = 10
145+ GERFinalityNumberOfBlocks = 0
146+ ClosingSignalsManagerWaitForCheckingL1Timeout = "10s"
147+ ClosingSignalsManagerWaitForCheckingGER = "10s"
148+ ClosingSignalsManagerWaitForCheckingForcedBatches = "10s"
149+ ForcedBatchesFinalityNumberOfBlocks = 0
150+ TimestampResolution = "10s"
151+ StopSequencerOnBatchNum = 0
152+ [Sequencer.DBManager]
153+ PoolRetrievalInterval = "500ms"
154+ L2ReorgRetrievalInterval = "5s"
155+
156+ [SequenceSender]
157+ WaitPeriodSendSequence = "15s"
158+ LastBatchVirtualizationTimeMaxWaitPeriod = "10s"
159+ MaxTxSizeForL1 = 131072
160+ L2Coinbase = "0xf100D00c376D62682Faf28FeE5cF603AAED75e13"
161+ PrivateKey = {Path = "/tmp/cdk/account.key", Password = "testonly"}
162+
163+ [Aggregator]
164+ Host = "0.0.0.0"
165+ Port = 50081
166+ RetryTime = "5s"
167+ VerifyProofInterval = "10s"
168+ TxProfitabilityCheckerType = "acceptall"
169+ TxProfitabilityMinReward = "1.1"
170+ ProofStatePollingInterval = "5s"
171+ SenderAddress = "0xf100D00c376D62682Faf28FeE5cF603AAED75e13"
172+ CleanupLockedProofsInterval = "2m"
173+ GeneratingProofCleanupThreshold = "10m"
174+
175+ [EthTxManager]
176+ ForcedGas = 0
177+ PrivateKeys = [
178+ {Path = "/tmp/cdk/account.key", Password = "testonly"}
179+ ]
180+
181+ [L2GasPriceSuggester]
182+ Type = "default"
183+ UpdatePeriod = "10s"
184+ Factor = 0.5
185+ DefaultGasPriceWei = 0
186+ MaxGasPriceWei = 0
187+
188+ [MTClient]
189+ URI = "localhost:50061"
190+
191+ [Executor]
192+ URI = "localhost:50071"
193+ MaxGRPCMessageSize = 100000000
194+
195+ [Metrics]
196+ Host = "0.0.0.0"
197+ Port = 9091
198+ Enabled = true
199+ ProfilingHost = "0.0.0.0"
200+ ProfilingPort = 6060
201+ ProfilingEnabled = true
202+
203+ [HashDB]
86204 User = "cdk_user"
87205 Password = "cdk_password"
88- Name = "pool_db "
206+ Name = "prover_db "
89207 Host = "localhost"
90208 Port = "5432"
91209 EnableLog = false
92210 MaxConns = 200
93211
94- [Etherman]
95- URL = "https://sepolia.infura.io/v3/bd6164d34c324fa08ca5b6dc1d3ed3a2"
96- ForkIDChunkSize = 20000
97- MultiGasProvider = false
98- [Etherscan]
99- ApiKey = ""
100-
101- [RPC]
102- Host = "0.0.0.0"
103- Port = 8123
104- ReadTimeout = "60s"
105- WriteTimeout = "60s"
106- MaxRequestsPerIPAndSecond = 5000
107- SequencerNodeURI = ""
108- BatchRequestsEnabled = true
109- EnableL2SuggestedGasPricePolling = true
110- [RPC.WebSockets]
111- Enabled = true
112- Port = 8133
113-
114- [Synchronizer]
115- SyncInterval = "1s"
116- SyncChunkSize = 100
117- TrustedSequencerURL = "" # If it is empty or not specified, then the value is read from the smc.
118- L1SynchronizationMode = "sequential" # "sequential" or "parallel"
119- [Synchronizer.L1ParallelSynchronization]
120- MaxClients = 10
121- MaxPendingNoProcessedBlocks = 25
122- RequestLastBlockPeriod = "5s"
123- RequestLastBlockTimeout = "5s"
124- RequestLastBlockMaxRetries = 3
125- StatisticsPeriod = "5m"
126- TimeoutMainLoop = "5m"
127- RollupInfoRetriesSpacing= "5s"
128- FallbackToSequentialModeOnSynchronized = false
129- [Synchronizer.L1ParallelSynchronization.PerformanceWarning]
130- AceptableInacctivityTime = "5s"
131- ApplyAfterNumRollupReceived = 10
132-
133- [Sequencer]
134- WaitPeriodPoolIsEmpty = "1s"
135- LastBatchVirtualizationTimeMaxWaitPeriod = "10s"
136- BlocksAmountForTxsToBeDeleted = 100
137- FrequencyToCheckTxsForDelete = "12h"
138- TxLifetimeCheckTimeout = "10m"
139- MaxTxLifetime = "3h"
140- [Sequencer.Finalizer]
141- GERDeadlineTimeout = "2s"
142- ForcedBatchDeadlineTimeout = "5s"
143- SleepDuration = "100ms"
144- ResourcePercentageToCloseBatch = 10
145- GERFinalityNumberOfBlocks = 0
146- ClosingSignalsManagerWaitForCheckingL1Timeout = "10s"
147- ClosingSignalsManagerWaitForCheckingGER = "10s"
148- ClosingSignalsManagerWaitForCheckingForcedBatches = "10s"
149- ForcedBatchesFinalityNumberOfBlocks = 0
150- TimestampResolution = "10s"
151- StopSequencerOnBatchNum = 0
152- [Sequencer.DBManager]
153- PoolRetrievalInterval = "500ms"
154- L2ReorgRetrievalInterval = "5s"
155-
156- [SequenceSender]
157- WaitPeriodSendSequence = "15s"
158- LastBatchVirtualizationTimeMaxWaitPeriod = "10s"
159- MaxTxSizeForL1 = 131072
160- L2Coinbase = "0xf100D00c376D62682Faf28FeE5cF603AAED75e13"
161- PrivateKey = {Path = "/tmp/cdk/account.key", Password = "testonly"}
162-
163- [Aggregator]
164- Host = "0.0.0.0"
165- Port = 50081
166- RetryTime = "5s"
167- VerifyProofInterval = "10s"
168- TxProfitabilityCheckerType = "acceptall"
169- TxProfitabilityMinReward = "1.1"
170- ProofStatePollingInterval = "5s"
171- SenderAddress = "0xf100D00c376D62682Faf28FeE5cF603AAED75e13"
172- CleanupLockedProofsInterval = "2m"
173- GeneratingProofCleanupThreshold = "10m"
174-
175- [EthTxManager]
176- ForcedGas = 0
177- PrivateKeys = [
178- {Path = "/tmp/cdk/account.key", Password = "testonly"}
179- ]
180-
181- [L2GasPriceSuggester]
182- Type = "default"
183- UpdatePeriod = "10s"
184- Factor = 0.5
185- DefaultGasPriceWei = 0
186- MaxGasPriceWei = 0
187-
188- [MTClient]
189- URI = "localhost:50061"
190-
191- [Executor]
192- URI = "localhost:50071"
193- MaxGRPCMessageSize = 100000000
194-
195- [Metrics]
196- Host = "0.0.0.0"
197- Port = 9091
198- Enabled = true
199- ProfilingHost = "0.0.0.0"
200- ProfilingPort = 6060
201- ProfilingEnabled = true
202-
203- [HashDB]
204- User = "cdk_user"
205- Password = "cdk_password"
206- Name = "prover_db"
207- Host = "localhost"
208- Port = "5432"
209- EnableLog = false
210- MaxConns = 200
211-
212- 4 . Modify the ` URL ` parameter in` [Etherman] ` to the URL of the RPC Provider, along with the parameters ` L2Coinbase ` in ` [SequenceSender] ` and ` SenderAddress ` in ` [Aggregator] ` to the address we generated earlier by running the following script.
212+ 4 . Run the following script to modify the ` URL ` parameter in` [Etherman] ` to the URL of the RPC Provider, along with the parameters ` L2Coinbase ` in ` [SequenceSender] ` and ` SenderAddress ` in ` [Aggregator] ` to the address we generated earlier.
213213
214214 ```bash
215215 source /tmp/cdk/.env
0 commit comments