mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Use SecretKey, PublicKey
This commit is contained in:
committed by
Nik Bougalis
parent
6fccd07479
commit
163e8eb8fc
@@ -59,6 +59,7 @@
|
||||
#include <ripple/nodestore/Manager.h>
|
||||
#include <ripple/overlay/make_Overlay.h>
|
||||
#include <ripple/protocol/Indexes.h>
|
||||
#include <ripple/protocol/SecretKey.h>
|
||||
#include <ripple/protocol/STParsedJSON.h>
|
||||
#include <ripple/protocol/types.h>
|
||||
#include <ripple/server/make_ServerHandler.h>
|
||||
@@ -1048,7 +1049,13 @@ void ApplicationImp::startNewLedger ()
|
||||
m_journal.info << "Root account: " << toBase58(calcAccountID(rootAddress));
|
||||
|
||||
{
|
||||
Ledger::pointer firstLedger = std::make_shared<Ledger> (rootAddress, SYSTEM_CURRENCY_START);
|
||||
auto const masterAccountID =
|
||||
calcAccountID(generateKeyPair(
|
||||
KeyType::secp256k1,
|
||||
generateSeed("masterpassphrase")).first);
|
||||
|
||||
auto firstLedger = std::make_shared<Ledger>(
|
||||
masterAccountID, SYSTEM_CURRENCY_START);
|
||||
assert (firstLedger->exists(keylet::account(
|
||||
calcAccountID(rootAddress))));
|
||||
// TODO(david): Add any default amendments
|
||||
|
||||
Reference in New Issue
Block a user