From f0e3383856a8923e55b0f10e7822de9031b7159e Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Sat, 2 Jun 2012 02:04:46 -0700 Subject: [PATCH] Fix starting number of XNS. --- src/Application.cpp | 2 +- src/Config.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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;