aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-06 14:21:57 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-16 10:03:02 +0000
commit0936dae8a4efc62f4ca54c4872ee2562961372df (patch)
tree2b11fd3f791aa1edadd2508e36ac04be31cd9bfa /src
parentRevert "blockchain: simplify output distribution code" (diff)
downloadmonero-0936dae8a4efc62f4ca54c4872ee2562961372df.tar.xz
blockchain: remove "0 is height" shortcut from get_output_distribution
This prevents asking for just 0, and the RPC layer already does this
Diffstat (limited to 'src')
-rw-r--r--src/cryptonote_core/blockchain.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index 030798ad7..798f67e09 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -1823,8 +1823,6 @@ bool Blockchain::get_output_distribution(uint64_t amount, uint64_t from_height,
uint64_t db_height = m_db->height();
if (db_height == 0)
return false;
- if (to_height == 0)
- to_height = db_height - 1;
if (start_height >= db_height || to_height >= db_height)
return false;
if (amount == 0)