Skip to content

Commit

Permalink
Use block_success in header validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Jun 3, 2024
1 parent 981c3f8 commit d657715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chain/header.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ code header::check(uint32_t timestamp_limit_seconds,
if (is_invalid_timestamp(timestamp_limit_seconds))
return error::futuristic_timestamp;

return error::success;
return error::block_success;
}

// minimum_block_version
Expand All @@ -349,7 +349,7 @@ code header::accept(const context& ctx) const NOEXCEPT
if (bits_ != ctx.work_required)
return error::incorrect_proof_of_work;

return error::success;
return error::block_success;
}

// JSON value convertors.
Expand Down

0 comments on commit d657715

Please sign in to comment.