From 8e0b122779793b69e73faeef7cb13c7f254cb571 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Sat, 5 May 2012 13:50:04 -0700 Subject: [PATCH] Update to new ledger code. --- src/Application.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Application.cpp b/src/Application.cpp index be9af22fa..41a3cc201 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -112,11 +112,12 @@ void Application::run() Ledger::pointer firstLedger(new Ledger(rootAddress, 100000000)); assert(!!firstLedger->getAccountState(rootAddress)); + firstLedger->updateHash(); firstLedger->setClosed(); firstLedger->setAccepted(); mMasterLedger.pushLedger(firstLedger); - Ledger::pointer secondLedger = firstLedger->closeLedger(time(NULL)); + Ledger::pointer secondLedger = boost::make_shared(firstLedger); mMasterLedger.pushLedger(secondLedger); assert(!!secondLedger->getAccountState(rootAddress)); mMasterLedger.setSynced();