Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaubennassar committed Sep 29, 2023
1 parent 629b491 commit 85dbd26
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 20 deletions.
10 changes: 6 additions & 4 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,13 @@ func start(cliCtx *cli.Context) error {
)

// Run RPC
if err := server.Start(); err != nil {
log.Fatal(err)
}
go func() {
if err := server.Start(); err != nil {
log.Fatal(err)
}
}()
// Run EthTxMan
etm.Start()
go etm.Start()

waitSignal(cancelFuncs)
return nil
Expand Down
43 changes: 27 additions & 16 deletions config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,43 @@ import (

// DefaultValues is the default configuration
const DefaultValues = `
PrivateKey = {Path = "/pk/interop.keystore", Password = "testonly"}
[FullNodeRPCs]
0x0DCd1Bf9A1b36cE34237eEaFef220932846BCD82 = "http://zkevm-node:8123"
[RPC]
Host = "0.0.0.0"
Port = 4444
ReadTimeout = "60s"
WriteTimeout = "60s"
MaxRequestsPerIPAndSecond = 5000
[Log]
Environment = "development" # "production" or "development"
Level = "info"
Level = "debug"
Outputs = ["stderr"]
[DB]
User = "interop_user"
Password = "interop_password"
Name = "interop_db"
Host = "interop-db"
User = "silencer_user"
Password = "silencer_password"
Name = "silencer_db"
Host = "silencer-db"
Port = "5432"
EnableLog = false
MaxConns = 200
[RPC]
Host = "0.0.0.0"
Port = 4444
ReadTimeout = "60s"
WriteTimeout = "60s"
MaxRequestsPerIPAndSecond = 500
SequencerNodeURI = ""
EnableL2SuggestedGasPricePolling = false
[RPC.WebSockets]
Enabled = false
[EthTxManager]
FrequencyToMonitorTxs = "1s"
WaitTxToBeMined = "2m"
ForcedGas = 0
GasPriceMarginFactor = 1
MaxGasPriceLimit = 0
PrivateKeys = [
{Path = "/pk/interop.keystore", Password = "testonly"},
]
[L1]
ChainID = 1337
NodeURL = "http://l1:8545"
`

// Default parses the default configuration values.
Expand Down
4 changes: 4 additions & 0 deletions test/config/silencer.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ EnableLog = false
MaxConns = 200

[EthTxManager]
FrequencyToMonitorTxs = "1s"
WaitTxToBeMined = "2m"
ForcedGas = 0
GasPriceMarginFactor = 1
MaxGasPriceLimit = 0
PrivateKeys = [
{Path = "/pk/interop.keystore", Password = "testonly"},
]
Expand Down

0 comments on commit 85dbd26

Please sign in to comment.