rpc, wallet2: don't request unportable data

This commit is contained in:
selsta 2021-09-23 20:29:40 +02:00
parent 4de0c2b1fc
commit 267dc5a08b
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -8280,6 +8280,7 @@ void wallet2::get_outs(std::vector<std::vector<tools::wallet2::get_outs_entry>>
req_t.to_height = segregation_fork_height + 1;
req_t.cumulative = true;
req_t.binary = true;
req_t.compress = true;
{
const boost::lock_guard<boost::recursive_mutex> lock{m_daemon_rpc_mutex};