diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-10-26 08:19:04 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-11-27 19:52:37 +0000 |
| commit | 054b2621b1c8621afc3682b358bd02301d3aa2ea (patch) | |
| tree | a15610ea90d5d6bcbbce9dfdc413a9f02a43476c /src/wallet/node_rpc_proxy.cpp | |
| parent | d0faae2a922effe64706aae95a095d39c9c3e3ee (diff) | |
| download | monzero-core-054b2621b1c8621afc3682b358bd02301d3aa2ea.tar.gz monzero-core-054b2621b1c8621afc3682b358bd02301d3aa2ea.tar.xz monzero-core-054b2621b1c8621afc3682b358bd02301d3aa2ea.zip | |
node_rpc_proxy: init some new rpc payment fields in invalidate
The cache time would take care of these, but it's cleaner that way
Coverity 205412
Diffstat (limited to 'src/wallet/node_rpc_proxy.cpp')
| -rw-r--r-- | src/wallet/node_rpc_proxy.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/node_rpc_proxy.cpp b/src/wallet/node_rpc_proxy.cpp index 005b0bafa..f3698b599 100644 --- a/src/wallet/node_rpc_proxy.cpp +++ b/src/wallet/node_rpc_proxy.cpp @@ -78,6 +78,10 @@ void NodeRPCProxy::invalidate() m_rpc_payment_seed_hash = crypto::null_hash; m_rpc_payment_next_seed_hash = crypto::null_hash; m_height_time = 0; + m_rpc_payment_diff = 0; + m_rpc_payment_credits_per_hash_found = 0; + m_rpc_payment_height = 0; + m_rpc_payment_cookie = 0; } boost::optional<std::string> NodeRPCProxy::get_rpc_version(uint32_t &rpc_version) |
