mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-07 11:32:20 +00:00
15 lines
403 B
Go
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)
|
|
}
|