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) available = st.GetAvailableBalance(act.Balance)
} }
transfers = append(transfers, transfer{ if !available.IsZero() {
From: addr, transfers = append(transfers, transfer{
To: builtin.ReserveAddress, From: addr,
Amt: available, To: builtin.ReserveAddress,
}) Amt: available,
})
}
} }
return nil return nil
}) })