mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Don't send a zero amount.
This commit is contained in:
@@ -150,8 +150,8 @@ Pathfinder::Pathfinder(Ledger::ref ledger,
|
||||
mLedger(ledger)
|
||||
{
|
||||
|
||||
if ((mSrcAccountID == mDstAccountID) && (mSrcCurrencyID == mDstAmount.getCurrency()))
|
||||
{ // no need to send to same account with same currency
|
||||
if (((mSrcAccountID == mDstAccountID) && (mSrcCurrencyID == mDstAmount.getCurrency())) || mDstAmount.isZero())
|
||||
{ // no need to send to same account with same currency, must send non-zero
|
||||
bValid = false;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user