diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-10-15 18:35:11 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-11-01 19:00:19 +0000 |
commit | f98d9673ebd7a088ff5364416cc3441118432eb5 (patch) | |
tree | e84cd9a3dc44cf1ea3063ddce6bdd314c09d1dfc /src/wallet | |
parent | wallet: fix another facet of "did I get some monero" information leak (diff) | |
download | monero-f98d9673ebd7a088ff5364416cc3441118432eb5.tar.xz |
wallet2: fix is_synced checking target height, not height
Target height would be appropriate for the daemon, which syncs
off other daemons, but the wallet syncs off the daemon it's
connected to, and its target is the daemon's current height.
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/wallet2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index b23e8525b..7f8b48b8d 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -13212,7 +13212,7 @@ uint64_t wallet2::get_blockchain_height_by_date(uint16_t year, uint8_t month, ui bool wallet2::is_synced() { uint64_t height; - boost::optional<std::string> result = m_node_rpc_proxy.get_target_height(height); + boost::optional<std::string> result = m_node_rpc_proxy.get_height(height); if (result && *result != CORE_RPC_STATUS_OK) return false; return get_blockchain_current_height() >= height; |