Merge branch 'master' of github.com:jedmccaleb/NewCoin into cherry

This commit is contained in:
JoelKatz
2013-04-15 07:15:21 -07:00

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