Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/chasers/chaser_block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ code chaser_block::validate(const block& block,

// header.accept is never bypassed.
// block.accept does not invoke header.accept.
if ((ec = header.accept(ctx)))
if ((ec = header.accept(ctx,
setting.retargeting_interval())))
return ec;

if (is_under_checkpoint(state.height()))
Expand Down
3 changes: 2 additions & 1 deletion src/chasers/chaser_header.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ code chaser_header::validate(const header& header,
return ec;

// header.accept is never bypassed.
if (const auto ec = header.accept(state.context()))
if (const auto ec = header.accept(state.context(),
settings().retargeting_interval()))
return ec;

// This prevents a long unconfirmable header chain with an early
Expand Down
Loading