From 11f02ba79822158a0edd4859dcd226918c64eca1 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Tue, 14 Aug 2012 13:17:59 -0700 Subject: [PATCH] Ignore create flag on payments if account already created. --- src/TransactionEngine.cpp | 9 --------- src/TransactionEngine.h | 1 - 2 files changed, 10 deletions(-) diff --git a/src/TransactionEngine.cpp b/src/TransactionEngine.cpp index d95b0bb198..197c6c9472 100644 --- a/src/TransactionEngine.cpp +++ b/src/TransactionEngine.cpp @@ -70,7 +70,6 @@ bool transResultInfo(TransactionEngineResult terCode, std::string& strToken, std { terBAD_LEDGER, "terBAD_LEDGER", "Ledger in unexpected state." }, { terBAD_RIPPLE, "terBAD_RIPPLE", "No ripple path can be satisfied." }, { terBAD_SEQ, "terBAD_SEQ", "This sequence number should be zero for prepaid transactions." }, - { terCREATED, "terCREATED", "Can not create a previously created account." }, { terDIR_FULL, "terDIR_FULL", "Can not add entry to full dir." }, { terFUNDS_SPENT, "terFUNDS_SPENT", "Can't set password, password set funds already spent." }, { terINSUF_FEE_B, "terINSUF_FEE_B", "Account balance can't pay fee" }, @@ -3305,14 +3304,6 @@ TransactionEngineResult TransactionEngine::doPayment(const SerializedTransaction sleDst->setIFieldAccount(sfAccount, uDstAccountID); sleDst->setIFieldU32(sfSequence, 1); } - // Destination exists. - else if (bCreate) - { - // Retryable: if account created this ledger, reordering might allow account to be made by this transaction. - Log(lsINFO) << "doPayment: Invalid transaction: Account already created."; - - return terCREATED; - } else { entryModify(sleDst); diff --git a/src/TransactionEngine.h b/src/TransactionEngine.h index 832f09e5e0..02e8dfb762 100644 --- a/src/TransactionEngine.h +++ b/src/TransactionEngine.h @@ -41,7 +41,6 @@ enum TransactionEngineResult // Invalid: Ledger won't allow. tenCLAIMED = -200, tenBAD_RIPPLE, - tenCREATED, tenEXPIRED, tenMSG_SET, terALREADY,