implement getLanguages()

This commit is contained in:
woodser
2019-07-02 08:30:53 -04:00
parent d74379af30
commit 29c6f586c1
3 changed files with 13 additions and 6 deletions
+6
View File
@@ -517,6 +517,12 @@ namespace monero {
return wallet2->get_seed_language();
}
vector<string> MoneroWallet::getLanguages() const {
vector<string> languages;
crypto::ElectrumWords::get_language_list(languages, true);
return languages;
}
// get primary address (default impl?)
string MoneroWallet::getAddress(uint32_t accountIdx, uint32_t subaddressIdx) const {
+6 -6
View File
@@ -213,12 +213,12 @@ namespace monero {
*/
string getLanguage() const;
// /**
// * Get a list of available languages for the wallet's seed.
// *
// * @return the available languages for the wallet's seed
// */
// virtual string[] getLanguages() const;
/**
* Get a list of available languages for the wallet's seed.
*
* @return the available languages for the wallet's seed
*/
vector<string> getLanguages() const;
/**
* Get the wallet's primary address.
+1
View File
@@ -1,3 +1,4 @@
wallet2 does not automatically save unlike rpc; where to invoke save and how to separate for tests?
throw MoneroErrors instead of runtime_errors
toPropertyTree() should take node as parameter; optimize memory elsewhere
cannot reconcile integrals on getTransfers() test, need to add reconcile debug info including vals and pass error message