@@ -22,7 +22,8 @@ public enum NetworkName {
22
22
ROPSTEN ("/ropsten.json" , BigInteger .valueOf (3 )),
23
23
SEPOLIA ("/sepolia.json" , BigInteger .valueOf (11155111 )),
24
24
GOERLI ("/goerli.json" , BigInteger .valueOf (5 )),
25
- DEV ("/dev.json" , BigInteger .valueOf (2018 )),
25
+ KILN ("/kiln.json" , BigInteger .valueOf (1337802 ), false ),
26
+ DEV ("/dev.json" , BigInteger .valueOf (2018 ), false ),
26
27
CLASSIC ("/classic.json" , BigInteger .valueOf (1 )),
27
28
KOTTI ("/kotti.json" , BigInteger .valueOf (6 )),
28
29
MORDOR ("/mordor.json" , BigInteger .valueOf (7 )),
@@ -31,10 +32,18 @@ public enum NetworkName {
31
32
32
33
private final String genesisFile ;
33
34
private final BigInteger networkId ;
35
+ private final boolean canFastSync ;
34
36
35
37
NetworkName (final String genesisFile , final BigInteger networkId ) {
36
38
this .genesisFile = genesisFile ;
37
39
this .networkId = networkId ;
40
+ this .canFastSync = true ;
41
+ }
42
+
43
+ NetworkName (final String genesisFile , final BigInteger networkId , final boolean canFastSync ) {
44
+ this .genesisFile = genesisFile ;
45
+ this .networkId = networkId ;
46
+ this .canFastSync = canFastSync ;
38
47
}
39
48
40
49
public String getGenesisFile () {
@@ -44,4 +53,8 @@ public String getGenesisFile() {
44
53
public BigInteger getNetworkId () {
45
54
return networkId ;
46
55
}
56
+
57
+ public boolean canFastSync () {
58
+ return canFastSync ;
59
+ }
47
60
}
0 commit comments