diff options
author | luigi1111 <luigi1111w@gmail.com> | 2022-01-24 15:10:55 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2022-01-24 15:10:55 -0500 |
commit | 5283cf51ef2ed0e06416b5c4a53b9b3942042c7e (patch) | |
tree | 293be1167357b13deaf6b567938fdb4024d6e138 /src | |
parent | Merge pull request #8041 (diff) | |
parent | Avoid unnecessary 'Invalid hashing blob' error message (diff) | |
download | monero-5283cf51ef2ed0e06416b5c4a53b9b3942042c7e.tar.xz |
Merge pull request #8044
a02b342 Avoid unnecessary 'Invalid hashing blob' error message (rbrunner7)
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/node_rpc_proxy.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wallet/node_rpc_proxy.cpp b/src/wallet/node_rpc_proxy.cpp index a576c267c..148f957eb 100644 --- a/src/wallet/node_rpc_proxy.cpp +++ b/src/wallet/node_rpc_proxy.cpp @@ -306,7 +306,12 @@ boost::optional<std::string> NodeRPCProxy::get_rpc_payment_info(bool mining, boo m_rpc_payment_seed_height = resp_t.seed_height; m_rpc_payment_cookie = resp_t.cookie; - if (!epee::string_tools::parse_hexstr_to_binbuff(resp_t.hashing_blob, m_rpc_payment_blob) || m_rpc_payment_blob.size() < 43) + if (m_rpc_payment_diff == 0) + { + // If no payment required daemon doesn't give us back a hashing blob + m_rpc_payment_blob.clear(); + } + else if (!epee::string_tools::parse_hexstr_to_binbuff(resp_t.hashing_blob, m_rpc_payment_blob) || m_rpc_payment_blob.size() < 43) { MERROR("Invalid hashing blob: " << resp_t.hashing_blob); return std::string("Invalid hashing blob"); |