Life gets easier if an account that exists in the ledger has a

defined sequence number of 1.
This commit is contained in:
JoelKatz
2012-01-08 21:24:20 -08:00
parent c65b9ecf83
commit fecd9042d2

View File

@@ -154,6 +154,7 @@ Ledger::TransResult Ledger::applyTransaction(Transaction::pointer trans)
if(!!fromAccount && !toAccount)
{
toAccount=AccountState::pointer(new AccountState(trans->getToAccount()));
toAccount->incSeq(); // an account in a ledger has a sequence of 1
updateAccountState(toAccount);
}