From 5ba945b8e382f0ff77f611f8efdd7e4acd42d6ee Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Tue, 17 Jan 2012 20:38:32 -0800 Subject: [PATCH] New version of the code to generate the initial ledger. This version puts all the money in ["This is my payphrase."] --- Application.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Application.cpp b/Application.cpp index 896687fa0..75571699d 100644 --- a/Application.cpp +++ b/Application.cpp @@ -75,12 +75,9 @@ void Application::run() mTimingService.start(mIOService); std::cout << "Before Run." << std::endl; - // TEMPORARY CODE - uint160 rootFamily=mWallet.addFamily("This is my payphrase.", true); - LocalAccount::pointer rootAccount=mWallet.getLocalAccount(rootFamily, 0); - assert(!!rootAccount); - uint160 rootAddress=rootAccount->getAddress(); - assert(!!rootAddress); + // Temporary root account will be ["This is my payphrase."]:0 + uint160 rootAddress=NewcoinAddress("MoXdEKxkG1FEwyuMia6Mbrja1SohefRvro").GetHash160(); + Ledger::pointer firstLedger(new Ledger(rootAddress, 1000000)); firstLedger->setClosed(); firstLedger->setAccepted();