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
0c6f81f8
Unverified
Commit
0c6f81f8
authored
Jun 15, 2022
by
lightclient@protonmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all: remove version field from rpc.API
parent
119f9556
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
2 additions
and
38 deletions
+2
-38
main.go
cmd/clef/main.go
+1
-1
clique.go
consensus/clique/clique.go
+0
-1
ethash.go
consensus/ethash/ethash.go
+0
-2
backend.go
eth/backend.go
+0
-7
api.go
eth/catalyst/api.go
+0
-1
api.go
eth/tracers/api.go
+0
-1
backend.go
internal/ethapi/backend.go
+0
-7
api.go
les/catalyst/api.go
+0
-1
client.go
les/client.go
+0
-6
server.go
les/server.go
+0
-3
api.go
node/api.go
+0
-3
utils_test.go
node/utils_test.go
+0
-3
exec.go
p2p/simulations/adapters/exec.go
+0
-1
types.go
rpc/types.go
+1
-1
No files found.
cmd/clef/main.go
View file @
0c6f81f8
...
...
@@ -648,7 +648,7 @@ func signer(c *cli.Context) error {
{
Namespace
:
"account"
,
Service
:
api
,
Version
:
"1.0"
},
},
}
if
c
.
GlobalBool
(
utils
.
HTTPEnabledFlag
.
Name
)
{
vhosts
:=
utils
.
SplitAndTrim
(
c
.
GlobalString
(
utils
.
HTTPVirtualHostsFlag
.
Name
))
...
...
consensus/clique/clique.go
View file @
0c6f81f8
...
...
@@ -697,7 +697,6 @@ func (c *Clique) Close() error {
func
(
c
*
Clique
)
APIs
(
chain
consensus
.
ChainHeaderReader
)
[]
rpc
.
API
{
return
[]
rpc
.
API
{{
Namespace
:
"clique"
,
Version
:
"1.0"
,
Service
:
&
API
{
chain
:
chain
,
clique
:
c
},
}}
}
...
...
consensus/ethash/ethash.go
View file @
0c6f81f8
...
...
@@ -678,12 +678,10 @@ func (ethash *Ethash) APIs(chain consensus.ChainHeaderReader) []rpc.API {
return
[]
rpc
.
API
{
{
Namespace
:
"eth"
,
Version
:
"1.0"
,
Service
:
&
API
{
ethash
},
},
{
Namespace
:
"ethash"
,
Version
:
"1.0"
,
Service
:
&
API
{
ethash
},
},
}
...
...
eth/backend.go
View file @
0c6f81f8
...
...
@@ -308,31 +308,24 @@ func (s *Ethereum) APIs() []rpc.API {
return
append
(
apis
,
[]
rpc
.
API
{
{
Namespace
:
"eth"
,
Version
:
"1.0"
,
Service
:
NewEthereumAPI
(
s
),
},
{
Namespace
:
"miner"
,
Version
:
"1.0"
,
Service
:
NewMinerAPI
(
s
),
},
{
Namespace
:
"eth"
,
Version
:
"1.0"
,
Service
:
downloader
.
NewDownloaderAPI
(
s
.
handler
.
downloader
,
s
.
eventMux
),
},
{
Namespace
:
"eth"
,
Version
:
"1.0"
,
Service
:
filters
.
NewFilterAPI
(
s
.
APIBackend
,
false
,
5
*
time
.
Minute
),
},
{
Namespace
:
"admin"
,
Version
:
"1.0"
,
Service
:
NewAdminAPI
(
s
),
},
{
Namespace
:
"debug"
,
Version
:
"1.0"
,
Service
:
NewDebugAPI
(
s
),
},
{
Namespace
:
"net"
,
Version
:
"1.0"
,
Service
:
s
.
netRPCService
,
},
}
...
)
...
...
eth/catalyst/api.go
View file @
0c6f81f8
...
...
@@ -42,7 +42,6 @@ func Register(stack *node.Node, backend *eth.Ethereum) error {
stack
.
RegisterAPIs
([]
rpc
.
API
{
{
Namespace
:
"engine"
,
Version
:
"1.0"
,
Service
:
NewConsensusAPI
(
backend
),
Authenticated
:
true
,
},
...
...
eth/tracers/api.go
View file @
0c6f81f8
...
...
@@ -918,7 +918,6 @@ func APIs(backend Backend) []rpc.API {
return
[]
rpc
.
API
{
{
Namespace
:
"debug"
,
Version
:
"1.0"
,
Service
:
NewAPI
(
backend
),
},
}
...
...
internal/ethapi/backend.go
View file @
0c6f81f8
...
...
@@ -101,31 +101,24 @@ func GetAPIs(apiBackend Backend) []rpc.API {
return
[]
rpc
.
API
{
{
Namespace
:
"eth"
,
Version
:
"1.0"
,
Service
:
NewEthereumAPI
(
apiBackend
),
},
{
Namespace
:
"eth"
,
Version
:
"1.0"
,
Service
:
NewBlockChainAPI
(
apiBackend
),
},
{
Namespace
:
"eth"
,
Version
:
"1.0"
,
Service
:
NewTransactionAPI
(
apiBackend
,
nonceLock
),
},
{
Namespace
:
"txpool"
,
Version
:
"1.0"
,
Service
:
NewTxPoolAPI
(
apiBackend
),
},
{
Namespace
:
"debug"
,
Version
:
"1.0"
,
Service
:
NewDebugAPI
(
apiBackend
),
},
{
Namespace
:
"eth"
,
Version
:
"1.0"
,
Service
:
NewEthereumAccountAPI
(
apiBackend
.
AccountManager
()),
},
{
Namespace
:
"personal"
,
Version
:
"1.0"
,
Service
:
NewPersonalAccountAPI
(
apiBackend
,
nonceLock
),
},
}
...
...
les/catalyst/api.go
View file @
0c6f81f8
...
...
@@ -35,7 +35,6 @@ func Register(stack *node.Node, backend *les.LightEthereum) error {
stack
.
RegisterAPIs
([]
rpc
.
API
{
{
Namespace
:
"engine"
,
Version
:
"1.0"
,
Service
:
NewConsensusAPI
(
backend
),
Authenticated
:
true
,
},
...
...
les/client.go
View file @
0c6f81f8
...
...
@@ -294,27 +294,21 @@ func (s *LightEthereum) APIs() []rpc.API {
return
append
(
apis
,
[]
rpc
.
API
{
{
Namespace
:
"eth"
,
Version
:
"1.0"
,
Service
:
&
LightDummyAPI
{},
},
{
Namespace
:
"eth"
,
Version
:
"1.0"
,
Service
:
downloader
.
NewDownloaderAPI
(
s
.
handler
.
downloader
,
s
.
eventMux
),
},
{
Namespace
:
"eth"
,
Version
:
"1.0"
,
Service
:
filters
.
NewFilterAPI
(
s
.
ApiBackend
,
true
,
5
*
time
.
Minute
),
},
{
Namespace
:
"net"
,
Version
:
"1.0"
,
Service
:
s
.
netRPCService
,
},
{
Namespace
:
"les"
,
Version
:
"1.0"
,
Service
:
NewLightAPI
(
&
s
.
lesCommons
),
},
{
Namespace
:
"vflux"
,
Version
:
"1.0"
,
Service
:
s
.
serverPool
.
API
(),
},
}
...
)
...
...
les/server.go
View file @
0c6f81f8
...
...
@@ -159,17 +159,14 @@ func (s *LesServer) APIs() []rpc.API {
return
[]
rpc
.
API
{
{
Namespace
:
"les"
,
Version
:
"1.0"
,
Service
:
NewLightAPI
(
&
s
.
lesCommons
),
},
{
Namespace
:
"les"
,
Version
:
"1.0"
,
Service
:
NewLightServerAPI
(
s
),
},
{
Namespace
:
"debug"
,
Version
:
"1.0"
,
Service
:
NewDebugAPI
(
s
),
},
}
...
...
node/api.go
View file @
0c6f81f8
...
...
@@ -35,15 +35,12 @@ func (n *Node) apis() []rpc.API {
return
[]
rpc
.
API
{
{
Namespace
:
"admin"
,
Version
:
"1.0"
,
Service
:
&
adminAPI
{
n
},
},
{
Namespace
:
"debug"
,
Version
:
"1.0"
,
Service
:
debug
.
Handler
,
},
{
Namespace
:
"web3"
,
Version
:
"1.0"
,
Service
:
&
web3API
{
n
},
},
}
...
...
node/utils_test.go
View file @
0c6f81f8
...
...
@@ -95,15 +95,12 @@ func (f *FullService) APIs() []rpc.API {
return
[]
rpc
.
API
{
{
Namespace
:
"admin"
,
Version
:
"1.0"
,
},
{
Namespace
:
"debug"
,
Version
:
"1.0"
,
},
{
Namespace
:
"net"
,
Version
:
"1.0"
,
},
}
}
p2p/simulations/adapters/exec.go
View file @
0c6f81f8
...
...
@@ -501,7 +501,6 @@ func startExecNodeStack() (*node.Node, error) {
// Add the snapshot API.
stack
.
RegisterAPIs
([]
rpc
.
API
{{
Namespace
:
"simulation"
,
Version
:
"1.0"
,
Service
:
SnapshotAPI
{
services
},
}})
...
...
rpc/types.go
View file @
0c6f81f8
...
...
@@ -31,7 +31,7 @@ import (
// API describes the set of methods offered over the RPC interface
type
API
struct
{
Namespace
string
// namespace under which the rpc methods of Service are exposed
Version
string
//
api version for DApp's
Version
string
//
deprecated - this field is no longer used, but retained for compatibility
Service
interface
{}
// receiver instance which holds the methods
Public
bool
// deprecated - this field is no longer used, but retained for compatibility
Authenticated
bool
// whether the api should only be available behind authentication.
...
...
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