From 5cba2b44978ebd7ffcbecf671fdbbc5bd9c29431 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Sat, 19 May 2012 18:17:44 -0700 Subject: [PATCH] Less debugging. --- src/Application.cpp | 16 ++-------------- src/Ledger.cpp | 2 +- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/src/Application.cpp b/src/Application.cpp index c48070b8f0..04bfcbcf41 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -15,17 +15,6 @@ Application* theApp=NULL; -/* -What needs to happen: - Listen for connections - Try to maintain the right number of connections - Process messages from peers - Process messages from RPC - Periodically publish a new ledger - Save the various pieces of data - -*/ - DatabaseCon::DatabaseCon(const std::string& name, const char *initStrings[], int initCount) { std::string path=strprintf("%s%s", theConfig.DATA_DIR.c_str(), name.c_str()); @@ -117,9 +106,8 @@ void Application::run() rootAddress.setAccountPublic(rootGeneratorMaster, 0); - std::cerr << "Master seed: " << rootSeedMaster.humanFamilySeed() << std::endl; - std::cerr << "Master generator: " << rootGeneratorMaster.humanFamilyGenerator() << std::endl; - std::cerr << "Root public key: " << rootAddress.humanAccountPublic() << std::endl; + // Print enough information to be able to claim root account. + 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); diff --git a/src/Ledger.cpp b/src/Ledger.cpp index bd83404e01..28926c96c1 100644 --- a/src/Ledger.cpp +++ b/src/Ledger.cpp @@ -29,7 +29,7 @@ Ledger::Ledger(const NewcoinAddress& masterID, uint64 startAmount) : mTotCoins(s startAccount->peekSLE().setIFieldAmount(sfBalance, startAmount); startAccount->peekSLE().setIFieldU32(sfSequence, 1); writeBack(lepCREATE, startAccount->getSLE()); -#ifdef DEBUG +#if 0 std::cerr << "Root account:"; startAccount->dump(); AccountState::pointer as = getAccountState(masterID);