aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-01-22 12:20:55 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-01-22 12:20:55 +0000
commitb70ab128fceeeb1e193f349f6a4ebb2af4df1a8d (patch)
treeb2a140bd109a96c7e73240adfc024cff69064d58 /src/cryptonote_core/blockchain.h
parentMerge pull request #1585 (diff)
downloadmonero-b70ab128fceeeb1e193f349f6a4ebb2af4df1a8d.tar.xz
rpc: fix orphan_status when getting blocks
It was always set to false, even for orphan blocks
Diffstat (limited to 'src/cryptonote_core/blockchain.h')
-rw-r--r--src/cryptonote_core/blockchain.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.h b/src/cryptonote_core/blockchain.h
index 245dc6e73..ca665e1d4 100644
--- a/src/cryptonote_core/blockchain.h
+++ b/src/cryptonote_core/blockchain.h
@@ -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)