mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 02:58:51 +00:00
Merge pull request #7740
8cea9d8
wallet: Reset RPC Pay ID on node switch (tobtoht)
This commit is contained in:
commit
2d5b8a6ff7
@ -1320,6 +1320,9 @@ bool wallet2::set_daemon(std::string daemon_address, boost::optional<epee::net_u
|
|||||||
m_trusted_daemon = trusted_daemon;
|
m_trusted_daemon = trusted_daemon;
|
||||||
if (changed)
|
if (changed)
|
||||||
{
|
{
|
||||||
|
if (!m_persistent_rpc_client_id) {
|
||||||
|
set_rpc_client_secret_key(rct::rct2sk(rct::skGen()));
|
||||||
|
}
|
||||||
m_rpc_payment_state.expected_spent = 0;
|
m_rpc_payment_state.expected_spent = 0;
|
||||||
m_rpc_payment_state.discrepancy = 0;
|
m_rpc_payment_state.discrepancy = 0;
|
||||||
m_node_rpc_proxy.invalidate();
|
m_node_rpc_proxy.invalidate();
|
||||||
|
Loading…
Reference in New Issue
Block a user