Fix transaction engine sense of ripple balances.

This commit is contained in:
Arthur Britto
2012-08-20 16:23:23 -07:00
parent a99f814c20
commit 58644fc806
3 changed files with 18 additions and 4 deletions

View File

@@ -224,8 +224,8 @@ STAmount TransactionEngine::rippleHolds(const uint160& uAccountID, const uint160
{
saBalance = sleRippleState->getIValueFieldAmount(sfBalance);
if (uAccountID < uIssuerID)
saBalance.negate(); // Put balance in low terms.
if (uAccountID > uIssuerID)
saBalance.negate(); // Put balance in uAccountID terms.
}
return saBalance;
@@ -4213,7 +4213,7 @@ Log(lsWARNING) << "doOfferCreate: saTakerGets=" << saTakerGets.getFullText();
}
else if (!accountFunds(mTxnAccountID, saTakerGets).isPositive())
{
Log(lsWARNING) << "doOfferCreate: delay: offers must be funded";
Log(lsWARNING) << "doOfferCreate: delay: Offers must be at least partially funded.";
terResult = terUNFUNDED;
}