diff --git a/cmd/lotus-miner/info.go b/cmd/lotus-miner/info.go index 2c3e29b29..398d030a5 100644 --- a/cmd/lotus-miner/info.go +++ b/cmd/lotus-miner/info.go @@ -292,7 +292,10 @@ func handleMiningInfo(ctx context.Context, cctx *cli.Context, fullapi v0api.Full if err != nil { return xerrors.Errorf("getting available balance: %w", err) } - spendable = big.Add(spendable, availBalance) + + if availBalance.GreaterThan(big.Zero()) { + spendable = big.Add(spendable, availBalance) + } fmt.Printf("Miner Balance: %s\n", color.YellowString("%s", types.FIL(mact.Balance).Short())) fmt.Printf(" PreCommit: %s\n", types.FIL(lockedFunds.PreCommitDeposits).Short())