mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-13 15:38:21 +00:00
Verify transfer now checks for amount + fees. (#457)
This commit is contained in:
parent
7458022fcf
commit
1b26a36ebc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user