vars

package
v1.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package vars contains global variables and configuration

Index

Constants

This section is empty.

Variables

View Source
var (
	RelayFlashbots  = "" /* 132-byte string literal not displayed */
	RelayUltrasound = "" /* 129-byte string literal not displayed */
	RelayURLs       = []string{
		RelayFlashbots,
		RelayUltrasound,
		"https://0x8b5d2e73e2a3a55c6c87b8b6eb92e0149a125c852751db1422fa951e42a09b82c142c3ea98d0d9930b056a3bc9896b8f@bloxroute.max-profit.blxrbdn.com",
		"https://0xb0b07cd0abef743db4260b0ed50619cf6ad4d82064cb4fbec9d3ec530f7c5e6793d9f286c4e082c0244ffb9f2658fe88@bloxroute.regulated.blxrbdn.com",
		"https://0xb3ee7afcf27f1f1259ac1787876318c6584ee353097a50ed84f51a1f21a323b3736f271a895c7ce918c038e4265918be@relay.edennetwork.io",
		"https://0x98650451ba02064f7b000f5768cf0cf4d4e492317d82871bdc87ef841a0743f69f0f1eea11168503240ac35d101c9135@mainnet-relay.securerpc.com",
		"https://0xa7ab7a996c8584251c8f925da3170bdfd6ebc75d50f5ddc4050a6fdc77f2a3b5fce2cc750d0865e05d7228af97d69561@agnostic-relay.net",
		"https://0xa15b52576bcbf1072f4a011c0f99f9fb6c66f3e1ff321f11f461d15e31b1cb359caa092c71bbded0bae5b5ea401aab7e@aestus.live",
		"https://0x8c7d33605ecef85403f8b7289c8058f440cbb6bf72b055dfe2f3e2c6695b6a1ea5a9cd0eb3a7982927a463feb4c3dae2@relay.wenmerge.com",

		"https://0x8c4ed5e24fe5c6ae21018437bde147693f68cda427cd1122cf20819c30eda7ed74f72dece09bb313f2a1855595ab677d@titanrelay.xyz",
	}
)
View Source
var (
	Version  = "dev" // is set during build process
	LogDebug = os.Getenv("DEBUG") != ""
	LogJSON  = os.Getenv("LOG_JSON") != ""
	Genesis  = 1_606_824_023

	DefaultBeaconURI        = relaycommon.GetEnv("BEACON_URI", "http://localhost:3500")
	DefaultPostgresDSN      = relaycommon.GetEnv("POSTGRES_DSN", "postgres://postgres:postgres@localhost:5432/postgres?sslmode=disable")
	DefaultLogLevel         = relaycommon.GetEnv("LOG_LEVEL", "info")
	DefaultEthNodeURI       = relaycommon.GetEnv("ETH_NODE_URI", "")
	DefaultEthBackupNodeURI = relaycommon.GetEnv("ETH_NODE_BACKUP_URI", "")
)
View Source
var BuilderAliases = map[string]func(string) bool{
	"penguinbuild.org": func(in string) bool {
		return strings.Contains(in, "penguinbuild.org")
	},
	"builder0x69": func(in string) bool {
		return strings.Contains(in, "builder0x69")
	},
	"rsync-builder.xyz": func(in string) bool {
		return strings.Contains(in, "rsync")
	},
	"bob the builder": func(in string) bool {
		match, _ := regexp.MatchString("s[0-9]+e[0-9].*(t|f)", in)
		return match
	},
}

BuilderAliases maps builder name to a function that returns if an input string (extra_data) is an alias

Functions

func BuilderNameFromExtraData

func BuilderNameFromExtraData(extraData string) string

BuilderNameFromExtraData returns the builder name from the extra_data field

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL