From 6dbcd75147037ca79cd6be2a88d110aa57704809 Mon Sep 17 00:00:00 2001 From: Phi Date: Sat, 23 Mar 2024 12:34:49 +0100 Subject: [PATCH] Resolve duplicates Resolve duplicate EventsConfig declarations, duplicate field name Events. --- node/config/def.go | 3 --- node/config/doc_gen.go | 17 ----------------- node/config/types.go | 8 -------- 3 files changed, 28 deletions(-) diff --git a/node/config/def.go b/node/config/def.go index 66fc7564b0e..f725f60d36d 100644 --- a/node/config/def.go +++ b/node/config/def.go @@ -119,9 +119,6 @@ func DefaultFullNode() *FullNode { MaxFilterResults: 10000, MaxFilterHeightRange: 2880, // conservative limit of one day }, - Events: EventsConfig{ - EnableActorEventsAPI: false, - }, } } diff --git a/node/config/doc_gen.go b/node/config/doc_gen.go index 127fb148922..b1b91d9c99c 100644 --- a/node/config/doc_gen.go +++ b/node/config/doc_gen.go @@ -726,17 +726,6 @@ the database must already exist and be writeable. If a relative path is provided relative to the CWD (current working directory).`, }, }, - "EventsConfig": { - { - Name: "EnableActorEventsAPI", - Type: "bool", - - Comment: `EnableActorEventsAPI enables the Actor events API that enables clients to consume events -emitted by (smart contracts + built-in Actors). -This will also enable the RealTimeFilterAPI and HistoricFilterAPI by default, but they can be -disabled by setting their respective Disable* options in Fevm.Events.`, - }, - }, "FaultReporterConfig": { { Name: "EnableConsensusFaultReporter", @@ -833,12 +822,6 @@ Set to 0 to keep all mappings`, Comment: ``, }, - { - Name: "Events", - Type: "EventsConfig", - - Comment: ``, - }, { Name: "Index", Type: "IndexConfig", diff --git a/node/config/types.go b/node/config/types.go index ee1d4776546..3872bffde5d 100644 --- a/node/config/types.go +++ b/node/config/types.go @@ -941,14 +941,6 @@ type EventsConfig struct { // Set upper bound on index size } -type EventsConfig struct { - // EnableActorEventsAPI enables the Actor events API that enables clients to consume events - // emitted by (smart contracts + built-in Actors). - // This will also enable the RealTimeFilterAPI and HistoricFilterAPI by default, but they can be - // disabled by setting their respective Disable* options in Fevm.Events. - EnableActorEventsAPI bool -} - type IndexConfig struct { // EXPERIMENTAL FEATURE. USE WITH CAUTION // EnableMsgIndex enables indexing of messages on chain.