diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-10-15 19:16:13 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-11-01 18:59:41 +0000 |
| commit | e1083302489810562e8c9f19a4d2528ea9dd501d (patch) | |
| tree | 7252c6e1b98427c7728f0c293b2ba954b886a9a6 /src/wallet/node_rpc_proxy.h | |
| parent | 5956beaa15161c3993f38c314a10633d679f0eb8 (diff) | |
| download | monzero-core-e1083302489810562e8c9f19a4d2528ea9dd501d.tar.gz monzero-core-e1083302489810562e8c9f19a4d2528ea9dd501d.tar.xz monzero-core-e1083302489810562e8c9f19a4d2528ea9dd501d.zip | |
wallet: reuse cached height when set after refresh
Refreshing sets cached height, which is otherwise got by calling
get_info. Since get_info is called upon needing to display a prompt
after a command has finished, it can be used to determine how much
time a given command took to run if the cache timeout lapses while
the command runs. Refreshing caches the height as a side effect, so
get_info will never be called as a result of displaying a prompt
after refreshing (and potentially leaking how much time it took to
process a set of transactions, therefore leaking whether we got
some monero in them).
Diffstat (limited to 'src/wallet/node_rpc_proxy.h')
| -rw-r--r-- | src/wallet/node_rpc_proxy.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/node_rpc_proxy.h b/src/wallet/node_rpc_proxy.h index a9d8167ac..65ca40640 100644 --- a/src/wallet/node_rpc_proxy.h +++ b/src/wallet/node_rpc_proxy.h @@ -97,6 +97,7 @@ private: crypto::hash m_rpc_payment_seed_hash; crypto::hash m_rpc_payment_next_seed_hash; uint32_t m_rpc_payment_cookie; + time_t m_height_time; }; } |
