swarm/network, swarm/pss: update tests so that they compile

This commit is contained in:
Anton Evangelatov 2018-02-05 09:52:38 +01:00
parent 6098446d55
commit 6bc4a5bf1b
4 changed files with 5 additions and 3 deletions

View file

@ -319,5 +319,5 @@ func newService(ctx *adapters.ServiceContext) (node.Service, error) {
HiveParams: hp, HiveParams: hp,
} }
return network.NewBzz(config, kad, nil, nil), nil return network.NewBzz(config, kad, nil), nil
} }

View file

@ -77,6 +77,8 @@ func (self *testClient) BatchDone(string, uint64, []byte, []byte) func() (*Takeo
return nil return nil
} }
func (self *testClient) Close() {}
func (self *testServer) SetNextBatch(from uint64, to uint64) ([]byte, uint64, uint64, *HandoverProof, error) { func (self *testServer) SetNextBatch(from uint64, to uint64) ([]byte, uint64, uint64, *HandoverProof, error) {
return make([]byte, HashSize), from + 1, to + 1, nil, nil return make([]byte, HashSize), from + 1, to + 1, nil, nil
} }

View file

@ -260,7 +260,7 @@ func newServices() adapters.Services {
UnderlayAddr: addr.Under(), UnderlayAddr: addr.Under(),
HiveParams: hp, HiveParams: hp,
} }
return network.NewBzz(config, kademlia(ctx.Config.ID), stateStore, nil), nil return network.NewBzz(config, kademlia(ctx.Config.ID), stateStore), nil
}, },
} }
} }

View file

@ -1178,7 +1178,7 @@ func newServices() adapters.Services {
UnderlayAddr: addr.Under(), UnderlayAddr: addr.Under(),
HiveParams: hp, HiveParams: hp,
} }
return network.NewBzz(config, kademlia(ctx.Config.ID), stateStore, nil), nil return network.NewBzz(config, kademlia(ctx.Config.ID), stateStore), nil
}, },
} }
} }