From 221fdbf8a88e1aebd188b75e79c8ebaefa4e72d1 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Tue, 2 Apr 2019 07:44:06 +0800 Subject: [PATCH] Fix: no viable conversion from 'cryptonote::difficulty_type https://github.com/moneroexamples/onion-monero-blockchain-explorer/issues/173 --- src/page.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/page.h b/src/page.h index 3f7d3d7..4871481 100644 --- a/src/page.h +++ b/src/page.h @@ -1291,7 +1291,8 @@ show_block(uint64_t _blk_height) // initalise page tempate map with basic info about blockchain string blk_pow_hash_str = pod_to_hex(get_block_longhash(blk, _blk_height)); - uint64_t blk_difficulty = core_storage->get_db().get_block_difficulty(_blk_height); + uint64_t blk_difficulty = core_storage->get_db() + .get_block_difficulty(_blk_height).convert_to(); mstch::map context { {"testnet" , testnet},