Add and move to new tecCLAIM result codes.

This commit is contained in:
Arthur Britto
2012-12-23 15:52:59 -08:00
parent 56d97f95d7
commit 194053c87e
10 changed files with 82 additions and 60 deletions

View File

@@ -324,7 +324,7 @@ TER OfferCreateTransactor::doApply()
{
cLog(lsWARNING) << "doOfferCreate: delay: Offers must be at least partially funded.";
terResult = terUNFUNDED;
terResult = tecUNFUNDED;
}
if (tesSUCCESS == terResult && !saTakerPays.isNative())
@@ -398,13 +398,13 @@ TER OfferCreateTransactor::doApply()
if (isSetBit(mParams, tapOPEN_LEDGER)) // Ledger is not final, can vote no.
{
// Hope for more reserve to come in or more offers to consume.
terResult = terINSUF_RESERVE_OFFER;
terResult = tecINSUF_RESERVE_OFFER;
}
else if (!saOfferPaid && !saOfferGot)
{
// Ledger is final, insufficent reserve to create offer, processed nothing.
terResult = tepINSUF_RESERVE_OFFER;
terResult = tecINSUF_RESERVE_OFFER;
}
else
{