Skip to content

Commit 3cdcda6

Browse files
authored
fix mev-boost module option generation and network options (#559)
1 parent 69bd8dc commit 3cdcda6

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

modules/mev-boost/args.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
lib:
22
with lib; {
33
network = mkOption {
4-
type = types.nullOr (types.enum ["mainnet" "goerli" "sepolia" "zhejiang"]);
4+
type = types.nullOr (types.enum ["mainnet" "holesky" "sepolia" "zhejiang"]);
55
default = null;
66
description = "The network to connect to. Mainnet (null) is the default ethereum network.";
77
};

modules/mev-boost/default.nix

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,28 +40,27 @@ in {
4040
# filter out certain args which need to be treated differently
4141
specialArgs = [
4242
"--network"
43-
"-goerli"
44-
"-holesky"
45-
"-mainnet"
46-
"-relay-monitor"
47-
"-relay-monitors"
48-
"-relay"
49-
"-relays"
50-
"-sepolia"
51-
"-zhejiang"
43+
"--holesky"
44+
"--mainnet"
45+
"--relay-monitor"
46+
"--relay-monitors"
47+
"--relay"
48+
"--relays"
49+
"--sepolia"
50+
"--zhejiang"
5251
];
5352
isNormalArg = name: (findFirst (arg: hasPrefix arg name) null specialArgs) == null;
5453
filteredArgs = builtins.filter isNormalArg args;
5554

5655
network =
5756
if cfg.args.network != null
58-
then "-${cfg.args.network}"
57+
then "--${cfg.args.network}"
5958
else "";
6059

61-
relays = "-relays " + (concatStringsSep "," cfg.args.relays);
60+
relays = "--relays " + (concatStringsSep "," cfg.args.relays);
6261
relayMonitors =
6362
if cfg.args.relay-monitors != null
64-
then "-relay-monitors" + (concatStringsSep "," cfg.args.relay-monitors)
63+
then "--relay-monitors" + (concatStringsSep "," cfg.args.relay-monitors)
6564
else "";
6665
in ''
6766
${network} \

modules/mev-boost/default.test.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
enable = true;
1414
args = {
1515
addr = "localhost:18550";
16-
network = "goerli";
17-
relays = ["https://0x8f7b17a74569b7a57e9bdafd2e159380759f5dc3ccbd4bf600414147e8c4e1dc6ebada83c0139ac15850eb6c975e82d0@builder-relay-goerli.blocknative.com"];
16+
network = "holesky";
17+
relays = [
18+
"https://0xafa4c6985aa049fb79dd37010438cfebeb0f2bd42b115b89dd678dab0670c1de38da0c4e9138c9290a398ecd9a0b3110@boost-relay-holesky.flashbots.net"
19+
];
1820
};
1921
};
2022
};

0 commit comments

Comments
 (0)