From c7af9074d2fa62ce1a811bf73af82da6908e0f2a Mon Sep 17 00:00:00 2001 From: woodser Date: Sat, 6 Jul 2019 16:21:24 -0400 Subject: [PATCH] cleanup --- src/daemon/MoneroDaemonModel.h | 2 +- src/wallet/MoneroWallet.cpp | 1 + todo.txt | 3 --- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/daemon/MoneroDaemonModel.h b/src/daemon/MoneroDaemonModel.h index ffa0fb1..9bceae1 100644 --- a/src/daemon/MoneroDaemonModel.h +++ b/src/daemon/MoneroDaemonModel.h @@ -100,7 +100,7 @@ namespace monero { */ struct MoneroRpcConnection { string uri; - string username; + string username; // todo: these should be optional string password; //MoneroRpcConnection() : uri(""), username(""), password("")) {} MoneroRpcConnection(const string& uri = "", const string& username = "", const string& password = "") : uri(uri), username(username), password(password) {} diff --git a/src/wallet/MoneroWallet.cpp b/src/wallet/MoneroWallet.cpp index 17c7b3b..f8690c0 100644 --- a/src/wallet/MoneroWallet.cpp +++ b/src/wallet/MoneroWallet.cpp @@ -867,6 +867,7 @@ namespace monero { } shared_ptr MoneroWallet::getDaemonConnection() const { + cout << "MoneroWallet::getDaemonConnection()" << endl; if (wallet2->get_daemon_address().empty()) return nullptr; shared_ptr connection = shared_ptr(new MoneroRpcConnection()); if (!wallet2->get_daemon_address().empty()) connection->uri = wallet2->get_daemon_address(); diff --git a/todo.txt b/todo.txt index c233f13..c3931f2 100644 --- a/todo.txt +++ b/todo.txt @@ -7,9 +7,6 @@ comb code todos MEDIUM PRIORITY onSyncProgress(startHeight, currentHeight, endHeight, percentDone, message)? -remove warning jstring2string -rename external-libs/monero to monero-core for clarity -cppWalletHandle, cppListenerHandle string constants in MoneroWalletJni.cpp toPropertyTree() should take node as parameter; optimize memory elsewhere (move shared_ptrs, etc) enable debug logging model accessors/mutators/chaining?