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 {
77 * If not provided this defaults to chain `mainnet` and hardfork `chainstart`
88 */
99 common ?: Common
10- }
10+ }
1111
12- export class Config {
13-
12+ export class Config {
1413 public common ! : Common
1514
1615 static instance : Config
@@ -29,7 +28,4 @@ export class Config {
2928
3029 Config . instance = this
3130 }
32-
33-
34-
35- }
31+ }
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const defaultOptions = {
1717 */
1818export default class Node extends events . EventEmitter {
1919 public config : Config
20-
20+
2121 public logger : any
2222 public servers : any
2323 public syncmode : any
@@ -44,7 +44,7 @@ export default class Node extends events.EventEmitter {
4444 constructor ( options : any ) {
4545 super ( )
4646 options = { ...defaultOptions , ...options }
47- this . config = options . config || new Config ( )
47+ this . config = options . config || new Config ( )
4848 this . logger = options . logger
4949 this . servers = options . servers
5050 this . syncmode = options . syncmode
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const defaultOptions = {
1616 */
1717export class EthereumService extends Service {
1818 public config : Config
19-
19+
2020 public flow : FlowControl
2121 public chain : Chain
2222 public minPeers : number
@@ -41,7 +41,7 @@ export class EthereumService extends Service {
4141 options = { ...defaultOptions , ...options }
4242 super ( options )
4343
44- this . config = options . config || new Config ( )
44+ this . config = options . config || new Config ( )
4545
4646 this . flow = new FlowControl ( options )
4747 this . chain = options . chain || new Chain ( options )
Original file line number Diff line number Diff line change 9393 "@types/node" : " ^14.11.5" ,
9494 "@types/tape" : " ^4.13.0" ,
9595 "@types/tape-catch" : " ^1.0.0" ,
96+ "eslint" : " ^6.8.0" ,
9697 "file-replace-loader" : " ^1.2.0" ,
9798 "husky" : " ^2.1.0" ,
9899 "json-to-markdown" : " ^1.0.4" ,
You can’t perform that action at this time.
0 commit comments