mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
Merge abb644ade2 into b69942befe
This commit is contained in:
commit
454f817e2f
1 changed files with 9 additions and 0 deletions
|
|
@ -250,6 +250,15 @@ func CreateConsensusEngine(ctx *node.ServiceContext, chainConfig *params.ChainCo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Exposes internal/ethapi/GetAPIs function so that it can be used
|
||||||
|
// by other application to construct RPC API service by simply
|
||||||
|
// implementing ethapi.Backend (which is subject with change in
|
||||||
|
// backwards incompatible way), rather than instantiating the
|
||||||
|
// entire Ethereum node
|
||||||
|
func GetAPIs(backend ethapi.Backend) []rpc.API {
|
||||||
|
return ethapi.GetAPIs(backend)
|
||||||
|
}
|
||||||
|
|
||||||
// APIs return the collection of RPC services the ethereum package offers.
|
// APIs return the collection of RPC services the ethereum package offers.
|
||||||
// NOTE, some of these services probably need to be moved to somewhere else.
|
// NOTE, some of these services probably need to be moved to somewhere else.
|
||||||
func (s *Ethereum) APIs() []rpc.API {
|
func (s *Ethereum) APIs() []rpc.API {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue