2022-02-16 17:38:54 +00:00
package httpcfg
import (
"github.com/ledgerwatch/erigon-lib/kv/kvcache"
"github.com/ledgerwatch/erigon/eth/ethconfig"
2022-06-07 03:24:50 +00:00
"github.com/ledgerwatch/erigon/node/nodecfg/datadir"
2022-07-04 11:07:45 +00:00
"github.com/ledgerwatch/erigon/rpc/rpccfg"
2022-02-16 17:38:54 +00:00
)
type HttpCfg struct {
2022-02-22 09:23:54 +00:00
Enabled bool
2022-02-16 17:38:54 +00:00
PrivateApiAddr string
2022-05-10 08:54:44 +00:00
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.
2022-02-22 17:39:48 +00:00
DataDir string
2022-06-07 03:24:50 +00:00
Dirs datadir . Dirs
2022-02-16 17:38:54 +00:00
HttpListenAddress string
EngineHTTPListenAddress string
TLSCertfile string
TLSCACert string
TLSKeyFile string
HttpPort int
EnginePort int
HttpCORSDomain [ ] string
HttpVirtualHost [ ] string
HttpCompression bool
API [ ] string
Gascap uint64
MaxTraces uint64
WebsocketEnabled bool
WebsocketCompression bool
RpcAllowListFilePath string
RpcBatchConcurrency uint
2022-03-08 03:43:14 +00:00
DBReadConcurrency int
2022-02-16 17:38:54 +00:00
TraceCompatibility bool // Bug for bug compatibility for trace_ routines with OpenEthereum
TxPoolApiAddr string
TevmEnabled bool
StateCache kvcache . CoherentConfig
2022-05-26 05:27:44 +00:00
Snap ethconfig . Snapshot
2022-05-30 10:08:49 +00:00
Sync ethconfig . Sync
2022-02-16 17:38:54 +00:00
GRPCServerEnabled bool
GRPCListenAddress string
GRPCPort int
GRPCHealthCheckEnabled bool
StarknetGRPCAddress string
2022-02-28 11:07:09 +00:00
JWTSecretPath string // Engine API Authentication
2022-06-19 12:40:28 +00:00
TraceRequests bool // Always trace requests in INFO level
2022-07-04 11:07:45 +00:00
HTTPTimeouts rpccfg . HTTPTimeouts
EngineTimeouts rpccfg . HTTPTimeouts
2022-02-16 17:38:54 +00:00
}