blockchain: use the version passed as parameter, not a new one

release-v0.5.0
moneromooo-monero 5 years ago committed by wowario
parent d50f2f5ac1
commit b0fda7c551
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111

@ -1207,7 +1207,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)
{

Loading…
Cancel
Save