mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-26 10:38:38 +01:00
cleanup
This commit is contained in:
@@ -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) {}
|
||||
|
||||
@@ -867,6 +867,7 @@ namespace monero {
|
||||
}
|
||||
|
||||
shared_ptr<MoneroRpcConnection> MoneroWallet::getDaemonConnection() const {
|
||||
cout << "MoneroWallet::getDaemonConnection()" << endl;
|
||||
if (wallet2->get_daemon_address().empty()) return nullptr;
|
||||
shared_ptr<MoneroRpcConnection> connection = shared_ptr<MoneroRpcConnection>(new MoneroRpcConnection());
|
||||
if (!wallet2->get_daemon_address().empty()) connection->uri = wallet2->get_daemon_address();
|
||||
|
||||
Reference in New Issue
Block a user