pull more things apart

This commit is contained in:
whyrusleeping authored and Łukasz Magiera committed 2019-07-26 13:49:30 +02:00
1 parent 6ca033f313
commit 78da356752
22 files changed
+415 -382

No files matched your search

+3 -2
View File
@@ -12,6 +12,7 @@ import (
"github.com/libp2p/go-libp2p-core/peer"
"github.com/filecoin-project/go-lotus/chain"
"github.com/filecoin-project/go-lotus/chain/store"
"github.com/filecoin-project/go-lotus/lib/cborrpc"
)
@@ -32,11 +33,11 @@ type Message struct {
type Service struct {
newStream chain.NewStreamFunc
cs *chain.ChainStore
cs *store.ChainStore
syncer *chain.Syncer
}
func NewHelloService(h host.Host, cs *chain.ChainStore, syncer *chain.Syncer) *Service {
func NewHelloService(h host.Host, cs *store.ChainStore, syncer *chain.Syncer) *Service {
return &Service{
newStream: h.NewStream,