mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user