This commit is contained in:
woodser
2019-07-27 14:21:46 -04:00
parent d38052a8d4
commit 48253c2bc1
3 changed files with 13 additions and 22 deletions
+3 -3
View File
@@ -1154,7 +1154,7 @@ namespace monero {
return getAccounts(false, string(""));
}
vector<MoneroAccount> MoneroWallet::getAccounts(const bool includeSubaddresses) const {
vector<MoneroAccount> MoneroWallet::getAccounts(bool includeSubaddresses) const {
MTRACE("getAccounts(" << includeSubaddresses << ")");
throw runtime_error("Not implemented");
}
@@ -1164,7 +1164,7 @@ namespace monero {
throw runtime_error("Not implemented");
}
vector<MoneroAccount> MoneroWallet::getAccounts(const bool includeSubaddresses, const string& tag) const {
vector<MoneroAccount> MoneroWallet::getAccounts(bool includeSubaddresses, const string& tag) const {
MTRACE("getAccounts(" << includeSubaddresses << ", " << tag << ")");
// need transfers to inform if subaddresses used
@@ -1190,7 +1190,7 @@ namespace monero {
return getAccount(accountIdx, false);
}
MoneroAccount MoneroWallet::getAccount(uint32_t accountIdx, const bool includeSubaddresses) const {
MoneroAccount MoneroWallet::getAccount(uint32_t accountIdx, bool includeSubaddresses) const {
MTRACE("getAccount(" << accountIdx << ", " << includeSubaddresses << ")");
// need transfers to inform if subaddresses used
+4 -15
View File
@@ -220,9 +220,6 @@ namespace monero {
*/
void setDaemonConnection(const MoneroRpcConnection& connection);
/**
* TODO
*/
shared_ptr<MoneroRpcConnection> getDaemonConnection() const;
bool getIsConnected() const;
@@ -235,14 +232,8 @@ namespace monero {
bool getIsSynced() const;
/**
* TODO
*/
string getPath() const;
/**
* TODO
*/
MoneroNetworkType getNetworkType() const;
/**
@@ -411,7 +402,7 @@ namespace monero {
* @param accountIdx is the index of the account to get the balance of
* @return the account's balance
*/
uint64_t getBalance(uint32_t accountIdx) const; // TODO: this param should be const and others
uint64_t getBalance(uint32_t accountIdx) const;
/**
* Get a subaddress's balance.
@@ -459,7 +450,7 @@ namespace monero {
* @param includeSubaddresses specifies if subaddresses should be included
* @return List<MoneroAccount> are all accounts
*/
vector<MoneroAccount> getAccounts(const bool includeSubaddresses) const;
vector<MoneroAccount> getAccounts(bool includeSubaddresses) const;
/**
* Get accounts with a given tag.
@@ -476,7 +467,7 @@ namespace monero {
* @param tag is the tag for filtering accounts, all accounts if null
* @return List<MoneroAccount> are all accounts for the wallet with the given tag
*/
vector<MoneroAccount> getAccounts(const bool includeSubaddresses, const string& tag) const;
vector<MoneroAccount> getAccounts(bool includeSubaddresses, const string& tag) const;
/**
* Get an account without subaddress information.
@@ -493,7 +484,7 @@ namespace monero {
* @param includeSubaddresses specifies if subaddresses should be included
* @return the retrieved account
*/
MoneroAccount getAccount(const uint32_t accountIdx, const bool includeSubaddresses) const;
MoneroAccount getAccount(const uint32_t accountIdx, bool includeSubaddresses) const;
/**
* Create a new account with a label for the first subaddress.
@@ -578,8 +569,6 @@ namespace monero {
* Transactions must meet every criteria defined in the request in order to
* be returned. All filtering is optional and no filtering is applied when
* not defined.
*
* TODO: request should be const
*
* @param request filters query results (optional)
* @return wallet transactions per the request
+6 -4
View File
@@ -1,11 +1,13 @@
HIGH PRIORITY
ensure model toPropertyTrees(), etc are not unecessarily copying return objects
sign/submit tx
cpp library readme with sample code
code todos
query args should be constant
ensure model toPropertyTrees(), etc are not unecessarily copying return objects
MoneroWallet.h documentation
sample code including readme
sign/submit tx
strong vs weak references
getReserveProofAccount() jni seg fault
cleanup MoneroWallet.h/MoneroDaemon.h documentation
gen documentation
MEDIUM PRIORITY