rpc: fix get_block_hashes.bin from wallet on pruned blockchain

We want to get all blocks here, even pruned ones
This commit is contained in:
moneromooo-monero 2019-04-15 12:29:47 +00:00
parent bb0ef5b1f2
commit d009f6dd61
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
4 changed files with 14 additions and 14 deletions

View file

@ -141,7 +141,7 @@ namespace rpc
auto& chain = m_core.get_blockchain_storage();
if (!chain.find_blockchain_supplement(req.known_hashes, res.hashes, res.start_height, res.current_height))
if (!chain.find_blockchain_supplement(req.known_hashes, res.hashes, res.start_height, res.current_height, false))
{
res.status = Message::STATUS_FAILED;
res.error_details = "Blockchain::find_blockchain_supplement() returned false";