Don't transfer zero FIL during rebalancing fork

This commit is contained in:
Aayush Rajasekaran 2020-10-12 21:50:11 -04:00
parent 9c6ee802cc
commit 2426700821

View File

@ -312,11 +312,13 @@ func UpgradeFaucetBurnRecovery(ctx context.Context, sm *StateManager, cb ExecCal
available = st.GetAvailableBalance(act.Balance)
}
transfers = append(transfers, transfer{
From: addr,
To: builtin.ReserveAddress,
Amt: available,
})
if !available.IsZero() {
transfers = append(transfers, transfer{
From: addr,
To: builtin.ReserveAddress,
Amt: available,
})
}
}
return nil
})