Skip to content

Commit

Permalink
chore: add ronin config
Browse files Browse the repository at this point in the history
  • Loading branch information
DNK90 committed Mar 23, 2024
1 parent 567d1df commit b3daa32
Show file tree
Hide file tree
Showing 9 changed files with 1,254 additions and 38 deletions.
2 changes: 1 addition & 1 deletion cmd/run.go
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ func runJSONRPCServer(c config.Config, etherman *etherman.Client, chainID uint64
log.Debug("SequencerNodeURI ", c.RPC.SequencerNodeURI)
}

services := []jsonrpc.Service{}
var services []jsonrpc.Service
if _, ok := apis[jsonrpc.APIEth]; ok {
services = append(services, jsonrpc.Service{
Name: jsonrpc.APIEth,
Expand Down
82 changes: 82 additions & 0 deletions config/environments/ronin/node.config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
[Log]
Environment = "development" # "production" or "development"
Level = "info"
Outputs = ["stderr"]

[State]
[State.DB]
User = "state_user"
Password = "state_password"
Name = "state_db"
Host = "0.0.0.0"
Port = "5432"
EnableLog = false
MaxConns = 200

[Pool]
MaxTxBytesSize=100132
MaxTxDataBytesSize=100000
DefaultMinGasPriceAllowed = 1000000000
MinAllowedGasPriceInterval = "5m"
PollMinAllowedGasPriceInterval = "15s"
AccountQueue = 64
GlobalQueue = 1024
[Pool.DB]
User = "pool_user"
Password = "pool_password"
Name = "pool_db"
Host = "0.0.0.0"
Port = "5433"
EnableLog = false
MaxConns = 200

[Etherman]
URL = "https://saigon-testnet.roninchain.com/rpc"
ForkIDChunkSize = 150
MultiGasProvider = false
[Etherman.Etherscan]
ApiKey = ""

[RPC]
Host = "0.0.0.0"
Port = 8545
ReadTimeout = "60s"
WriteTimeout = "60s"
MaxRequestsPerIPAndSecond = 5000
SequencerNodeURI = "http://zkevm-rpc.com"
EnableL2SuggestedGasPricePolling = false
[RPC.WebSockets]
Enabled = true
Port = 8546

[Synchronizer]
SyncInterval = "2s"
SyncChunkSize = 100
TrustedSequencerURL = "http://0.0.0.0:8545" # If it is empty or not specified, then the value is read from the smc
L1SynchronizationMode = "sequential"

[MTClient]
URI = "0.0.0.0:50061"

[Executor]
URI = "0.0.0.0:50071"
MaxResourceExhaustedAttempts = 3
WaitOnResourceExhaustion = "1s"
MaxGRPCMessageSize = 100000000

[Metrics]
Host = "0.0.0.0"
Port = 9091
Enabled = false
ProfilingHost = "0.0.0.0"
ProfilingPort = 6060
ProfilingEnabled = false

[HashDB]
User = "prover_user"
Password = "prover_pass"
Name = "prover_db"
Host = "0.0.0.0"
Port = "5432"
EnableLog = false
MaxConns = 200
100 changes: 100 additions & 0 deletions config/environments/ronin/node.genesis.json

Large diffs are not rendered by default.

Loading

0 comments on commit b3daa32

Please sign in to comment.