Skip to content

Commit 29151f8

Browse files
committed
add holesky
1 parent 17086ce commit 29151f8

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

cmd/crawler/crawlercmd.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ var (
5454
&timeoutFlag,
5555
&workersFlag,
5656
utils.GoerliFlag,
57+
utils.HoleskyFlag,
5758
utils.NetworkIdFlag,
5859
utils.SepoliaFlag,
5960
},
@@ -119,6 +120,7 @@ func crawlNodes(ctx *cli.Context) error {
119120
Workers: ctx.Uint64(workersFlag.Name),
120121
Sepolia: ctx.Bool(utils.SepoliaFlag.Name),
121122
Goerli: ctx.Bool(utils.GoerliFlag.Name),
123+
Holesky: ctx.Bool(utils.HoleskyFlag.Name),
122124
NodeDB: nodeDB,
123125
}
124126

flake.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
network = {
189189
type = types.str;
190190
default = "mainnet";
191-
example = "goerli";
191+
example = "holesky";
192192
description = "Name of the network to crawl. Defaults to Mainnet.";
193193
};
194194
};
@@ -209,6 +209,7 @@
209209
"--geoipdb=${cfg.crawler.geoipdb}"
210210
]
211211
++ optional (cfg.crawler.network == "goerli") "--goerli"
212+
++ optional (cfg.crawler.network == "holesky") "--holesky"
212213
++ optional (cfg.crawler.network == "sepolia") "--sepolia";
213214
in
214215
"${pkgs.nodeCrawler}/bin/crawler crawl ${concatStringsSep " " args}";

pkg/crawler/crawl.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ type Crawler struct {
4242
Workers uint64
4343
Sepolia bool
4444
Goerli bool
45+
Holesky bool
4546

4647
NodeDB *enode.DB
4748
}
@@ -358,6 +359,9 @@ func (c Crawler) makeGenesis() *core.Genesis {
358359
if c.Goerli {
359360
return core.DefaultGoerliGenesisBlock()
360361
}
362+
if c.Holesky {
363+
return core.DefaultHoleskyGenesisBlock()
364+
}
361365

362366
return core.DefaultGenesisBlock()
363367
}

0 commit comments

Comments
 (0)