@@ -149,18 +149,6 @@ var (
149
149
Dispatcher : Dispatcher {
150
150
EventChanSize : 10000 ,
151
151
},
152
- Explorer : Explorer {
153
- Enabled : false ,
154
- UseIndexer : false ,
155
- Port : 14004 ,
156
- TpsWindow : 10 ,
157
- GasStation : GasStation {
158
- SuggestBlockWindow : 20 ,
159
- DefaultGas : 1 ,
160
- Percentile : 60 ,
161
- },
162
- MaxTransferPayloadBytes : 1024 ,
163
- },
164
152
API : API {
165
153
UseRDS : false ,
166
154
Port : 14014 ,
@@ -204,7 +192,6 @@ var (
204
192
Validates = []Validate {
205
193
ValidateRollDPoS ,
206
194
ValidateDispatcher ,
207
- ValidateExplorer ,
208
195
ValidateAPI ,
209
196
ValidateActPool ,
210
197
}
@@ -282,18 +269,6 @@ type (
282
269
EventChanSize uint `yaml:"eventChanSize"`
283
270
}
284
271
285
- // Explorer is the explorer service config
286
- Explorer struct {
287
- Enabled bool `yaml:"enabled"`
288
- IsTest bool `yaml:"isTest"`
289
- UseIndexer bool `yaml:"useIndexer"`
290
- Port int `yaml:"port"`
291
- TpsWindow int `yaml:"tpsWindow"`
292
- GasStation GasStation `yaml:"gasStation"`
293
- // MaxTransferPayloadBytes limits how many bytes a playload can contain at most
294
- MaxTransferPayloadBytes uint64 `yaml:"maxTransferPayloadBytes"`
295
- }
296
-
297
272
// API is the api service config
298
273
API struct {
299
274
UseRDS bool `yaml:"useRDS"`
@@ -395,7 +370,6 @@ type (
395
370
Consensus Consensus `yaml:"consensus"`
396
371
BlockSync BlockSync `yaml:"blockSync"`
397
372
Dispatcher Dispatcher `yaml:"dispatcher"`
398
- Explorer Explorer `yaml:"explorer"`
399
373
API API `yaml:"api"`
400
374
Indexer Indexer `yaml:"indexer"`
401
375
System System `yaml:"system"`
@@ -548,14 +522,6 @@ func ValidateRollDPoS(cfg Config) error {
548
522
return nil
549
523
}
550
524
551
- // ValidateExplorer validates the explorer configs
552
- func ValidateExplorer (cfg Config ) error {
553
- if cfg .Explorer .Enabled && cfg .Explorer .TpsWindow <= 0 {
554
- return errors .Wrap (ErrInvalidCfg , "tps window is not a positive integer when the explorer is enabled" )
555
- }
556
- return nil
557
- }
558
-
559
525
// ValidateAPI validates the api configs
560
526
func ValidateAPI (cfg Config ) error {
561
527
if cfg .API .TpsWindow <= 0 {
0 commit comments