mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Cleanups.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user