-
Notifications
You must be signed in to change notification settings - Fork 135
/
config.go
65 lines (61 loc) · 3.07 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package builder
import "time"
type Config struct {
Enabled bool `toml:",omitempty"`
EnableValidatorChecks bool `toml:",omitempty"`
EnableLocalRelay bool `toml:",omitempty"`
SlotsInEpoch uint64 `toml:",omitempty"`
SecondsInSlot uint64 `toml:",omitempty"`
DisableBundleFetcher bool `toml:",omitempty"`
DryRun bool `toml:",omitempty"`
IgnoreLatePayloadAttributes bool `toml:",omitempty"`
BuilderSecretKey string `toml:",omitempty"`
RelaySecretKey string `toml:",omitempty"`
ListenAddr string `toml:",omitempty"`
GenesisForkVersion string `toml:",omitempty"`
BellatrixForkVersion string `toml:",omitempty"`
GenesisValidatorsRoot string `toml:",omitempty"`
BeaconEndpoints []string `toml:",omitempty"`
RemoteRelayEndpoint string `toml:",omitempty"`
SecondaryRemoteRelayEndpoints []string `toml:",omitempty"`
ValidationBlocklist string `toml:",omitempty"`
ValidationForceLastTxPayment bool `toml:",omitempty"`
BuilderRateLimitDuration string `toml:",omitempty"`
BuilderRateLimitMaxBurst int `toml:",omitempty"`
BuilderRateLimitResubmitInterval string `toml:",omitempty"`
BuilderSubmissionOffset time.Duration `toml:",omitempty"`
DiscardRevertibleTxOnErr bool `toml:",omitempty"`
EnableCancellations bool `toml:",omitempty"`
}
// DefaultConfig is the default config for the builder.
var DefaultConfig = Config{
Enabled: false,
EnableValidatorChecks: false,
EnableLocalRelay: false,
SlotsInEpoch: 32,
SecondsInSlot: 12,
DisableBundleFetcher: false,
DryRun: false,
IgnoreLatePayloadAttributes: false,
BuilderSecretKey: "0x2fc12ae741f29701f8e30f5de6350766c020cb80768a0ff01e6838ffd2431e11",
RelaySecretKey: "0x2fc12ae741f29701f8e30f5de6350766c020cb80768a0ff01e6838ffd2431e11",
ListenAddr: ":28545",
GenesisForkVersion: "0x00000000",
BellatrixForkVersion: "0x02000000",
GenesisValidatorsRoot: "0x0000000000000000000000000000000000000000000000000000000000000000",
BeaconEndpoints: []string{"http://127.0.0.1:5052"},
RemoteRelayEndpoint: "",
SecondaryRemoteRelayEndpoints: nil,
ValidationBlocklist: "",
ValidationForceLastTxPayment: true,
BuilderRateLimitDuration: RateLimitIntervalDefault.String(),
BuilderRateLimitMaxBurst: RateLimitBurstDefault,
DiscardRevertibleTxOnErr: false,
EnableCancellations: false,
}
// RelayConfig is the config for a single remote relay.
type RelayConfig struct {
Endpoint string
SszEnabled bool
GzipEnabled bool
}