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
This commit is contained in:
moneromooo-monero 2019-10-26 08:19:04 +00:00
parent d0faae2a92
commit 054b2621b1
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -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)