rpc: fix orphan_status when getting blocks

It was always set to false, even for orphan blocks
This commit is contained in:
moneromooo-monero
2017-01-22 12:20:55 +00:00
parent 71ac698b78
commit b70ab128fc
5 changed files with 16 additions and 9 deletions
+2 -2
View File
@@ -977,9 +977,9 @@ namespace cryptonote
return m_blockchain_storage.get_block_id_by_height(height);
}
//-----------------------------------------------------------------------------------------------
bool core::get_block_by_hash(const crypto::hash &h, block &blk) const
bool core::get_block_by_hash(const crypto::hash &h, block &blk, bool *orphan) const
{
return m_blockchain_storage.get_block_by_hash(h, blk);
return m_blockchain_storage.get_block_by_hash(h, blk, orphan);
}
//-----------------------------------------------------------------------------------------------
std::string core::print_pool(bool short_format) const