Commit 787fa23 1 parent 8003997 commit 787fa23 Copy full SHA for 787fa23
File tree 4 files changed +20
-5
lines changed
4 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 223
223
[Fevm ]
224
224
# EnableEthRPC enables eth_ RPC methods.
225
225
# Note: Setting this to true will also require that ChainIndexer is enabled, otherwise it will cause an error at startup.
226
+ # Set EnableIndexer in the ChainIndexer section of the config to true to enable the ChainIndexer.
226
227
#
227
228
# type: bool
228
229
# env var: LOTUS_FEVM_ENABLEETHRPC
249
250
# EnableActorEventsAPI enables the Actor events API that enables clients to consume events
250
251
# emitted by (smart contracts + built-in Actors).
251
252
# Note: Setting this to true will also require that ChainIndexer is enabled, otherwise it will cause an error at startup.
253
+ # Set EnableIndexer in the ChainIndexer section of the config to true to enable the ChainIndexer.
252
254
#
253
255
# type: bool
254
256
# env var: LOTUS_EVENTS_ENABLEACTOREVENTSAPI
294
296
#
295
297
# Setting this to true will enable the indexer, which will significantly improve RPC performance.
296
298
# It is strongly recommended to keep this set to true if you are an RPC provider.
299
+ #
300
+ # If EnableEthRPC or EnableActorEventsAPI are set to true, the ChainIndexer must be enabled using
301
+ # this option to avoid errors at startup.
297
302
#
298
303
# type: bool
299
304
# env var: LOTUS_CHAININDEXER_ENABLEINDEXER
Original file line number Diff line number Diff line change @@ -180,10 +180,10 @@ func ConfigFullNode(c interface{}) Option {
180
180
}
181
181
182
182
if cfg .Fevm .EnableEthRPC && ! cfg .ChainIndexer .EnableIndexer {
183
- return Error (xerrors .New ("chain indexer must be enabled if ETH RPC is enabled " ))
183
+ return Error (xerrors .New ("EnableIndexer in the ChainIndexer configuration section must be set to true when setting EnableEthRPC to true " ))
184
184
}
185
185
if cfg .Events .EnableActorEventsAPI && ! cfg .ChainIndexer .EnableIndexer {
186
- return Error (xerrors .New ("chain indexer must be enabled if actor events API is enabled " ))
186
+ return Error (xerrors .New ("EnableIndexer in the ChainIndexer configuration section must be set to true when setting EnableActorEventsAPI to true " ))
187
187
}
188
188
189
189
return Options (
Original file line number Diff line number Diff line change @@ -540,6 +540,7 @@ type FeeConfig struct {
540
540
type FevmConfig struct {
541
541
// EnableEthRPC enables eth_ RPC methods.
542
542
// Note: Setting this to true will also require that ChainIndexer is enabled, otherwise it will cause an error at startup.
543
+ // Set EnableIndexer in the ChainIndexer section of the config to true to enable the ChainIndexer.
543
544
EnableEthRPC bool
544
545
545
546
// EthTraceFilterMaxResults sets the maximum results returned per request by trace_filter
@@ -557,6 +558,7 @@ type EventsConfig struct {
557
558
// EnableActorEventsAPI enables the Actor events API that enables clients to consume events
558
559
// emitted by (smart contracts + built-in Actors).
559
560
// Note: Setting this to true will also require that ChainIndexer is enabled, otherwise it will cause an error at startup.
561
+ // Set EnableIndexer in the ChainIndexer section of the config to true to enable the ChainIndexer.
560
562
EnableActorEventsAPI bool
561
563
562
564
// FilterTTL specifies the time to live for actor event filters. Filters that haven't been accessed longer than
@@ -587,6 +589,9 @@ type ChainIndexerConfig struct {
587
589
//
588
590
// Setting this to true will enable the indexer, which will significantly improve RPC performance.
589
591
// It is strongly recommended to keep this set to true if you are an RPC provider.
592
+ //
593
+ // If EnableEthRPC or EnableActorEventsAPI are set to true, the ChainIndexer must be enabled using
594
+ // this option to avoid errors at startup.
590
595
EnableIndexer bool
591
596
592
597
// GCRetentionEpochs specifies the number of epochs for which data is retained in the Indexer.
You can’t perform that action at this time.
0 commit comments