mirror of
https://github.com/monero-project/monero.git
synced 2025-10-12 16:30:39 -04:00
wallet api: Remove initAsync() and don't start refresh automatically on init
This commit is contained in:
parent
031b060af0
commit
805625b541
3 changed files with 6 additions and 31 deletions
|
@ -515,7 +515,6 @@ bool WalletImpl::recover(const std::string &path, const std::string &seed)
|
|||
try {
|
||||
m_wallet->set_seed_language(old_language);
|
||||
m_wallet->generate(path, "", recovery_key, true, false);
|
||||
// TODO: wallet->init(daemon_address);
|
||||
|
||||
} catch (const std::exception &e) {
|
||||
m_status = Status_Critical;
|
||||
|
@ -646,19 +645,7 @@ string WalletImpl::keysFilename() const
|
|||
bool WalletImpl::init(const std::string &daemon_address, uint64_t upper_transaction_size_limit)
|
||||
{
|
||||
clearStatus();
|
||||
if (!doInit(daemon_address, upper_transaction_size_limit))
|
||||
return false;
|
||||
bool result = this->refresh();
|
||||
// enabling background refresh thread
|
||||
startRefresh();
|
||||
return result;
|
||||
}
|
||||
|
||||
void WalletImpl::initAsync(const string &daemon_address, uint64_t upper_transaction_size_limit)
|
||||
{
|
||||
clearStatus();
|
||||
doInit(daemon_address, upper_transaction_size_limit);
|
||||
startRefresh();
|
||||
return doInit(daemon_address, upper_transaction_size_limit);
|
||||
}
|
||||
|
||||
void WalletImpl::setRefreshFromBlockHeight(uint64_t refresh_from_block_height)
|
||||
|
|
|
@ -78,8 +78,7 @@ public:
|
|||
bool store(const std::string &path);
|
||||
std::string filename() const;
|
||||
std::string keysFilename() const;
|
||||
bool init(const std::string &daemon_address, uint64_t upper_transaction_size_limit);
|
||||
void initAsync(const std::string &daemon_address, uint64_t upper_transaction_size_limit);
|
||||
bool init(const std::string &daemon_address, uint64_t upper_transaction_size_limit = 0);
|
||||
bool connectToDaemon();
|
||||
ConnectionStatus connected() const;
|
||||
void setTrustedDaemon(bool arg);
|
||||
|
@ -135,7 +134,6 @@ private:
|
|||
bool isNewWallet() const;
|
||||
bool doInit(const std::string &daemon_address, uint64_t upper_transaction_size_limit);
|
||||
|
||||
|
||||
private:
|
||||
friend class PendingTransactionImpl;
|
||||
friend class UnsignedTransactionImpl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue