Verify transfer now checks for amount + fees. (#457)

This commit is contained in:
John Adler 2019-07-28 22:17:04 -04:00 committed by Paul Hauner
parent 7458022fcf
commit 1b26a36ebc

View File

@ -62,8 +62,8 @@ fn verify_transfer_parametric<T: EthSpec>(
// Verify the sender has adequate balance.
verify!(
time_independent_only || sender_balance >= transfer.amount,
Invalid::FromBalanceInsufficient(transfer.amount, sender_balance)
time_independent_only || sender_balance >= total_amount,
Invalid::FromBalanceInsufficient(total_amount, sender_balance)
);
// Verify sender balance will not be "dust" (i.e., greater than zero but less than the minimum deposit