From 267dc5a08ba4e362cb22f4b0aabde92eea92339a Mon Sep 17 00:00:00 2001 From: selsta Date: Thu, 23 Sep 2021 20:29:40 +0200 Subject: [PATCH] rpc, wallet2: don't request unportable data --- src/rpc/core_rpc_server.cpp | 4 ++-- src/wallet/wallet2.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index 942bfce0a2..a0d6f60f1d 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -3171,7 +3171,7 @@ namespace cryptonote return false; } - res.distributions.push_back({std::move(*data), amount, "", req.binary, req.compress}); + res.distributions.push_back({std::move(*data), amount, req.binary, true}); } } catch (const std::exception &e) @@ -3218,7 +3218,7 @@ namespace cryptonote return true; } - res.distributions.push_back({std::move(*data), amount, "", req.binary, req.compress}); + res.distributions.push_back({std::move(*data), amount, req.binary, true}); } } catch (const std::exception &e) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 5a4cafc328..cdca120f7a 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -8280,6 +8280,7 @@ void wallet2::get_outs(std::vector> req_t.to_height = segregation_fork_height + 1; req_t.cumulative = true; req_t.binary = true; + req_t.compress = true; { const boost::lock_guard lock{m_daemon_rpc_mutex};