Cosmetic changes.

This commit is contained in:
Arthur Britto
2012-11-22 14:02:51 -08:00
parent 4e713c58ad
commit b7e18f367b
3 changed files with 5 additions and 8 deletions

View File

@@ -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);

View File

@@ -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

View File

@@ -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;