Work on transit fees.

This commit is contained in:
Arthur Britto
2012-05-22 12:42:13 -07:00
parent 4797cfd28f
commit 30407a3a23
6 changed files with 176 additions and 26 deletions

View File

@@ -14,14 +14,15 @@ enum TransactionEngineResult
{
// tenCAN_NEVER_SUCCEED = <0
// Malformed
tenGEN_IN_USE = -300, // Generator already in use.
// Malformed: Fee claimed
tenGEN_IN_USE = -300, // Generator already in use.
tenCREATEXNC, // Can not specify non XNC for Create.
tenEXPLICITXNC, // XNC is used by default, don't specify it.
// Not possible due to ledger database.
// Not possible due to ledger database: Fee claimed
tenCREATED = -200, // Can not create a previously created account.
tenCLAIMED, // Can not claim a previously claimed account.
tenTRANSIT_WORSE, // Can not override a better promise.
// Other
tenFAILED = -100, // Something broke horribly
@@ -29,7 +30,7 @@ enum TransactionEngineResult
tenINSUF_FEE_P, // fee totally insufficient
tenINVALID, // The transaction is ill-formed
terSUCCESS = 0, // The transaction was applied
terSUCCESS = 0, // The transaction was applied
// terFAILED_BUT_COULD_SUCEED = >0
terALREADY, // The transaction was already in the ledger