New version of the code to generate the initial ledger.

This version puts all the money in ["This is my payphrase."]
This commit is contained in:
JoelKatz
2012-01-17 20:38:32 -08:00
parent deb0dc6d65
commit 5ba945b8e3

View File

@@ -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();