Skip to content

Commit f0e3383

Browse files
committed
Fix starting number of XNS.
1 parent affe444 commit f0e3383

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/Application.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void Application::run()
111111
std::cerr << "Root master seed: " << rootSeedMaster.humanFamilySeed() << std::endl;
112112
std::cerr << "Root account: " << rootAddress.humanAccountID() << std::endl;
113113

114-
Ledger::pointer firstLedger = boost::make_shared<Ledger>(rootAddress, 100000000);
114+
Ledger::pointer firstLedger = boost::make_shared<Ledger>(rootAddress, SYSTEM_CURRENCY_START);
115115
assert(!!firstLedger->getAccountState(rootAddress));
116116
firstLedger->updateHash();
117117
firstLedger->setClosed();

src/Config.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
#define SYSTEM_CURRENCY_CODE "XNS"
1212
#define SYSTEM_CURRENCY_PRECISION 6
1313

14+
#define SYSTEM_CURRENCY_GIFT 1000ull
15+
#define SYSTEM_CURRENCY_USERS 100000000ull
16+
#define SYSTEM_CURRENCY_PARTS 1000000ull
17+
#define SYSTEM_CURRENCY_START (SYSTEM_CURRENCY_GIFT*SYSTEM_CURRENCY_USERS*SYSTEM_CURRENCY_PARTS)
18+
1419
#define VALIDATORS_FILE_NAME "validators.txt"
1520
const int SYSTEM_PEER_PORT = 6561;
1621

0 commit comments

Comments
 (0)