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 -1
View File
@@ -197,10 +197,11 @@ namespace cryptonote
*
* @param h the hash to look for
* @param blk return-by-reference variable to put result block in
* @param orphan if non-NULL, will be set to true if not in the main chain, false otherwise
*
* @return true if the block was found, else false
*/
bool get_block_by_hash(const crypto::hash &h, block &blk) const;
bool get_block_by_hash(const crypto::hash &h, block &blk, bool *orphan = NULL) const;
/**
* @brief get all block hashes (main chain, alt chains, and invalid blocks)