From fecd9042d2edb31cf0609f3d97a483423b465564 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Sun, 8 Jan 2012 21:24:20 -0800 Subject: [PATCH] Life gets easier if an account that exists in the ledger has a defined sequence number of 1. --- Ledger.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Ledger.cpp b/Ledger.cpp index 94133fa8bb..2cf8f2a3d6 100644 --- a/Ledger.cpp +++ b/Ledger.cpp @@ -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); }