mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-18 23:58:59 +02:00
scratchpad block commented;
defined getDaemonConnection()
This commit is contained in:
@@ -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
|
||||
########################
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user