Skip to content

Commit

Permalink
Request bip9 chain_state at target heights.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Mar 16, 2024
1 parent b8fbffd commit 65f834f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/chain/chain_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,17 +427,17 @@ size_t chain_state::bip9_bit0_height(size_t height,
{
const auto activation_height = bip9_bit0_active_checkpoint.height();

// Require bip9_bit0 hash at heights above historical bip9_bit0 activation.
return height > activation_height ? activation_height : map::unrequested;
// Require bip9_bit0 hash at heights at/above bip9_bit0 activation.
return height >= activation_height ? activation_height : map::unrequested;
}

size_t chain_state::bip9_bit1_height(size_t height,
const checkpoint& bip9_bit1_active_checkpoint) NOEXCEPT
{
const auto activation_height = bip9_bit1_active_checkpoint.height();

// Require bip9_bit1 hash at heights above historical bip9_bit1 activation.
return height > activation_height ? activation_height : map::unrequested;
// Require bip9_bit1 hash at heights at/above bip9_bit1 activation.
return height >= activation_height ? activation_height : map::unrequested;
}

// Public static
Expand Down

0 comments on commit 65f834f

Please sign in to comment.