Cosmetic changes.

This commit is contained in:
Arthur Britto
2012-05-27 17:43:46 -07:00
parent 561e87c050
commit af5c25a24d
3 changed files with 5 additions and 3 deletions

View File

@@ -2,7 +2,6 @@
#define __ACCOUNTSTATE__ #define __ACCOUNTSTATE__
// An account's state // An account's state
// Used to track information about a local account
#include <vector> #include <vector>

View File

@@ -107,7 +107,7 @@ Transaction::pointer NetworkOPs::processTransaction(Transaction::pointer trans,
#ifdef DEBUG #ifdef DEBUG
std::cerr << "Status other than success " << r << std::endl; std::cerr << "Status other than success " << r << std::endl;
#endif #endif
trans->setStatus(INVALID); trans->setStatus(INVALID);
return trans; return trans;
} }
@@ -125,7 +125,7 @@ int NetworkOPs::findTransactionsBySource(std::list<Transaction::pointer>& txns,
if (minSeq > state->getSeq()) return 0; if (minSeq > state->getSeq()) return 0;
if (maxSeq > state->getSeq()) maxSeq = state->getSeq(); if (maxSeq > state->getSeq()) maxSeq = state->getSeq();
if (maxSeq > minSeq) return 0; if (maxSeq > minSeq) return 0;
int count = 0; int count = 0;
for(int i = minSeq; i <= maxSeq; ++i) for(int i = minSeq; i <= maxSeq; ++i)
{ {
@@ -434,3 +434,4 @@ bool NetworkOPs::hasTXSet(boost::shared_ptr<Peer> peer, const std::vector<uint25
if (!mConsensus) return false; if (!mConsensus) return false;
return mConsensus->peerHasSet(peer, sets); return mConsensus->peerHasSet(peer, sets);
} }
// vim:ts=4

View File

@@ -84,5 +84,7 @@ public:
void makeIFieldAbsent(SOE_Field field) { return mObject.makeFieldAbsent(field); } void makeIFieldAbsent(SOE_Field field) { return mObject.makeFieldAbsent(field); }
}; };
typedef SerializedLedgerEntry SLE;
#endif #endif
// vim:ts=4 // vim:ts=4