File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 } ;
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 } " ;
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments