From d5933100a81506e3788f4ccdbf327f6d247b62e0 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Sun, 22 Jan 2017 06:47:29 +0800 Subject: [PATCH] fix: tx block number incorrect by 1. --- src/page.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/page.h b/src/page.h index e13495a..05aa3d8 100644 --- a/src/page.h +++ b/src/page.h @@ -3935,7 +3935,9 @@ private: if (core_storage->have_tx(tx_hash)) { - tx_blk_height = core_storage->get_db().get_tx_block_height(tx_hash); + // currently get_tx_block_height seems to return a block hight + // +1. Before it was not like this. + tx_blk_height = core_storage->get_db().get_tx_block_height(tx_hash) - 1; tx_blk_found = true; }