pull chain call into its own method and fix paych module

This commit is contained in:
whyrusleeping
2019-08-12 11:30:20 -07:00
parent 6d52abcb2e
commit ae34757e2a
6 changed files with 61 additions and 50 deletions
+1 -4
View File
@@ -1,7 +1,6 @@
package modules
import (
"github.com/filecoin-project/go-lotus/api"
"github.com/filecoin-project/go-lotus/chain/store"
"github.com/filecoin-project/go-lotus/node/modules/dtypes"
"github.com/filecoin-project/go-lotus/paych"
@@ -12,7 +11,5 @@ func PaychStore(ds dtypes.MetadataDS) *paych.Store {
}
func PaymentChannelManager(chain *store.ChainStore, store *paych.Store) (*paych.Manager, error) {
var api api.FullNode
panic("i need a full node api. what do i do")
return paych.NewManager(api, chain, store), nil
return paych.NewManager(chain, store), nil
}