rpc: fix orphan_status when getting blocks
It was always set to false, even for orphan blocks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user