diff --git a/src/Application.cpp b/src/Application.cpp index b5fdee2140..cf0a5c35f5 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -111,7 +111,7 @@ void Application::run() std::cerr << "Root master seed: " << rootSeedMaster.humanFamilySeed() << std::endl; std::cerr << "Root account: " << rootAddress.humanAccountID() << std::endl; - Ledger::pointer firstLedger = boost::make_shared(rootAddress, 100000000); + Ledger::pointer firstLedger = boost::make_shared(rootAddress, SYSTEM_CURRENCY_START); assert(!!firstLedger->getAccountState(rootAddress)); firstLedger->updateHash(); firstLedger->setClosed(); diff --git a/src/Config.h b/src/Config.h index ce595905a1..9cd34d22e0 100644 --- a/src/Config.h +++ b/src/Config.h @@ -11,6 +11,11 @@ #define SYSTEM_CURRENCY_CODE "XNS" #define SYSTEM_CURRENCY_PRECISION 6 +#define SYSTEM_CURRENCY_GIFT 1000ull +#define SYSTEM_CURRENCY_USERS 100000000ull +#define SYSTEM_CURRENCY_PARTS 1000000ull +#define SYSTEM_CURRENCY_START (SYSTEM_CURRENCY_GIFT*SYSTEM_CURRENCY_USERS*SYSTEM_CURRENCY_PARTS) + #define VALIDATORS_FILE_NAME "validators.txt" const int SYSTEM_PEER_PORT = 6561;