aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-01-01 18:25:57 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-01-01 18:28:01 +0000
commit634d359a84c4b8cfc30fc2aa99eaed682c7878a8 (patch)
tree07ecdafe4a8baa74a68cce568a32b23e8fdba1fb /src/cryptonote_core
parenthardfork: remove batch transactions setup (diff)
downloadmonero-634d359a84c4b8cfc30fc2aa99eaed682c7878a8.tar.xz
blockchain: use the version passed as parameter, not a new one
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/blockchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index bbac20eaa..c6fa35270 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -1199,7 +1199,7 @@ bool Blockchain::validate_miner_transaction(const block& b, size_t cumulative_bl
return false;
}
// From hard fork 2, we allow a miner to claim less block reward than is allowed, in case a miner wants less dust
- if (m_hardfork->get_current_version() < 2)
+ if (version < 2)
{
if(base_reward + fee != money_in_use)
{