more misc fixes

This commit is contained in:
whyrusleeping
2020-03-01 17:09:38 -08:00
parent 4521ff3e95
commit 60b19c51ef
9 changed files with 67 additions and 17 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ func (a *StateAPI) StateMinerPower(ctx context.Context, maddr address.Address, t
if err != nil {
return api.MinerPower{}, err
}
if slashed != 0 {
if slashed {
mpow = types.NewInt(0)
}
}