Skip to content

Commit e71f604

Browse files
committed
new fixes
1 parent a320852 commit e71f604

File tree

6 files changed

+251
-338
lines changed

6 files changed

+251
-338
lines changed

docs/zkEVM/deployzkevm/step4-fullzkevm.md

Lines changed: 151 additions & 160 deletions
Original file line numberDiff line numberDiff line change
@@ -85,37 +85,34 @@ Edit the file changing the following parameters from `~/zkevm/zkevm-contracts/de
8585

8686
Edit `~/zkevm/mainnet/config/environments/testnet/public.node.config.toml` with the following values. The config file is large and we'll update the documentation in the future to list only the updated parameters.
8787

88-
<details>
89-
<summary>Click to expand the Node <code>config.toml</code> file</summary>
90-
91-
92-
```bash
93-
vim ~/zkevm/mainnet/config/environments/testnet/public.node.config.toml
94-
```
95-
96-
```bash
97-
IsTrustedSequencer = true
98-
[Log]
99-
Environment = "development"
100-
Level = "debug"
101-
Outputs = ["stderr","stdout"]
102-
103-
[StateDB]
104-
User = "state_user"
105-
Password = "state_password"
106-
Name = "state_db"
107-
Host = "zkevm-state-db"
108-
Port = "5432"
109-
EnableLog = false
110-
MaxConns = 200
111-
112-
[Pool]
113-
FreeClaimGasLimit = 1500000
114-
MaxTxBytesSize=30132
115-
MaxTxDataBytesSize=30000
116-
DefaultMinGasPriceAllowed = 1000000000
117-
MinAllowedGasPriceInterval = "5m"
118-
PollMinAllowedGasPriceInterval = "15s"
88+
??? "Click to expand the <code>node.config.toml</code> file"
89+
```bash
90+
vim ~/zkevm/mainnet/config/environments/testnet/public.node.config.toml
91+
```
92+
93+
```bash
94+
IsTrustedSequencer = true
95+
[Log]
96+
Environment = "development"
97+
Level = "debug"
98+
Outputs = ["stderr","stdout"]
99+
100+
[StateDB]
101+
User = "state_user"
102+
Password = "state_password"
103+
Name = "state_db"
104+
Host = "zkevm-state-db"
105+
Port = "5432"
106+
EnableLog = false
107+
MaxConns = 200
108+
109+
[Pool]
110+
FreeClaimGasLimit = 1500000
111+
MaxTxBytesSize=30132
112+
MaxTxDataBytesSize=30000
113+
DefaultMinGasPriceAllowed = 1000000000
114+
MinAllowedGasPriceInterval = "5m"
115+
PollMinAllowedGasPriceInterval = "15s"
119116
[Pool.DB]
120117
User = "pool_user"
121118
Password = "pool_password"
@@ -124,76 +121,74 @@ PollMinAllowedGasPriceInterval = "15s"
124121
Port = "5432"
125122
EnableLog = false
126123
MaxConns = 200
127-
128-
[Etherman]
129-
URL = "http://localhost:8845" # put a valid Goerli node
130-
MultiGasProvider = false
131-
L1URL = "http://localhost:8845" # put a valid Goerli node
132-
L2URLs = ["http://X.X.X.X:8545"] # your public IP
124+
[Etherman]
125+
URL = "http://localhost:8845" # put a valid Goerli node
126+
MultiGasProvider = false
127+
L1URL = "http://localhost:8845" # put a valid Goerli node
128+
L2URLs = ["http://X.X.X.X:8545"] # your public IP
133129
[Etherman.Etherscan]
134-
ApiKey = "" # Etherscan API key
135-
136-
[RPC]
137-
Host = "0.0.0.0"
138-
Port = 8545
139-
ReadTimeoutInSec = 60
140-
WriteTimeoutInSec = 60
141-
MaxRequestsPerIPAndSecond = 5000
142-
SequencerNodeURI = ""
143-
BroadcastURI = "http://3.144.195.147:61090"
144-
DefaultSenderAddress = "0x1111111111111111111111111111111111111111"
145-
EnableL2SuggestedGasPricePolling = true
130+
ApiKey = "" # Etherscan API key
131+
132+
[RPC]
133+
Host = "0.0.0.0"
134+
Port = 8545
135+
ReadTimeoutInSec = 60
136+
WriteTimeoutInSec = 60
137+
MaxRequestsPerIPAndSecond = 5000
138+
SequencerNodeURI = ""
139+
BroadcastURI = "http://3.144.195.147:61090"
140+
DefaultSenderAddress = "0x1111111111111111111111111111111111111111"
141+
EnableL2SuggestedGasPricePolling = true
146142
[RPC.WebSockets]
147143
Enabled = true
148144
Port = 8546
149-
150-
[Synchronizer]
151-
SyncInterval = "5s"
152-
SyncChunkSize = 500
153-
trustedSequencerURL = "http://X.X.X.X:8545" # your public IP
154-
155-
[MTClient]
156-
URI = "zkevm-prover:50061"
157-
158-
[Executor]
159-
URI = "zkevm-prover:50071"
160-
161-
[Metrics]
162-
Host = "0.0.0.0"
163-
Port = 9091
164-
Enabled = true
165-
ProfilingHost = "0.0.0.0"
166-
ProfilingPort = 6060
167-
ProfilingEnabled = false
168-
169-
[Sequencer]
170-
WaitPeriodPoolIsEmpty = "1s"
171-
WaitPeriodSendSequence = "15s"
172-
LastBatchVirtualizationTimeMaxWaitPeriod = "10s"
173-
BlocksAmountForTxsToBeDeleted = 100
174-
FrequencyToCheckTxsForDelete = "12h"
175-
MaxTxsPerBatch = 150
176-
MaxBatchBytesSize = 129848
177-
MaxCumulativeGasUsed = 30000000
178-
MaxKeccakHashes = 468
179-
MaxPoseidonHashes = 279620
180-
MaxPoseidonPaddings = 149796
181-
MaxMemAligns = 262144
182-
MaxArithmetics = 262144
183-
MaxBinaries = 262144
184-
MaxSteps = 8388608
185-
WeightBatchBytesSize = 1
186-
WeightCumulativeGasUsed = 1
187-
WeightKeccakHashes = 1
188-
WeightPoseidonHashes = 1
189-
WeightPoseidonPaddings = 1
190-
WeightMemAligns = 1
191-
WeightArithmetics = 1
192-
WeightBinaries = 1
193-
WeightSteps = 1
194-
TxLifetimeCheckTimeout = "10m"
195-
MaxTxLifetime = "3h"
196-
MaxTxSizeForL1 = 131072
145+
[Synchronizer]
146+
SyncInterval = "5s"
147+
SyncChunkSize = 500
148+
trustedSequencerURL = "http://X.X.X.X:8545" # your public IP
149+
150+
[MTClient]
151+
URI = "zkevm-prover:50061"
152+
153+
[Executor]
154+
URI = "zkevm-prover:50071"
155+
156+
[Metrics]
157+
Host = "0.0.0.0"
158+
Port = 9091
159+
Enabled = true
160+
ProfilingHost = "0.0.0.0"
161+
ProfilingPort = 6060
162+
ProfilingEnabled = false
163+
164+
[Sequencer]
165+
WaitPeriodPoolIsEmpty = "1s"
166+
WaitPeriodSendSequence = "15s"
167+
LastBatchVirtualizationTimeMaxWaitPeriod = "10s"
168+
BlocksAmountForTxsToBeDeleted = 100
169+
FrequencyToCheckTxsForDelete = "12h"
170+
MaxTxsPerBatch = 150
171+
MaxBatchBytesSize = 129848
172+
MaxCumulativeGasUsed = 30000000
173+
MaxKeccakHashes = 468
174+
MaxPoseidonHashes = 279620
175+
MaxPoseidonPaddings = 149796
176+
MaxMemAligns = 262144
177+
MaxArithmetics = 262144
178+
MaxBinaries = 262144
179+
MaxSteps = 8388608
180+
WeightBatchBytesSize = 1
181+
WeightCumulativeGasUsed = 1
182+
WeightKeccakHashes = 1
183+
WeightPoseidonHashes = 1
184+
WeightPoseidonPaddings = 1
185+
WeightMemAligns = 1
186+
WeightArithmetics = 1
187+
WeightBinaries = 1
188+
WeightSteps = 1
189+
TxLifetimeCheckTimeout = "10m"
190+
MaxTxLifetime = "3h"
191+
MaxTxSizeForL1 = 131072
197192
[Sequencer.Finalizer]
198193
GERDeadlineTimeoutInSec = "2s"
199194
ForcedBatchDeadlineTimeoutInSec = "60s"
@@ -210,71 +205,67 @@ MaxTxSizeForL1 = 131072
210205
PoolRetrievalInterval = "500ms"
211206
[Sequencer.Worker]
212207
ResourceCostMultiplier = 1000
213-
214-
[SequenceSender]
215-
WaitPeriodSendSequence = "5s"
216-
LastBatchVirtualizationTimeMaxWaitPeriod = "5s"
217-
MaxTxSizeForL1 = 131072
218-
SenderAddress = "" # trustedSequencer address from deploy_output.json
219-
PrivateKeys = [{Path = "/pk/sequencer.keystore", Password = "password"}]
220-
221-
[Aggregator]
222-
Host = "0.0.0.0"
223-
Port = 50081
224-
ForkId = 4
225-
RetryTime = "5s"
226-
VerifyProofInterval = "30s"
227-
TxProfitabilityCheckerType = "acceptall"
228-
TxProfitabilityMinReward = "1.1"
229-
ProofStatePollingInterval = "5s"
230-
SenderAddress = "" # trustedAggregator address from deploy_output.json
231-
CleanupLockedProofsInterval = "2m"
232-
GeneratingProofCleanupThreshold = "10m"
233-
234-
[EthTxManager]
235-
ForcedGas = 0
236-
PrivateKeys = [
208+
[SequenceSender]
209+
WaitPeriodSendSequence = "5s"
210+
LastBatchVirtualizationTimeMaxWaitPeriod = "5s"
211+
MaxTxSizeForL1 = 131072
212+
SenderAddress = "" # trustedSequencer address from deploy_output.json
213+
PrivateKeys = [{Path = "/pk/sequencer.keystore", Password = "password"}]
214+
215+
[Aggregator]
216+
Host = "0.0.0.0"
217+
Port = 50081
218+
ForkId = 4
219+
RetryTime = "5s"
220+
VerifyProofInterval = "30s"
221+
TxProfitabilityCheckerType = "acceptall"
222+
TxProfitabilityMinReward = "1.1"
223+
ProofStatePollingInterval = "5s"
224+
SenderAddress = "" # trustedAggregator address from deploy_output.json
225+
CleanupLockedProofsInterval = "2m"
226+
GeneratingProofCleanupThreshold = "10m"
227+
228+
[EthTxManager]
229+
ForcedGas = 0
230+
PrivateKeys = [
237231
{Path = "/pk/sequencer.keystore", Password = "password"},
238232
{Path = "/pk/aggregator.keystore", Password = "password"}
239-
]
240-
241-
[Database]
242-
Database = "postgres"
243-
User = "test_user"
244-
Password = "test_password"
245-
Name = "test_db"
246-
Host = "zkevm-bridge-db"
247-
Port = "5435"
248-
MaxConns = 20
249-
250-
[BridgeController]
251-
Store = "postgres"
252-
Height = 32
253-
254-
[BridgeServer]
255-
GRPCPort = "9090"
256-
HTTPPort = "8080"
257-
258-
[NetworkConfig]
259-
GenBlockNumber = 9500870 # deploymentBlockNumber from deploy_output.json
260-
PolygonZkEVMAddress = "" # polygonZkEVMAddress from deploy_output.json
261-
PolygonBridgeAddress = "" # PolygonZkEVMBridge from genesis.json
262-
PolygonZkEVMGlobalExitRootAddress = "" # polygonZkEVMGlobalExitRootAddress from deploy_output.json
263-
MaticTokenAddress = "" # maticTokenAddress from deploy_output.json
264-
L2PolygonBridgeAddresses = [""] # PolygonZkEVMBridge from genesis.json
265-
L1ChainID = 5 # Goerli chainID
266-
267-
[L2GasPriceSuggester]
268-
Type = "default"
269-
DefaultGasPriceWei = 100000000
270-
271-
[ClaimTxManager]
272-
FrequencyToMonitorTxs = "1s"
273-
PrivateKey = {Path = "/pk/sequencer.keystore", Password = "password"}
274-
Enabled = true
275-
```
276-
277-
</details>
233+
]
234+
[Database]
235+
Database = "postgres"
236+
User = "test_user"
237+
Password = "test_password"
238+
Name = "test_db"
239+
Host = "zkevm-bridge-db"
240+
Port = "5435"
241+
MaxConns = 20
242+
243+
[BridgeController]
244+
Store = "postgres"
245+
Height = 32
246+
247+
[BridgeServer]
248+
GRPCPort = "9090"
249+
HTTPPort = "8080"
250+
251+
[NetworkConfig]
252+
GenBlockNumber = 9500870 # deploymentBlockNumber from deploy_output.json
253+
PolygonZkEVMAddress = "" # polygonZkEVMAddress from deploy_output.json
254+
PolygonBridgeAddress = "" # PolygonZkEVMBridge from genesis.json
255+
PolygonZkEVMGlobalExitRootAddress = "" # polygonZkEVMGlobalExitRootAddress from deploy_output.json
256+
MaticTokenAddress = "" # maticTokenAddress from deploy_output.json
257+
L2PolygonBridgeAddresses = [""] # PolygonZkEVMBridge from genesis.json
258+
L1ChainID = 5 # Goerli chainID
259+
260+
[L2GasPriceSuggester]
261+
Type = "default"
262+
DefaultGasPriceWei = 100000000
263+
264+
[ClaimTxManager]
265+
FrequencyToMonitorTxs = "1s"
266+
PrivateKey = {Path = "/pk/sequencer.keystore", Password = "password"}
267+
Enabled = true
268+
```
278269

279270
### Add wallets
280271

0 commit comments

Comments
 (0)