mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-24 20:47:16 +00:00
07ffa36d44
- lives in internal/logging - all log flags moved to internal/logging/flags - allows continued use of root logger via log.Info etc. - update logger to take change allowing string to lvl for 'trace' Verbosity flag is overridden by log.console.verbosity. Logs will be colocated if all run as one process, only split where progs are run as separate processes, in a future update this will be addressed so for example rpcdeamon will always log to it's own file
56 lines
2.0 KiB
Go
56 lines
2.0 KiB
Go
package httpcfg
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/ledgerwatch/erigon-lib/kv/kvcache"
|
|
"github.com/ledgerwatch/erigon/eth/ethconfig"
|
|
"github.com/ledgerwatch/erigon/node/nodecfg/datadir"
|
|
"github.com/ledgerwatch/erigon/rpc/rpccfg"
|
|
)
|
|
|
|
type HttpCfg struct {
|
|
Enabled bool
|
|
PrivateApiAddr string
|
|
WithDatadir bool // Erigon's database can be read by separated processes on same machine - in read-only mode - with full support of transactions. It will share same "OS PageCache" with Erigon process.
|
|
DataDir string
|
|
Dirs datadir.Dirs
|
|
HttpListenAddress string
|
|
AuthRpcHTTPListenAddress string
|
|
TLSCertfile string
|
|
TLSCACert string
|
|
TLSKeyFile string
|
|
HttpPort int
|
|
AuthRpcPort int
|
|
HttpCORSDomain []string
|
|
HttpVirtualHost []string
|
|
AuthRpcVirtualHost []string
|
|
HttpCompression bool
|
|
API []string
|
|
Gascap uint64
|
|
MaxTraces uint64
|
|
WebsocketEnabled bool
|
|
WebsocketCompression bool
|
|
RpcAllowListFilePath string
|
|
RpcBatchConcurrency uint
|
|
RpcStreamingDisable bool
|
|
DBReadConcurrency int
|
|
TraceCompatibility bool // Bug for bug compatibility for trace_ routines with OpenEthereum
|
|
TxPoolApiAddr string
|
|
StateCache kvcache.CoherentConfig
|
|
Snap ethconfig.Snapshot
|
|
Sync ethconfig.Sync
|
|
GRPCServerEnabled bool
|
|
GRPCListenAddress string
|
|
GRPCPort int
|
|
GRPCHealthCheckEnabled bool
|
|
StarknetGRPCAddress string
|
|
JWTSecretPath string // Engine API Authentication
|
|
TraceRequests bool // Always trace requests in INFO level
|
|
HTTPTimeouts rpccfg.HTTPTimeouts
|
|
AuthRpcTimeouts rpccfg.HTTPTimeouts
|
|
EvmCallTimeout time.Duration
|
|
LogDirVerbosity string
|
|
LogDirPath string
|
|
}
|