package
0.0.0-20250130105826-8a2b41069928
Repository: https://github.com/0xbridge/polygon-edge.git
Documentation: pkg.go.dev
# Functions
DefaultConfig returns the default server configuration.
ReadConfigFile reads the config file from the specified path, builds a Config object and returns it.
# Constants
BlockTimeMultiplierForTimeout Multiplier to get IBFT timeout from block time timeout is calculated when IBFT timeout is not specified.
DefaultConcurrentRequestsDebug specifies max number of allowed concurrent requests for debug endpoints.
DefaultJSONRPCBatchRequestLimit maximum length allowed for json_rpc batch requests.
DefaultJSONRPCBlockRangeLimit maximum block range allowed for json_rpc requests with fromBlock/toBlock values (e.g.
DefaultMetricsInterval specifies the time interval after which Prometheus metrics will be generated.
DefaultNumBlockConfirmations minimal number of child blocks required for the parent block to be considered final on ethereum epoch lasts for 32 blocks.
DefaultWebSocketReadLimit specifies max size in bytes for a message read from the peer by Gorrila websocket lib.
# Structs
Config defines the server configuration params.
Headers defines the HTTP response headers required to enable CORS.
Network defines the network configuration params.
Telemetry holds the config details for metric services.
TxPool defines the TxPool configuration params.