Cosmetic changes.

This commit is contained in:
Arthur Britto
2012-05-05 16:46:29 -07:00
parent e7c362457e
commit f548e27e67
14 changed files with 23 additions and 9 deletions

View File

@@ -21,7 +21,7 @@ enum LedgerStateParms
lepNONE = 0, // no special flags lepNONE = 0, // no special flags
// input flags // input flags
lepCREATE, // Create if not present lepCREATE, // Create if not present
// output flags // output flags
lepOKAY, // success lepOKAY, // success
@@ -87,7 +87,7 @@ public:
Ledger(Ledger::pointer previous); // ledger after this one Ledger(Ledger::pointer previous); // ledger after this one
void updateHash(); void updateHash();
void setClosed() { mClosed = true; } void setClosed() { mClosed = true; }
void setAccepted() { mAccepted = true; } void setAccepted() { mAccepted = true; }
bool isClosed() { return mClosed; } bool isClosed() { return mClosed; }
bool isAccepted() { return mAccepted; } bool isAccepted() { return mAccepted; }
@@ -118,7 +118,7 @@ public:
bool hasTransaction(const uint256& TransID) const; bool hasTransaction(const uint256& TransID) const;
Transaction::pointer getTransaction(const uint256& transID) const; Transaction::pointer getTransaction(const uint256& transID) const;
Ledger::pointer switchPreviousLedger(Ledger::pointer oldPrevious, Ledger::pointer newPrevious, int limit); Ledger::pointer switchPreviousLedger(Ledger::pointer oldPrevious, Ledger::pointer newPrevious, int limit);
// high-level functions // high-level functions
AccountState::pointer getAccountState(const NewcoinAddress& acctID); AccountState::pointer getAccountState(const NewcoinAddress& acctID);
@@ -165,3 +165,4 @@ inline LedgerStateParms operator&(const LedgerStateParms& l1, const LedgerStateP
} }
#endif #endif
// vim:ts=4

View File

@@ -71,3 +71,4 @@ bool SerializedLedgerEntry::isEquivalent(const SerializedType& t) const
if (mObject != v->mObject) return false; if (mObject != v->mObject) return false;
return true; return true;
} }
// vim:ts=4

View File

@@ -74,3 +74,4 @@ public:
}; };
#endif #endif
// vim:ts=4

View File

@@ -131,3 +131,4 @@ public:
#endif #endif
// vim:ts=4

View File

@@ -407,3 +407,4 @@ public:
}; };
#endif #endif
// vim:ts=4

View File

@@ -1,7 +1,7 @@
#include "SerializedValidation.h" #include "SerializedValidation.h"
SOElement SerializedValidation::sValidationFormat[16] = { SOElement SerializedValidation::sValidationFormat[] = {
{ sfFlags, "Flags", STI_UINT32, SOE_FLAGS, 0 }, { sfFlags, "Flags", STI_UINT32, SOE_FLAGS, 0 },
{ sfLedgerHash, "LedgerHash", STI_HASH256, SOE_REQUIRED, 0 }, { sfLedgerHash, "LedgerHash", STI_HASH256, SOE_REQUIRED, 0 },
{ sfSigningKey, "SigningKey", STI_VL, SOE_REQUIRED, 0 }, { sfSigningKey, "SigningKey", STI_VL, SOE_REQUIRED, 0 },
@@ -90,3 +90,4 @@ std::vector<unsigned char> SerializedValidation::getSignature() const
{ {
return mSignature.peekValue(); return mSignature.peekValue();
} }
// vim:ts=4

View File

@@ -35,3 +35,4 @@ public:
}; };
#endif #endif
// vim:ts=4

View File

@@ -571,3 +571,4 @@ std::vector<TaggedListItem> SerializerIterator::getTaggedList()
mPos += length; mPos += length;
return tl; return tl;
} }
// vim:ts=4

View File

@@ -191,3 +191,4 @@ TransactionEngineResult TransactionEngine::doDelete(const SerializedTransaction&
{ {
return terUNKNOWN; return terUNKNOWN;
} }
// vim:ts=4

View File

@@ -80,3 +80,4 @@ inline TransactionEngineParams operator&(const TransactionEngineParams& l1, cons
} }
#endif #endif
// vim:ts=4

View File

@@ -55,3 +55,4 @@ TransactionFormat* getTxnFormat(TransactionType t)
} }
return NULL; return NULL;
} }
// vim:ts=4

View File

@@ -29,3 +29,4 @@ const int TransactionMaxLen=1048576;
extern TransactionFormat InnerTxnFormats[]; extern TransactionFormat InnerTxnFormats[];
extern TransactionFormat* getTxnFormat(TransactionType t); extern TransactionFormat* getTxnFormat(TransactionType t);
#endif #endif
// vim:ts=4

View File

@@ -38,3 +38,4 @@ bool TransactionMaster::canonicalize(Transaction::pointer& txn, bool may_be_new)
theApp->getIOService().post(boost::bind(&Transaction::saveTransaction, txn)); theApp->getIOService().post(boost::bind(&Transaction::saveTransaction, txn));
return false; return false;
} }
// vim:ts=4

View File

@@ -22,3 +22,4 @@ public:
}; };
#endif #endif
// vim:ts=4