cmd/utils: use defined filter api instance instead of a new one (#1270)

This commit is contained in:
Manav Darji 2024-06-20 17:19:12 +05:30 committed by GitHub
parent c551b4198e
commit 0bc2dcbd71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2019,7 +2019,7 @@ func RegisterFilterAPI(stack *node.Node, backend ethapi.Backend, ethcfg *ethconf
filterAPI := filters.NewFilterAPI(filterSystem, false, ethcfg.BorLogs)
stack.RegisterAPIs([]rpc.API{{
Namespace: "eth",
Service: filters.NewFilterAPI(filterSystem, false, false),
Service: filterAPI,
}})
// avoiding constructor changed by introducing new method to set genesis