pull chain call into its own method and fix paych module
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user