From b51ac04aff5479697ee387150c1db849fdb09d8d Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Thu, 20 Dec 2012 22:02:07 -0800 Subject: [PATCH] Error changes for offer reserves. --- src/cpp/ripple/TransactionErr.cpp | 1 + src/cpp/ripple/TransactionErr.h | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/cpp/ripple/TransactionErr.cpp b/src/cpp/ripple/TransactionErr.cpp index 3b8838774..3198f0ef7 100644 --- a/src/cpp/ripple/TransactionErr.cpp +++ b/src/cpp/ripple/TransactionErr.cpp @@ -46,6 +46,7 @@ bool transResultInfo(TER terCode, std::string& strToken, std::string& strHuman) { tepPATH_DRY, "tepPATH_DRY", "Path could not send partial amount." }, { tepPATH_PARTIAL, "tepPATH_PARTIAL", "Path could not send full amount." }, + { tepINSUF_RESERVE_OFFER, "tepINSUF_RESERVE_OFFER", "Insufficent reserve to create offer." }, { terDIR_FULL, "terDIR_FULL", "Can not add entry to full dir." }, { terFUNDS_SPENT, "terFUNDS_SPENT", "Can't set password, password set funds already spent." }, diff --git a/src/cpp/ripple/TransactionErr.h b/src/cpp/ripple/TransactionErr.h index 552b4fcb9..e5947aaa7 100644 --- a/src/cpp/ripple/TransactionErr.h +++ b/src/cpp/ripple/TransactionErr.h @@ -108,9 +108,10 @@ enum TER // aka TransactionEngineResult // - Forwarded // Only allowed as a return code of appliedTransaction when !tapRetry. Otherwise, treated as terRETRY. // CAUTION: The numerical values for these results are part of the binary formats - tepPARTIAL = 100, - tepPATH_DRY = 101, - tepPATH_PARTIAL = 102, + tepPARTIAL = 100, + tepPATH_DRY = 101, + tepPATH_PARTIAL = 102, + tepINSUF_RESERVE_OFFER = 103, }; #define isTelLocal(x) ((x) >= telLOCAL_ERROR && (x) < temMALFORMED)