Sync ledger with wallet.

This commit is contained in:
JoelKatz
2012-01-17 19:19:00 -08:00
parent c35ca834a7
commit b62139cdcc
3 changed files with 12 additions and 0 deletions

View File

@@ -538,6 +538,9 @@ LocalAccount::pointer Wallet::getNewLocalAccount(const uint160& family)
LocalAccount::pointer lac(new LocalAccount(fit->second, seq));
mAccounts.insert(std::make_pair(acct, lac));
sl.unlock();
lac->syncLedger(acct);
return lac;
}
@@ -553,6 +556,9 @@ LocalAccount::pointer Wallet::getLocalAccount(const uint160& family, int seq)
LocalAccount::pointer lac(new LocalAccount(fit->second, seq));
mAccounts.insert(std::make_pair(acct, lac));
sl.unlock();
lac->syncLedger(acct);
return lac;
}