2020-07-25 17:18:18 +00:00
|
|
|
package service
|
|
|
|
|
|
|
|
import (
|
2020-08-19 11:46:20 +00:00
|
|
|
"github.com/ledgerwatch/turbo-geth/cmd/rpcdaemon/cli"
|
2020-07-25 17:18:18 +00:00
|
|
|
"github.com/ledgerwatch/turbo-geth/cmd/rpcdaemon/commands"
|
2020-08-11 21:09:30 +00:00
|
|
|
"github.com/ledgerwatch/turbo-geth/core"
|
2020-07-25 17:18:18 +00:00
|
|
|
"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) {
|
2020-08-19 11:46:20 +00:00
|
|
|
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)
|
2020-07-25 17:18:18 +00:00
|
|
|
}
|