Add tecOWNERS.

This commit is contained in:
JoelKatz
2013-06-28 13:58:55 -07:00
parent 832f67b35c
commit 27c761aa9c
3 changed files with 3 additions and 1 deletions

View File

@@ -31,6 +31,7 @@ bool transResultInfo (TER terCode, std::string& strToken, std::string& strHuman)
{ tecUNFUNDED_ADD, "tecUNFUNDED_ADD", "Insufficient XRP balance for WalletAdd." }, { tecUNFUNDED_ADD, "tecUNFUNDED_ADD", "Insufficient XRP balance for WalletAdd." },
{ tecUNFUNDED_OFFER, "tecUNFUNDED_OFFER", "Insufficient balance to fund created offer." }, { tecUNFUNDED_OFFER, "tecUNFUNDED_OFFER", "Insufficient balance to fund created offer." },
{ tecUNFUNDED_PAYMENT, "tecUNFUNDED_PAYMENT", "Insufficient XRP balance to send." }, { tecUNFUNDED_PAYMENT, "tecUNFUNDED_PAYMENT", "Insufficient XRP balance to send." },
{ tecOWNERS, "tecOWNERS", "Non-zero owner count." },
{ tefFAILURE, "tefFAILURE", "Failed to apply." }, { tefFAILURE, "tefFAILURE", "Failed to apply." },
{ tefALREADY, "tefALREADY", "The exact transaction was already in this ledger." }, { tefALREADY, "tefALREADY", "The exact transaction was already in this ledger." },

View File

@@ -150,6 +150,7 @@ enum TER // aka TransactionEngineResult
tecUNFUNDED = 129, // Deprecated, old ambiguous unfunded. tecUNFUNDED = 129, // Deprecated, old ambiguous unfunded.
tecMASTER_DISABLED = 130, tecMASTER_DISABLED = 130,
tecNO_REGULAR_KEY = 131, tecNO_REGULAR_KEY = 131,
tecOWNERS = 132,
}; };
// VFALCO TODO change these to normal functions. // VFALCO TODO change these to normal functions.

View File

@@ -50,7 +50,7 @@ TER AccountSetTransactor::doApply ()
{ {
WriteLog (lsINFO, AccountSetTransactor) << "AccountSet: Retry: OwnerCount not zero."; WriteLog (lsINFO, AccountSetTransactor) << "AccountSet: Retry: OwnerCount not zero.";
return terOWNERS; return isSetBit(mParams, tapRETRY) ? terOWNERS : tecOWNERS;
} }
WriteLog (lsINFO, AccountSetTransactor) << "AccountSet: Set RequireAuth."; WriteLog (lsINFO, AccountSetTransactor) << "AccountSet: Set RequireAuth.";