scratchpad block commented;

defined getDaemonConnection()
This commit is contained in:
woodser
2019-05-27 13:53:17 -04:00
parent 68a6f3868b
commit 1c145b3c29
3 changed files with 12 additions and 4 deletions
+4
View File
@@ -235,6 +235,8 @@ set_target_properties(version PROPERTIES IMPORTED_LOCATION
# Build C++ scratchpad
########################
#[[ --- START BLOCK COMMENT ---
set(
SCRATCHPAD_SRC_FILES
test/Scratchpad.cpp
@@ -286,6 +288,8 @@ target_link_libraries(scratchpad
${EXTRA_LIBRARIES}
)
]] # --- END BLOCK COMMENT ---
########################
# Build c++ library
########################
+4
View File
@@ -58,6 +58,10 @@ void MoneroWallet::setDaemonConnection(const string& uri, const string& username
wallet2->set_daemon(uri, login, isTrusted);
}
MoneroRpcConnection MoneroWallet::getDaemonConnection() {
throw runtime_error("ready to implement getDaemonConnection()");
}
MoneroNetworkType MoneroWallet::getNetworkType() {
return static_cast<MoneroNetworkType>(wallet2->nettype());
}
+4 -4
View File
@@ -73,20 +73,20 @@ using namespace crypto;
*/
~MoneroWallet();
// ------------ WALLET METHODS SPECIFIC TO JNI IMPLEMENTATION ---------------
/**
* Set the wallet's daemon connection.
*
* TODO: switch to MoneroNetworkType
*
* @param uri is the daemon's URI
* @param username is the daemon's username
* @param password is the daemon's password
*/
void setDaemonConnection(const string& uri, const string& username, const epee::wipeable_string& password);
MoneroNetworkType getNetworkType();
MoneroRpcConnection getDaemonConnection();
// -------------------------- COMMON WALLET METHODS -------------------------
MoneroNetworkType getNetworkType();
// /**
// * Get the wallet's seed.