TEMP: accept miner address from cli
This commit is contained in:
parent
f7dc253669
commit
b2d425b891
@ -56,6 +56,7 @@ func Call(ctx context.Context, cs *store.ChainStore, msg *types.Message, ts *typ
|
||||
if ts == nil {
|
||||
ts = cs.GetHeaviestTipSet()
|
||||
}
|
||||
|
||||
state, err := cs.TipSetState(ts.Cids())
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
@ -3,6 +3,7 @@ package cli
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/filecoin-project/go-lotus/chain/address"
|
||||
"gopkg.in/urfave/cli.v2"
|
||||
)
|
||||
|
||||
@ -25,8 +26,8 @@ var minerStart = &cli.Command{
|
||||
|
||||
ctx := ReqContext(cctx)
|
||||
|
||||
// TODO: this address needs to be the address of an actual miner
|
||||
maddr, err := api.WalletDefaultAddress(ctx)
|
||||
// TODO: need to pull this from disk or something
|
||||
maddr, err := address.NewFromString(cctx.Args().First())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -2,6 +2,7 @@ package testing
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
|
||||
@ -80,6 +81,8 @@ func MakeGenesis(outFile string) func(bs dtypes.ChainBlockstore, w *wallet.Walle
|
||||
return nil, err
|
||||
}
|
||||
|
||||
fmt.Println("GENESIS MINER ADDRESS: ", gmc.MinerAddr.String())
|
||||
|
||||
f, err := os.OpenFile(outFile, os.O_CREATE|os.O_WRONLY, 0644)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
Reference in New Issue
Block a user