This repository was archived by the owner on Dec 10, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +8
-11
lines changed Expand file tree Collapse file tree 4 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,9 @@ export interface Options {
7
7
* If not provided this defaults to chain `mainnet` and hardfork `chainstart`
8
8
*/
9
9
common ?: Common
10
- }
10
+ }
11
11
12
- export class Config {
13
-
12
+ export class Config {
14
13
public common ! : Common
15
14
16
15
static instance : Config
@@ -29,7 +28,4 @@ export class Config {
29
28
30
29
Config . instance = this
31
30
}
32
-
33
-
34
-
35
- }
31
+ }
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const defaultOptions = {
17
17
*/
18
18
export default class Node extends events . EventEmitter {
19
19
public config : Config
20
-
20
+
21
21
public logger : any
22
22
public servers : any
23
23
public syncmode : any
@@ -44,7 +44,7 @@ export default class Node extends events.EventEmitter {
44
44
constructor ( options : any ) {
45
45
super ( )
46
46
options = { ...defaultOptions , ...options }
47
- this . config = options . config || new Config ( )
47
+ this . config = options . config || new Config ( )
48
48
this . logger = options . logger
49
49
this . servers = options . servers
50
50
this . syncmode = options . syncmode
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const defaultOptions = {
16
16
*/
17
17
export class EthereumService extends Service {
18
18
public config : Config
19
-
19
+
20
20
public flow : FlowControl
21
21
public chain : Chain
22
22
public minPeers : number
@@ -41,7 +41,7 @@ export class EthereumService extends Service {
41
41
options = { ...defaultOptions , ...options }
42
42
super ( options )
43
43
44
- this . config = options . config || new Config ( )
44
+ this . config = options . config || new Config ( )
45
45
46
46
this . flow = new FlowControl ( options )
47
47
this . chain = options . chain || new Chain ( options )
Original file line number Diff line number Diff line change 93
93
"@types/node" : " ^14.11.5" ,
94
94
"@types/tape" : " ^4.13.0" ,
95
95
"@types/tape-catch" : " ^1.0.0" ,
96
+ "eslint" : " ^6.8.0" ,
96
97
"file-replace-loader" : " ^1.2.0" ,
97
98
"husky" : " ^2.1.0" ,
98
99
"json-to-markdown" : " ^1.0.4" ,
You can’t perform that action at this time.
0 commit comments