diff --git a/eth/backend.go b/eth/backend.go index 85095618222..cfbef360d02 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -386,7 +386,7 @@ func makeExtraData(extra []byte) []byte { // APIs return the collection of RPC services the ethereum package offers. // NOTE, some of these services probably need to be moved to somewhere else. func (s *Ethereum) APIs() []rpc.API { - apis := ethapi.GetAPIs(s.APIBackend) + apis := ethapi.APIs(s.APIBackend) // Append all the local APIs and return return append(apis, []rpc.API{ diff --git a/internal/ethapi/backend.go b/internal/ethapi/backend.go index af3d592b82b..4a3d01171e9 100644 --- a/internal/ethapi/backend.go +++ b/internal/ethapi/backend.go @@ -103,7 +103,7 @@ type Backend interface { NewMatcherBackend() filtermaps.MatcherBackend } -func GetAPIs(apiBackend Backend) []rpc.API { +func APIs(apiBackend Backend) []rpc.API { nonceLock := new(AddrLocker) return []rpc.API{ {