From 4b32f7e943d0e111558864149beb56e8caea8bc1 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Tue, 22 Nov 2016 05:30:33 +0800 Subject: [PATCH] Use custom current blockchain height function --- src/page.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/page.h b/src/page.h index f1f48c1..dff2d18 100644 --- a/src/page.h +++ b/src/page.h @@ -725,13 +725,13 @@ namespace xmreg { //cout << "_blk_height: " << _blk_height << endl; uint64_t current_blockchain_height - = core_storage->get_current_blockchain_height(); + = xmreg::MyLMDB::get_blockchain_height(mcore->get_blkchain_path()) - 1; if (_blk_height > current_blockchain_height) { cerr << "Cant get block: " << _blk_height << " since its higher than current blockchain height" - << "i.e., " << current_blockchain_height + << " i.e., " << current_blockchain_height << endl; return fmt::format("Cant get block {:d} since its higher than current blockchain height!", _blk_height);