fix: tx block number incorrect by 1.

This commit is contained in:
moneroexamples 2017-01-22 06:47:29 +08:00
parent dd3aeca666
commit d5933100a8
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}