Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
d2027acc
Unverified
Commit
d2027acc
authored
Sep 02, 2022
by
Jakub Freebit
Committed by
GitHub
Sep 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mobile: register filter APIs (#25642)
This fixes a regression introduced in PR #25459.
parent
511bf8f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
geth.go
mobile/geth.go
+10
-0
No files found.
mobile/geth.go
View file @
d2027acc
...
...
@@ -27,6 +27,7 @@ import (
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/eth/downloader"
"github.com/ethereum/go-ethereum/eth/ethconfig"
"github.com/ethereum/go-ethereum/eth/filters"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethereum/go-ethereum/ethstats"
"github.com/ethereum/go-ethereum/internal/debug"
...
...
@@ -35,6 +36,7 @@ import (
"github.com/ethereum/go-ethereum/p2p"
"github.com/ethereum/go-ethereum/p2p/nat"
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/rpc"
)
// NodeConfig represents the collection of configuration values to fine tune the Geth
...
...
@@ -200,6 +202,14 @@ func NewNode(datadir string, config *NodeConfig) (stack *Node, _ error) {
rawStack
.
Close
()
return
nil
,
fmt
.
Errorf
(
"ethereum init: %v"
,
err
)
}
// Register log filter RPC API.
filterSystem
:=
filters
.
NewFilterSystem
(
lesBackend
.
ApiBackend
,
filters
.
Config
{
LogCacheSize
:
ethConf
.
FilterLogCacheSize
,
})
rawStack
.
RegisterAPIs
([]
rpc
.
API
{{
Namespace
:
"eth"
,
Service
:
filters
.
NewFilterAPI
(
filterSystem
,
true
),
}})
// If netstats reporting is requested, do it
if
config
.
EthereumNetStats
!=
""
{
if
err
:=
ethstats
.
New
(
rawStack
,
lesBackend
.
ApiBackend
,
lesBackend
.
Engine
(),
config
.
EthereumNetStats
);
err
!=
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment