Cleanups.

This commit is contained in:
JoelKatz
2012-04-26 18:57:49 -07:00
parent a14c9fdcf1
commit a1c3375237

View File

@@ -15,8 +15,7 @@
#include "Wallet.h"
#include "BinaryFormats.h"
Ledger::Ledger(const NewcoinAddress& masterID, uint64 startAmount) :
mFeeHeld(0), mTimeStamp(0), mLedgerSeq(0),
Ledger::Ledger(const NewcoinAddress& masterID, uint64 startAmount) : mFeeHeld(0), mTimeStamp(0), mLedgerSeq(0),
mClosed(false), mValidHash(false), mAccepted(false), mImmutable(false)
{
mTransactionMap = boost::make_shared<SHAMap>();
@@ -27,6 +26,9 @@ Ledger::Ledger(const NewcoinAddress& masterID, uint64 startAmount) :
startAccount->peekSLE().setIFieldU64(sfBalance, startAmount);
startAccount->peekSLE().setIFieldU32(sfSequence, 1);
writeBack(lepCREATE, startAccount->getSLE());
#ifdef DEBUG
startAccount->dump();
#endif
}
Ledger::Ledger(const uint256 &parentHash, const uint256 &transHash, const uint256 &accountHash,