Skip to content

Commit

Permalink
wallet_api: fixups to build on the branch
Browse files Browse the repository at this point in the history
  • Loading branch information
moneromooo-monero committed Jul 4, 2018
1 parent 8fb50b7 commit e93058b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/wallet/api/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,8 @@ bool WalletImpl::recoverFromDevice(const std::string &path, const std::string &p
LOG_PRINT_L1("Generated new wallet from device: " + device_name);
}
catch (const std::exception& e) {
setStatusError(string(tr("failed to generate new wallet: ")) + e.what());
m_errorString = string(tr("failed to generate new wallet: ")) + e.what();
m_status = Status_Error;
return false;
}
return true;
Expand Down
4 changes: 2 additions & 2 deletions src/wallet/api/wallet.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ class WalletImpl : public Wallet
void setRefreshFromBlockHeight(uint64_t refresh_from_block_height);
uint64_t getRefreshFromBlockHeight() const { return m_wallet->get_refresh_from_block_height(); };
void setRecoveringFromSeed(bool recoveringFromSeed);
void setRecoveringFromDevice(bool recoveringFromDevice) override;
void setSubaddressLookahead(uint32_t major, uint32_t minor) override;
void setRecoveringFromDevice(bool recoveringFromDevice);
void setSubaddressLookahead(uint32_t major, uint32_t minor);
bool watchOnly() const;
bool rescanSpent();
NetworkType nettype() const {return static_cast<NetworkType>(m_wallet->nettype());}
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/api/wallet_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class WalletManagerImpl : public WalletManager
NetworkType nettype,
const std::string &deviceName,
uint64_t restoreHeight = 0,
const std::string &subaddressLookahead = "") override;
const std::string &subaddressLookahead = "");
virtual bool closeWallet(Wallet *wallet, bool store = true);
bool walletExists(const std::string &path);
bool verifyWalletPassword(const std::string &keys_file_name, const std::string &password, bool no_spend_key) const;
Expand Down

0 comments on commit e93058b

Please sign in to comment.