Fix OfferCreate handling of reserves.

This commit is contained in:
Arthur Britto
2012-12-18 18:08:29 -08:00
parent a30d065e87
commit 7d2cfdc063
5 changed files with 17 additions and 11 deletions

View File

@@ -83,7 +83,7 @@ TER PaymentTransactor::doApply()
// Another transaction could create the account and then this transaction would succeed.
return terNO_DST;
}
else if (isSetBit(mParams, tapOPEN_LEDGER) // Ledger is not final, we can vote.
else if (isSetBit(mParams, tapOPEN_LEDGER) // Ledger is not final, can vote no.
&& saDstAmount.getNValue() < theApp->scaleFeeBase(theConfig.FEE_ACCOUNT_RESERVE)) // Reserve is not scaled by load.
{
Log(lsINFO) << "doPayment: Delay transaction: Destination account does not exist. Insufficent payment to create account.";