From 6eaab76942a596bb62aad36a95c845d3da004e5d Mon Sep 17 00:00:00 2001 From: Peter Rabbitson Date: Sat, 23 Mar 2024 14:53:30 +0100 Subject: [PATCH] Always store events in the blockstore, making this conditional is pointless --- node/builder_chain.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/node/builder_chain.go b/node/builder_chain.go index deda103042d..7180a1f6155 100644 --- a/node/builder_chain.go +++ b/node/builder_chain.go @@ -203,10 +203,14 @@ func ConfigFullNode(c interface{}) Option { Override(SetupFallbackBlockstoresKey, modules.InitFallbackBlockstores), ), + // FORCE always storing events in the blockstore, making this conditional is pointless + // + // (ignore original text below) + // // If the Eth JSON-RPC is enabled, enable storing events at the ChainStore. // This is the case even if real-time and historic filtering are disabled, // as it enables us to serve logs in eth_getTransactionReceipt. - If(cfg.Fevm.EnableEthRPC || cfg.Events.EnableActorEventsAPI, Override(StoreEventsKey, modules.EnableStoringEvents)), + Override(StoreEventsKey, modules.EnableStoringEvents), If(cfg.Wallet.RemoteBackend != "", Override(new(*remotewallet.RemoteWallet), remotewallet.SetupRemoteWallet(cfg.Wallet.RemoteBackend)),