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

@@ -270,6 +270,11 @@ Ledger::pointer Ledger::closeLedger(uint64 timeStamp)
return Ledger::pointer(new Ledger(*this, timeStamp));
}
void LocalAccount::syncLedger(const uint160& acctID)
{
setLedgerBalance(theApp->getMasterLedger().getBalance(acctID));
}
bool Ledger::unitTest()
{
uint160 la1=theApp->getWallet().addFamily(CKey::PassPhraseToKey("This is my payphrase!"), false);