1
0
Fork 0
forked from lthn/blockchain

limited BLOCKCHAIN_HEIGHT_FOR_POS_STRICT_SEQUENCE_LIMITATION work until hard fork 1

This commit is contained in:
cryptozoidberg 2019-08-14 15:35:29 +02:00
parent d218716983
commit c49e24007a
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -1610,7 +1610,7 @@ bool blockchain_storage::handle_alternative_block(const block& b, const crypto::
if (abei.height >= m_core_runtime_config.pos_minimum_heigh)
cumulative_diff_delta = correct_difficulty_with_sequence_factor(sequence_factor, cumulative_diff_delta);
if (abei.height > BLOCKCHAIN_HEIGHT_FOR_POS_STRICT_SEQUENCE_LIMITATION && pos_block && sequence_factor > BLOCK_POS_STRICT_SEQUENCE_LIMIT)
if (abei.height > BLOCKCHAIN_HEIGHT_FOR_POS_STRICT_SEQUENCE_LIMITATION && abei.height <= m_core_runtime_config.hard_fork1_starts_after_height && pos_block && sequence_factor > BLOCK_POS_STRICT_SEQUENCE_LIMIT)
{
LOG_PRINT_RED_L0("Alternative block " << id << " @ " << abei.height << " has too big sequence factor: " << sequence_factor << ", rejected");
bvc.m_verification_failed = true;