forked from 0xPolygonHermez/zkevm-node
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tony-armstrong
committed
Jan 8, 2024
1 parent
379266e
commit 00ffd0d
Showing
8 changed files
with
277 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "debug component", | ||
"type": "go", | ||
"request": "launch", | ||
"mode": "auto", | ||
"cwd": "${workspaceFolder}", | ||
"program": "${workspaceFolder}/cmd", | ||
"args": [ | ||
"run", | ||
"--network", | ||
"custom", | ||
"--custom-network-file", | ||
"test/config/test.genesis.config.json", | ||
"--cfg", | ||
"test/config/non-container-test.node.config.toml", | ||
"--components", | ||
"synchronizer" | ||
] | ||
}, | ||
{ | ||
"name": "debug approve", | ||
"type": "go", | ||
"request": "launch", | ||
"mode": "auto", | ||
"cwd": "${workspaceFolder}", | ||
"program": "${workspaceFolder}/cmd", | ||
"args": [ | ||
"approve", | ||
"--network", | ||
"custom", | ||
"--custom-network-file", | ||
"test/config/test.genesis.config.json", | ||
"--key-store-path", | ||
"test/sequencer.keystore", | ||
"--pw", | ||
"testonly", | ||
"--am", | ||
"115792089237316195423570985008687907853269984665640564039457584007913129639935", | ||
"-y", | ||
"--cfg", | ||
"test/config/non-container-test.node.config.toml", | ||
] | ||
}, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
IsTrustedSequencer = true | ||
|
||
[Log] | ||
Environment = "development" # "production" or "development" | ||
Level = "debug" | ||
Outputs = ["stderr"] | ||
|
||
[State] | ||
AccountQueue = 64 | ||
[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 | ||
DefaultMinGasPriceAllowed = 0 | ||
MinAllowedGasPriceInterval = "5m" | ||
PollMinAllowedGasPriceInterval = "15s" | ||
[Pool.DB] | ||
User = "pool_user" | ||
Password = "pool_password" | ||
Name = "pool_db" | ||
Host = "zkevm-pool-db" | ||
Port = "5433" | ||
EnableLog = false | ||
MaxConns = 200 | ||
|
||
[Etherman] | ||
URL = "http://zkevm-mock-l1-network:8545" | ||
ForkIDChunkSize = 20000 | ||
MultiGasProvider = false | ||
[Etherscan] | ||
ApiKey = "" | ||
|
||
[RPC] | ||
Host = "0.0.0.0" | ||
Port = 8123 | ||
ReadTimeout = "60s" | ||
WriteTimeout = "60s" | ||
MaxRequestsPerIPAndSecond = 5000 | ||
SequencerNodeURI = "" | ||
BatchRequestsEnabled = true | ||
BatchRequestsLimit = 100 | ||
EnableL2SuggestedGasPricePolling = true | ||
[RPC.WebSockets] | ||
Enabled = true | ||
Port = 8133 | ||
|
||
[Synchronizer] | ||
SyncInterval = "5s" | ||
SyncChunkSize = 10 | ||
TrustedSequencerURL = "" # If it is empty or not specified, then the value is read from the smc. | ||
UseParallelModeForL1Synchronization = true | ||
[Synchronizer.L1ParallelSynchronization] | ||
NumberOfParallelOfEthereumClients = 5 | ||
CapacityOfBufferingRollupInfoFromL1 = 10 | ||
TimeForCheckLastBlockOnL1Time = "5s" | ||
TimeoutForRequestLastBlockOnL1 = "60s" | ||
MaxNumberOfRetriesForRequestLastBlockOnL1 = 3 | ||
TimeForShowUpStatisticsLog = "1m" | ||
TimeOutMainLoop = "5m" | ||
[Synchronizer.L1ParallelSynchronization.PerformanceCheck] | ||
AcceptableTimeWaitingForNewRollupInfo = "5s" | ||
NumIterationsBeforeStartCheckingTimeWaitinfForNewRollupInfo = 10 | ||
|
||
[Sequencer] | ||
WaitPeriodPoolIsEmpty = "1s" | ||
LastBatchVirtualizationTimeMaxWaitPeriod = "10s" | ||
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.EffectiveGasPrice] | ||
MaxBreakEvenGasPriceDeviationPercentage = 10 | ||
L1GasPriceFactor = 0.25 | ||
ByteGasCost = 16 | ||
MarginFactor = 1 | ||
Enabled = false | ||
[Sequencer.StreamServer] | ||
Port = 6900 | ||
Filename = "/datastreamer/datastream.bin" | ||
Enabled = true | ||
|
||
[SequenceSender] | ||
WaitPeriodSendSequence = "15s" | ||
LastBatchVirtualizationTimeMaxWaitPeriod = "10s" | ||
MaxTxSizeForL1 = 131072 | ||
L2Coinbase = "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266" | ||
PrivateKey = {Path = "/pk/sequencer.keystore", Password = "testonly"} | ||
|
||
[Aggregator] | ||
Host = "0.0.0.0" | ||
Port = 50081 | ||
RetryTime = "5s" | ||
VerifyProofInterval = "10s" | ||
TxProfitabilityCheckerType = "acceptall" | ||
TxProfitabilityMinReward = "1.1" | ||
ProofStatePollingInterval = "5s" | ||
SenderAddress = "0x70997970c51812dc3a010c7d01b50e0d17dc79c8" | ||
CleanupLockedProofsInterval = "2m" | ||
GeneratingProofCleanupThreshold = "10m" | ||
|
||
[EthTxManager] | ||
ForcedGas = 0 | ||
PrivateKeys = [ | ||
{Path = "/pk/sequencer.keystore", Password = "testonly"}, | ||
{Path = "/pk/aggregator.keystore", Password = "testonly"} | ||
] | ||
|
||
[L2GasPriceSuggester] | ||
Type = "default" | ||
UpdatePeriod = "10s" | ||
Factor = 0.5 | ||
DefaultGasPriceWei = 1000000000 | ||
MaxGasPriceWei = 0 | ||
|
||
[MTClient] | ||
URI = "zkevm-prover:50061" | ||
|
||
[Executor] | ||
URI = "zkevm-prover:50071" | ||
MaxGRPCMessageSize = 100000000 | ||
|
||
[Metrics] | ||
Host = "0.0.0.0" | ||
Port = 9091 | ||
Enabled = true | ||
ProfilingHost = "0.0.0.0" | ||
ProfilingPort = 6060 | ||
ProfilingEnabled = true | ||
|
||
[EventLog] | ||
[EventLog.DB] | ||
User = "event_user" | ||
Password = "event_password" | ||
Name = "event_db" | ||
Host = "zkevm-event-db" | ||
Port = "5435" | ||
EnableLog = false | ||
MaxConns = 200 | ||
|
||
[HashDB] | ||
User = "prover_user" | ||
Password = "prover_pass" | ||
Name = "prover_db" | ||
Host = "zkevm-state-db" | ||
Port = "5432" | ||
EnableLog = false | ||
MaxConns = 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters