Skip to content

Commit

Permalink
mobile: register filter APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-freebit committed Aug 31, 2022
1 parent d10c280 commit eb04869
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mobile/geth.go
Expand Up @@ -24,6 +24,7 @@ import (
"fmt"
"path/filepath"

"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/eth/downloader"
"github.com/ethereum/go-ethereum/eth/ethconfig"
Expand Down Expand Up @@ -198,6 +199,8 @@ func NewNode(datadir string, config *NodeConfig) (stack *Node, _ error) {
if err != nil {
return nil, fmt.Errorf("ethereum init: %v", err)
}
// Configure log filter RPC API.
utils.RegisterFilterAPI(rawStack, lesBackend.ApiBackend, &ethConf)
// If netstats reporting is requested, do it
if config.EthereumNetStats != "" {
if err := ethstats.New(rawStack, lesBackend.ApiBackend, lesBackend.Engine(), config.EthereumNetStats); err != nil {
Expand Down

0 comments on commit eb04869

Please sign in to comment.