Don't send a zero amount.

This commit is contained in:
JoelKatz
2013-04-15 05:44:35 -07:00
parent 17cc6edc2b
commit 7f82b95dbd

View File

@@ -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;
}