mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 05:55:51 +00:00
Cosmetic changes.
This commit is contained in:
@@ -69,7 +69,7 @@ public:
|
|||||||
void init(Ledger::ref ledger, const uint256& transactionID, uint32 ledgerID);
|
void init(Ledger::ref ledger, const uint256& transactionID, uint32 ledgerID);
|
||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
Ledger::pointer& getLedger() { return mLedger; }
|
Ledger::pointer& getLedger() { return mLedger; }
|
||||||
Ledger::ref getLedgerRef() const { return mLedger; }
|
Ledger::ref getLedgerRef() const { return mLedger; }
|
||||||
|
|
||||||
// basic entry functions
|
// basic entry functions
|
||||||
@@ -132,7 +132,7 @@ public:
|
|||||||
bool isEmpty() const { return mEntries.empty(); }
|
bool isEmpty() const { return mEntries.empty(); }
|
||||||
std::map<uint256, LedgerEntrySetEntry>::const_iterator begin() const { return mEntries.begin(); }
|
std::map<uint256, LedgerEntrySetEntry>::const_iterator begin() const { return mEntries.begin(); }
|
||||||
std::map<uint256, LedgerEntrySetEntry>::const_iterator end() const { return mEntries.end(); }
|
std::map<uint256, LedgerEntrySetEntry>::const_iterator end() const { return mEntries.end(); }
|
||||||
std::map<uint256, LedgerEntrySetEntry>::iterator begin() { return mEntries.begin(); }
|
std::map<uint256, LedgerEntrySetEntry>::iterator begin() { return mEntries.begin(); }
|
||||||
std::map<uint256, LedgerEntrySetEntry>::iterator end() { return mEntries.end(); }
|
std::map<uint256, LedgerEntrySetEntry>::iterator end() { return mEntries.end(); }
|
||||||
|
|
||||||
static bool intersect(const LedgerEntrySet& lesLeft, const LedgerEntrySet& lesRight);
|
static bool intersect(const LedgerEntrySet& lesLeft, const LedgerEntrySet& lesRight);
|
||||||
|
|||||||
@@ -152,7 +152,8 @@ TER TransactionEngine::applyTransaction(const SerializedTransaction& txn, Transa
|
|||||||
}
|
}
|
||||||
|
|
||||||
return terResult;
|
return terResult;
|
||||||
}else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
cLog(lsWARNING) << "applyTransaction: Invalid transaction: unknown transaction type";
|
cLog(lsWARNING) << "applyTransaction: Invalid transaction: unknown transaction type";
|
||||||
return temUNKNOWN;
|
return temUNKNOWN;
|
||||||
@@ -160,4 +161,3 @@ TER TransactionEngine::applyTransaction(const SerializedTransaction& txn, Transa
|
|||||||
}
|
}
|
||||||
|
|
||||||
// vim:ts=4
|
// vim:ts=4
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ enum TransactionEngineParams
|
|||||||
class TransactionEngine : private IS_INSTANCE(TransactionEngine)
|
class TransactionEngine : private IS_INSTANCE(TransactionEngine)
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
LedgerEntrySet mNodes;
|
LedgerEntrySet mNodes;
|
||||||
|
|
||||||
TER setAuthorized(const SerializedTransaction& txn, bool bMustSetGenerator);
|
TER setAuthorized(const SerializedTransaction& txn, bool bMustSetGenerator);
|
||||||
TER checkSig(const SerializedTransaction& txn);
|
TER checkSig(const SerializedTransaction& txn);
|
||||||
@@ -60,11 +60,8 @@ protected:
|
|||||||
uint160 mTxnAccountID;
|
uint160 mTxnAccountID;
|
||||||
SLE::pointer mTxnAccount;
|
SLE::pointer mTxnAccount;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void txnWrite();
|
void txnWrite();
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
typedef boost::shared_ptr<TransactionEngine> pointer;
|
typedef boost::shared_ptr<TransactionEngine> pointer;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user