github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/config/default.go (about)

     1  package config
     2  
     3  // DefaultValues is the default configuration
     4  const DefaultValues = `
     5  IsTrustedSequencer = false
     6  
     7  [Log]
     8  Environment = "development" # "production" or "development"
     9  Level = "info"
    10  Outputs = ["stderr"]
    11  
    12  [StateDB]
    13  User = "state_user"
    14  Password = "state_password"
    15  Name = "state_db"
    16  Host = "supernets2-state-db"
    17  Port = "5432"
    18  EnableLog = false
    19  MaxConns = 200
    20  
    21  [Pool]
    22  IntervalToRefreshBlockedAddresses = "5m"
    23  MaxTxBytesSize=100132
    24  MaxTxDataBytesSize=100000
    25  DefaultMinGasPriceAllowed = 1000000000
    26  MinAllowedGasPriceInterval = "5m"
    27  PollMinAllowedGasPriceInterval = "15s"
    28  	[Pool.DB]
    29  	User = "pool_user"
    30  	Password = "pool_password"
    31  	Name = "pool_db"
    32  	Host = "supernets2-pool-db"
    33  	Port = "5432"
    34  	EnableLog = false
    35  	MaxConns = 200
    36  
    37  [Etherman]
    38  URL = "http://localhost:8545"
    39  MultiGasProvider = false
    40  	[Etherman.Etherscan]
    41  		ApiKey = ""
    42  
    43  [EthTxManager]
    44  FrequencyToMonitorTxs = "1s"
    45  WaitTxToBeMined = "2m"
    46  ForcedGas = 0
    47  
    48  [RPC]
    49  Host = "0.0.0.0"
    50  Port = 8545
    51  ReadTimeout = "60s"
    52  WriteTimeout = "60s"
    53  MaxRequestsPerIPAndSecond = 500
    54  SequencerNodeURI = ""
    55  EnableL2SuggestedGasPricePolling = true
    56  	[RPC.WebSockets]
    57  		Enabled = true
    58  		Host = "0.0.0.0"
    59  		Port = 8546
    60  
    61  [Synchronizer]
    62  SyncInterval = "1s"
    63  SyncChunkSize = 100
    64  TrustedSequencerURL = "" # If it is empty or not specified, then the value is read from the smc
    65  
    66  [Sequencer]
    67  WaitPeriodPoolIsEmpty = "1s"
    68  BlocksAmountForTxsToBeDeleted = 100
    69  FrequencyToCheckTxsForDelete = "12h"
    70  MaxTxsPerBatch = 150
    71  MaxBatchBytesSize = 129848
    72  MaxCumulativeGasUsed = 30000000
    73  MaxKeccakHashes = 468
    74  MaxPoseidonHashes = 279620
    75  MaxPoseidonPaddings = 149796
    76  MaxMemAligns = 262144
    77  MaxArithmetics = 262144
    78  MaxBinaries = 262144
    79  MaxSteps = 8388608
    80  WeightBatchBytesSize = 1
    81  WeightCumulativeGasUsed = 1
    82  WeightKeccakHashes = 1
    83  WeightPoseidonHashes = 1
    84  WeightPoseidonPaddings = 1
    85  WeightMemAligns = 1
    86  WeightArithmetics = 1
    87  WeightBinaries = 1
    88  WeightSteps = 1
    89  TxLifetimeCheckTimeout = "10m"
    90  MaxTxLifetime = "3h"
    91  	[Sequencer.Finalizer]
    92  		GERDeadlineTimeout = "5s"
    93  		ForcedBatchDeadlineTimeout = "60s"
    94  		SleepDuration = "100ms"
    95  		ResourcePercentageToCloseBatch = 10
    96  		GERFinalityNumberOfBlocks = 64
    97  		ClosingSignalsManagerWaitForCheckingL1Timeout = "10s"
    98  		ClosingSignalsManagerWaitForCheckingGER = "10s"
    99  		ClosingSignalsManagerWaitForCheckingForcedBatches = "10s"
   100  		ForcedBatchesFinalityNumberOfBlocks = 64
   101  		TimestampResolution = "10s"	
   102  	[Sequencer.DBManager]
   103  		PoolRetrievalInterval = "500ms"
   104  		L2ReorgRetrievalInterval = "5s"
   105  	[Sequencer.Worker]
   106  		ResourceCostMultiplier = 1000
   107  
   108  [SequenceSender]
   109  WaitPeriodSendSequence = "5s"
   110  LastBatchVirtualizationTimeMaxWaitPeriod = "5s"
   111  MaxBatchesForL1 = 1000
   112  SenderAddress = "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"
   113  PrivateKeys = [{Path = "/pk/sequencer.keystore", Password = "testonly"}]
   114  
   115  [PriceGetter]
   116  Type = "default"
   117  DefaultPrice = "2000"
   118  
   119  [Aggregator]
   120  Host = "0.0.0.0"
   121  Port = 50081
   122  ForkId = 2
   123  RetryTime = "5s"
   124  VerifyProofInterval = "90s"
   125  TxProfitabilityCheckerType = "acceptall"
   126  TxProfitabilityMinReward = "1.1"
   127  ProofStatePollingInterval = "5s"
   128  CleanupLockedProofsInterval = "2m"
   129  GeneratingProofCleanupThreshold = "10m"
   130  
   131  [L2GasPriceSuggester]
   132  Type = "follower"
   133  UpdatePeriod = "10s"
   134  Factor = 0.15
   135  DefaultGasPriceWei = 2000000000
   136  
   137  [MTClient]
   138  URI = "supernets2-prover:50061"
   139  
   140  [Executor]
   141  URI = "supernets2-prover:50071"
   142  
   143  [Metrics]
   144  Host = "0.0.0.0"
   145  Port = 9091
   146  Enabled = false
   147  `