aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities/blockchain_depth.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-10-22 16:03:57 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-10-22 16:04:28 +0000
commitcb4aafd27ebe452ca49aa5142520a40064c2fcca (patch)
treec9f7257e912841c8700738ab6f74efbc4a319d91 /src/blockchain_utilities/blockchain_depth.cpp
parentMerge pull request #4524 (diff)
downloadmonero-cb4aafd27ebe452ca49aa5142520a40064c2fcca.tar.xz
blockchain_utilities: simplify getting block blob from height
Diffstat (limited to 'src/blockchain_utilities/blockchain_depth.cpp')
-rw-r--r--src/blockchain_utilities/blockchain_depth.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/blockchain_utilities/blockchain_depth.cpp b/src/blockchain_utilities/blockchain_depth.cpp
index dd2387e5b..8060b0de4 100644
--- a/src/blockchain_utilities/blockchain_depth.cpp
+++ b/src/blockchain_utilities/blockchain_depth.cpp
@@ -187,8 +187,7 @@ int main(int argc, char* argv[])
}
else
{
- const crypto::hash block_hash = db->get_block_hash_from_height(opt_height);
- const cryptonote::blobdata bd = db->get_block_blob(block_hash);
+ const cryptonote::blobdata bd = db->get_block_blob_from_height(opt_height);
cryptonote::block b;
if (!cryptonote::parse_and_validate_block_from_blob(bd, b))
{