aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-01-17 22:09:39 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-03-07 18:09:31 +0000
commit9c1f970b82950ad0022c54f37d68bca3ef1392fd (patch)
treeb1f715089daf3be5d6fb72fa2087e67e5d7fa322 /src/wallet/wallet2.h
parentMerge pull request #6112 (diff)
downloadmonero-9c1f970b82950ad0022c54f37d68bca3ef1392fd.tar.xz
wallet2: remember daemon address overrides when loading a new wallet
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet2.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h
index 8f840a42d..9512e4717 100644
--- a/src/wallet/wallet2.h
+++ b/src/wallet/wallet2.h
@@ -1386,6 +1386,8 @@ private:
uint64_t credits() const { return m_rpc_payment_state.credits; }
void credit_report(uint64_t &expected_spent, uint64_t &discrepancy) const { expected_spent = m_rpc_payment_state.expected_spent; discrepancy = m_rpc_payment_state.discrepancy; }
+ static std::string get_default_daemon_address() { CRITICAL_REGION_LOCAL(default_daemon_address_lock); return default_daemon_address; }
+
private:
/*!
* \brief Stores wallet information to wallet file.
@@ -1623,6 +1625,9 @@ private:
std::unique_ptr<wallet_device_callback> m_device_callback;
ExportFormat m_export_format;
+
+ static boost::mutex default_daemon_address_lock;
+ static std::string default_daemon_address;
};
}
BOOST_CLASS_VERSION(tools::wallet2, 29)