1
0
Fork 0
forked from lthn/blockchain

fixed bug with alt-block coinage validation

This commit is contained in:
cryptozoidberg 2024-01-29 15:20:08 +01:00
parent 1be00ea3c8
commit ef3385192f
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -7655,7 +7655,7 @@ bool blockchain_storage::validate_alt_block_input(const transaction& input_tx,
uint64_t alt_bl_h = split_height + alt_chain.size() + 1;
if (m_core_runtime_config.is_hardfork_active_for_height(ZANO_HARDFORK_04_ZARCANUM, alt_bl_h))
{
if (alt_bl_h - max_related_block_height > CURRENCY_HF4_MANDATORY_MIN_COINAGE)
if (alt_bl_h - max_related_block_height < CURRENCY_HF4_MANDATORY_MIN_COINAGE)
{
LOG_ERROR("Coinage rule broken(altblock): h = " << alt_bl_h << ", max_related_block_height=" << max_related_block_height << ", tx: " << input_tx_hash);
return false;