This commit is contained in:
Łukasz Magiera 2019-07-23 22:27:05 +02:00
parent 0aadddb6c8
commit 5be0ecadd1

View File

@ -3,8 +3,6 @@ package node
import ( import (
"context" "context"
"crypto/rand" "crypto/rand"
"github.com/filecoin-project/go-lotus/node/modules"
"github.com/filecoin-project/go-lotus/node/repo"
"io" "io"
"io/ioutil" "io/ioutil"
@ -15,6 +13,9 @@ import (
"github.com/filecoin-project/go-lotus/chain/types" "github.com/filecoin-project/go-lotus/chain/types"
"github.com/filecoin-project/go-lotus/miner" "github.com/filecoin-project/go-lotus/miner"
"github.com/filecoin-project/go-lotus/node/client" "github.com/filecoin-project/go-lotus/node/client"
"github.com/filecoin-project/go-lotus/node/modules"
"github.com/filecoin-project/go-lotus/node/repo"
"github.com/gbrlsnchs/jwt/v3" "github.com/gbrlsnchs/jwt/v3"
"github.com/ipfs/go-cid" "github.com/ipfs/go-cid"
logging "github.com/ipfs/go-log" logging "github.com/ipfs/go-log"
@ -30,14 +31,14 @@ var log = logging.Logger("node")
type API struct { type API struct {
client.LocalStorage client.LocalStorage
Host host.Host Host host.Host
Chain *chain.ChainStore Chain *chain.ChainStore
PubSub *pubsub.PubSub PubSub *pubsub.PubSub
Mpool *chain.MessagePool Mpool *chain.MessagePool
Wallet *chain.Wallet Wallet *chain.Wallet
Keystore types.KeyStore Keystore types.KeyStore
APISecret *modules.APIAlg APISecret *modules.APIAlg
Repo repo.LockedRepo Repo repo.LockedRepo
} }
type jwtPayload struct { type jwtPayload struct {