erigon-pulse/cmd/rpcdaemon/service/service.go
Igor Mandrigin db6a0c43ee linter
2020-08-15 22:17:38 +02:00

15 lines
403 B
Go

package service
import (
"github.com/ledgerwatch/turbo-geth/cmd/rpcdaemon/commands"
"github.com/ledgerwatch/turbo-geth/core"
"github.com/ledgerwatch/turbo-geth/ethdb"
"github.com/ledgerwatch/turbo-geth/node"
)
func New(db ethdb.HasKV, ethereum core.Backend, stack *node.Node) {
apis := commands.GetAPI(db.KV(), core.NewEthBackend(ethereum), []string{"eth", "debug"})
stack.RegisterAPIs(apis)
}