Skip to content

Commit

Permalink
lite node: Use full.EthEventAPI provided by gateway in lite mode
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Jan 11, 2023
1 parent 0771a3f commit 2ec03a7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions node/builder_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ var ChainNode = Options(
Override(new(full.MpoolModuleAPI), From(new(api.Gateway))),
Override(new(full.StateModuleAPI), From(new(api.Gateway))),
Override(new(stmgr.StateManagerAPI), rpcstmgr.NewRPCStateManager),
Override(new(full.EthModuleAPI), new(api.Gateway)),
Override(new(full.EthModuleAPI), From(new(api.Gateway))),
Override(new(full.EthEventAPI), From(new(api.Gateway))),
),

// Full node API / service startup
Expand Down Expand Up @@ -258,7 +259,9 @@ func ConfigFullNode(c interface{}) Option {

// Actor event filtering support
Override(new(events.EventAPI), From(new(modules.EventAPI))),
Override(new(full.EthEventAPI), modules.EthEventAPI(cfg.ActorEvent)),

// in lite-mode Eth event api is provided by gateway
ApplyIf(isFullNode, Override(new(full.EthEventAPI), modules.EthEventAPI(cfg.ActorEvent))),
)
}

Expand Down

0 comments on commit 2ec03a7

Please sign in to comment.