wallet_rpc_server: add all field to export_key_images

To use if you want all key images, not just the ones for
recently imported outputs
This commit is contained in:
moneromooo-monero 2018-12-24 12:58:25 +00:00
parent ed54ac8fdf
commit d7354c7864
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
4 changed files with 12 additions and 6 deletions

View file

@ -2495,7 +2495,7 @@ namespace tools
if (!m_wallet) return not_open(er);
try
{
std::pair<size_t, std::vector<std::pair<crypto::key_image, crypto::signature>>> ski = m_wallet->export_key_images();
std::pair<size_t, std::vector<std::pair<crypto::key_image, crypto::signature>>> ski = m_wallet->export_key_images(req.all);
res.offset = ski.first;
res.signed_key_images.resize(ski.second.size());
for (size_t n = 0; n < ski.second.size(); ++n)