mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Don't let people send more XRP than they have.
This commit is contained in:
@@ -2322,7 +2322,7 @@ TER RippleCalc::calcNodeAccountFwd(
|
||||
saCurDeliverAct = std::min(saCurDeliverAct, psCur.saInReq-psCur.saInAct);
|
||||
|
||||
// Limit XRP by available. No limit for non-XRP as issuer.
|
||||
if (!uCurAccountID)
|
||||
if (!uCurrencyID)
|
||||
saCurDeliverAct = std::min(saCurDeliverAct, lesActive.accountHolds(uCurAccountID, CURRENCY_XRP, ACCOUNT_XRP));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user