Work to fix the transaction source sequence buglet.

This commit is contained in:
JoelKatz
2012-01-18 09:57:48 -08:00
parent 7fa8f43c59
commit 2e0d47f782
3 changed files with 25 additions and 2 deletions

View File

@@ -271,7 +271,9 @@ Ledger::pointer Ledger::closeLedger(uint64 timeStamp)
void LocalAccount::syncLedger(const uint160& acctID)
{
setLedgerBalance(theApp->getMasterLedger().getBalance(acctID));
AccountState::pointer as=theApp->getMasterLedger().getAccountState(acctID);
if(!as) setLedgerBalance(0);
else syncLedger(as->getBalance(), as->getSeq());
}
bool Ledger::unitTest()