aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/cryptonote_core.cpp
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/cryptonote_core.cpp
parent71ac698b78acd3719d572a881c377db62c15c62f (diff)
downloadmonzero-core-b70ab128fceeeb1e193f349f6a4ebb2af4df1a8d.tar.gz
monzero-core-b70ab128fceeeb1e193f349f6a4ebb2af4df1a8d.tar.xz
monzero-core-b70ab128fceeeb1e193f349f6a4ebb2af4df1a8d.zip
rpc: fix orphan_status when getting blocks
It was always set to false, even for orphan blocks
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp
index 5294431d6..055606769 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -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