2019-07-08 13:36:43 +00:00
|
|
|
package testing
|
|
|
|
|
|
|
|
import (
|
2019-07-08 15:14:36 +00:00
|
|
|
blockstore "github.com/ipfs/go-ipfs-blockstore"
|
|
|
|
|
2019-07-08 13:36:43 +00:00
|
|
|
"github.com/filecoin-project/go-lotus/chain"
|
|
|
|
"github.com/filecoin-project/go-lotus/node/modules"
|
|
|
|
)
|
|
|
|
|
|
|
|
func MakeGenesis(bs blockstore.Blockstore, w *chain.Wallet) (modules.Genesis, error) {
|
|
|
|
genb, err := chain.MakeGenesisBlock(bs, w)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return genb.Genesis, nil
|
|
|
|
}
|