diff --git a/cmd/rpcdaemon/service/service.go b/cmd/rpcdaemon/service/service.go index 5639b8370..599e946c9 100644 --- a/cmd/rpcdaemon/service/service.go +++ b/cmd/rpcdaemon/service/service.go @@ -8,7 +8,7 @@ import ( "github.com/ledgerwatch/turbo-geth/node" ) -func New(db *ethdb.ObjectDatabase, ethereum *eth.Ethereum, stack *node.Node) { +func New(db ethdb.HasKV, ethereum *eth.Ethereum, stack *node.Node) { apis := commands.GetAPI(db.KV(), core.NewEthBackend(ethereum), []string{"eth", "debug"}) stack.RegisterAPIs(apis) diff --git a/node/utils_test.go b/node/utils_test.go index eea729531..164647a5c 100644 --- a/node/utils_test.go +++ b/node/utils_test.go @@ -82,11 +82,11 @@ func (f *FullService) Stop() error { return nil } func (f *FullService) Protocols() []p2p.Protocol { return []p2p.Protocol{ - p2p.Protocol{ + { Name: "test1", Version: uint(1), }, - p2p.Protocol{ + { Name: "test2", Version: uint(2), },