This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add builder config toml support (#2)
- Loading branch information
Showing
4 changed files
with
61 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package builder | ||
|
||
type Config struct { | ||
Enabled bool `toml:",omitempty"` | ||
EnableValidatorChecks bool `toml:",omitempty"` | ||
EnableLocalRelay bool `toml:",omitempty"` | ||
DisableBundleFetcher bool `toml:",omitempty"` | ||
DryRun 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"` | ||
BeaconEndpoint string `toml:",omitempty"` | ||
RemoteRelayEndpoint string `toml:",omitempty"` | ||
ValidationBlocklist string `toml:",omitempty"` | ||
} | ||
|
||
// DefaultConfig is the default config for the builder. | ||
var DefaultConfig = Config{ | ||
Enabled: false, | ||
EnableValidatorChecks: false, | ||
EnableLocalRelay: false, | ||
DisableBundleFetcher: false, | ||
DryRun: false, | ||
BuilderSecretKey: "0x2fc12ae741f29701f8e30f5de6350766c020cb80768a0ff01e6838ffd2431e11", | ||
RelaySecretKey: "0x2fc12ae741f29701f8e30f5de6350766c020cb80768a0ff01e6838ffd2431e11", | ||
ListenAddr: ":28545", | ||
GenesisForkVersion: "0x00000000", | ||
BellatrixForkVersion: "0x02000000", | ||
GenesisValidatorsRoot: "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
BeaconEndpoint: "http://127.0.0.1:5052", | ||
RemoteRelayEndpoint: "", | ||
ValidationBlocklist: "", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters