erigon-pulse/cmd/rpcdaemon/service/service.go

16 lines
480 B
Go
Raw Normal View History

package service
import (
"github.com/ledgerwatch/turbo-geth/cmd/rpcdaemon/cli"
"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"
)
2020-08-15 20:17:38 +00:00
func New(db ethdb.HasKV, ethereum core.Backend, stack *node.Node) {
apis := commands.APIList(db.KV(), core.NewEthBackend(ethereum), cli.Flags{API: []string{"eth", "debug"}}, nil)
2020-08-15 17:32:05 +00:00
stack.RegisterAPIs(apis)
}