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 54
54
& timeoutFlag ,
55
55
& workersFlag ,
56
56
utils .GoerliFlag ,
57
+ utils .HoleskyFlag ,
57
58
utils .NetworkIdFlag ,
58
59
utils .SepoliaFlag ,
59
60
},
@@ -119,6 +120,7 @@ func crawlNodes(ctx *cli.Context) error {
119
120
Workers : ctx .Uint64 (workersFlag .Name ),
120
121
Sepolia : ctx .Bool (utils .SepoliaFlag .Name ),
121
122
Goerli : ctx .Bool (utils .GoerliFlag .Name ),
123
+ Holesky : ctx .Bool (utils .HoleskyFlag .Name ),
122
124
NodeDB : nodeDB ,
123
125
}
124
126
Original file line number Diff line number Diff line change 188
188
network = {
189
189
type = types . str ;
190
190
default = "mainnet" ;
191
- example = "goerli " ;
191
+ example = "holesky " ;
192
192
description = "Name of the network to crawl. Defaults to Mainnet." ;
193
193
} ;
194
194
} ;
209
209
"--geoipdb=${ cfg . crawler . geoipdb } "
210
210
]
211
211
++ optional ( cfg . crawler . network == "goerli" ) "--goerli"
212
+ ++ optional ( cfg . crawler . network == "holesky" ) "--holesky"
212
213
++ optional ( cfg . crawler . network == "sepolia" ) "--sepolia" ;
213
214
in
214
215
"${ pkgs . nodeCrawler } /bin/crawler crawl ${ concatStringsSep " " args } " ;
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ type Crawler struct {
42
42
Workers uint64
43
43
Sepolia bool
44
44
Goerli bool
45
+ Holesky bool
45
46
46
47
NodeDB * enode.DB
47
48
}
@@ -358,6 +359,9 @@ func (c Crawler) makeGenesis() *core.Genesis {
358
359
if c .Goerli {
359
360
return core .DefaultGoerliGenesisBlock ()
360
361
}
362
+ if c .Holesky {
363
+ return core .DefaultHoleskyGenesisBlock ()
364
+ }
361
365
362
366
return core .DefaultGenesisBlock ()
363
367
}
You can’t perform that action at this time.
0 commit comments