Skip to content

Commit

Permalink
Always store events in the blockstore, making this conditional is poi…
Browse files Browse the repository at this point in the history
…ntless
  • Loading branch information
ribasushi committed Jul 17, 2024
1 parent 3571286 commit 6eaab76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion node/builder_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down

0 comments on commit 6eaab76

Please sign in to comment.