Clean up the TransactionEngineParameter flags. Clarify the semantics for

soft failure. Note that the code will not yet invoke a transaction with a
retry flag, but the support is there for transcations to handle it.
This commit is contained in:
JoelKatz
2012-08-29 23:02:06 -07:00
parent 6b144f8749
commit 6282ad4a88
5 changed files with 21 additions and 21 deletions

View File

@@ -84,7 +84,7 @@ enum TER // aka TransactionEngineResult
// 100 .. P Partial success (SR) (ripple transaction with no good paths, pay to non-existent account)
// Transaction can be applied, can charge fee, forwarded, but does not achieve optimal result.
tepPARITAL = 100,
tepPARTIAL = 100,
tepPATH_DRY,
tepPATH_PARTIAL,
};
@@ -93,11 +93,11 @@ bool transResultInfo(TER terCode, std::string& strToken, std::string& strHuman);
enum TransactionEngineParams
{
tepNONE = 0,
tepNO_CHECK_SIGN = 1, // Signature already checked
tepNO_CHECK_FEE = 2, // It was voted into a ledger anyway
tepUPDATE_TOTAL = 4, // Update the total coins
tepMETADATA = 5, // put metadata in tree, not transaction
temNONE = 0x00,
temNO_CHECK_SIGN = 0x01, // Signature already checked
temOPEN_LEDGER = 0x10, // Transaction is running against an open ledger
temRETRY_OK = 0x20, // It was voted into a ledger anyway
temFINAL = 0x40, // This may be the transaction's last pass
};
typedef struct {