Merge pull request #380 from filecoin-project/fix/storage-miner-init-fail
check return code of create storage miner call
This commit is contained in:
commit
c00d25dd37
@ -309,6 +309,10 @@ func createStorageMiner(ctx context.Context, api api.FullNode, peerid peer.ID, c
|
||||
return address.Undef, err
|
||||
}
|
||||
|
||||
if mw.Receipt.ExitCode != 0 {
|
||||
return address.Undef, xerrors.Errorf("create storage miner failed: exit code %d", mw.Receipt.ExitCode)
|
||||
}
|
||||
|
||||
addr, err = address.NewFromBytes(mw.Receipt.Return)
|
||||
if err != nil {
|
||||
return address.Undef, err
|
||||
|
Loading…
Reference in New Issue
Block a user