mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-17 15:21:30 +02:00
cleanup
This commit is contained in:
@@ -452,7 +452,6 @@ vector<shared_ptr<MoneroKeyImage>> MoneroUtils::deserializeKeyImages(const strin
|
||||
return keyImages;
|
||||
}
|
||||
|
||||
// TODO: strip newline
|
||||
string MoneroUtils::serialize(const boost::property_tree::ptree& node) {
|
||||
std::stringstream ss;
|
||||
boost::property_tree::write_json(ss, node, false);
|
||||
|
||||
@@ -774,7 +774,7 @@ namespace monero {
|
||||
crypto::secret_key recoveryKey;
|
||||
std::string language;
|
||||
bool isValid = crypto::ElectrumWords::words_to_bytes(mnemonic, recoveryKey, language);
|
||||
if (!isValid) throw runtime_error("Invalid mnemonic"); // TODO: need proper error handling
|
||||
if (!isValid) throw runtime_error("Invalid mnemonic");
|
||||
if (language == crypto::ElectrumWords::old_language_name) language = Language::English().get_language_name();
|
||||
|
||||
// initialize wallet
|
||||
|
||||
Reference in New Issue
Block a user