Make OfferCreate use mPriorBalance.

This commit is contained in:
Arthur Britto
2013-02-24 14:20:28 -08:00
parent 87844a6053
commit b759b0674c

View File

@@ -466,7 +466,7 @@ TER OfferCreateTransactor::doApply()
// Complete as is. // Complete as is.
nothing(); nothing();
} }
else if (mTxnAccount->getFieldAmount(sfBalance).getNValue() < mEngine->getLedger()->getReserve(mTxnAccount->getFieldU32(sfOwnerCount)+1)) else if (mPriorBalance.getNValue() < mEngine->getLedger()->getReserve(mTxnAccount->getFieldU32(sfOwnerCount)+1))
{ {
if (isSetBit(mParams, tapOPEN_LEDGER)) // Ledger is not final, can vote no. if (isSetBit(mParams, tapOPEN_LEDGER)) // Ledger is not final, can vote no.
{ {