display a little inline warning if balance is zero

This commit is contained in:
laser 2020-06-08 12:20:44 -07:00
parent df867f3349
commit 751bc45bef

View File

@ -113,7 +113,12 @@ var walletBalance = &cli.Command{
return err
}
fmt.Printf("%s\n", types.FIL(balance))
if balance.Equals(types.NewInt(0)) {
fmt.Printf("%s (warning: may display 0 if chain sync in progress)\n", types.FIL(balance))
} else {
fmt.Printf("%s\n", types.FIL(balance))
}
return nil
},
}