This commit is contained in:
Igor Mandrigin 2020-08-15 22:10:55 +02:00
parent ae784e4b0a
commit 5d591109cd
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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),
},