Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMuxIDEmpty = errors.New("mux entry id cannot be empty") ErrDuplicateMuxID = errors.New("duplicate mux entry id") ErrMuxNoRelays = errors.New("mux entry must have at least one relay") ErrMuxNoPubkeys = errors.New("mux entry must have at least one validator pubkey") ErrDuplicateValidatorPubkey = errors.New("validator pubkey appears in multiple mux entries") )
View Source
var ( // Version is set at build time (must be a var, not a const!) Version = "dev" // RFC3339Milli is a time format string based on time.RFC3339 but with millisecond precision RFC3339Milli = "2006-01-02T15:04:05.999Z07:00" // ServerReadTimeoutMs sets the maximum duration for reading the entire request, including the body. A zero or negative value means there will be no timeout. ServerReadTimeoutMs = common.GetEnvInt("MEV_BOOST_SERVER_READ_TIMEOUT_MS", 1000) // ServerReadHeaderTimeoutMs sets the amount of time allowed to read request headers. ServerReadHeaderTimeoutMs = common.GetEnvInt("MEV_BOOST_SERVER_READ_HEADER_TIMEOUT_MS", 1000) // ServerWriteTimeoutMs sets the maximum duration before timing out writes of the response. ServerWriteTimeoutMs = common.GetEnvInt("MEV_BOOST_SERVER_WRITE_TIMEOUT_MS", 0) // ServerIdleTimeoutMs sets the maximum amount of time to wait for the next request when keep-alives are enabled. ServerIdleTimeoutMs = common.GetEnvInt("MEV_BOOST_SERVER_IDLE_TIMEOUT_MS", 0) // ServerMaxHeaderBytes defines the max header byte size for requests (for dos prevention) ServerMaxHeaderBytes = common.GetEnvInt("MAX_HEADER_BYTES", 4000) // SkipRelaySignatureCheck can be used to disable relay signature check SkipRelaySignatureCheck = os.Getenv("SKIP_RELAY_SIGNATURE_CHECK") == "1" SlotTimeSec = uint64(common.GetEnvInt("SLOT_SEC", common.SlotTimeSecMainnet)) )
Functions ¶
This section is empty.
Types ¶
type MuxEntryInput ¶ added in v1.12.0
type MuxMap ¶ added in v1.12.0
type MuxMap map[string]*RuntimeMuxConfig
MuxMap maps validator pubkeys to their RuntimeMuxConfig
func ValidateMuxEntries ¶ added in v1.12.0
func ValidateMuxEntries(entries []MuxEntryInput) (MuxMap, error)
ValidateMuxEntries validates a list of mux entry inputs and returns a MuxMap
type RuntimeMuxConfig ¶ added in v1.12.0
type RuntimeMuxConfig struct {
ID string
RelayConfigs []types.RelayConfig
TimeoutGetHeaderMs uint64
LateInSlotTimeMs uint64
}
Click to show internal directories.
Click to hide internal directories.