Skip to content

Commit

Permalink
Merge pull request #491 from evoskuil/master
Browse files Browse the repository at this point in the history
Add unused/defaulted parameter to set_code(header).
  • Loading branch information
evoskuil authored Jun 12, 2024
2 parents a5d8163 + 5c8f326 commit 9f2049d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/bitcoin/database/impl/query/archive.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ code CLASS::set_code(const header& header, const chain_context& ctx,

TEMPLATE
code CLASS::set_code(header_link& out_fk, const header& header,
const chain_context& ctx, bool milestone) NOEXCEPT
const chain_context& ctx, bool milestone, bool) NOEXCEPT
{
// Map chain context into database context.
return set_code(out_fk, header, context
Expand All @@ -926,7 +926,7 @@ code CLASS::set_code(header_link& out_fk, const header& header,

TEMPLATE
code CLASS::set_code(header_link& out_fk, const header& header,
const context& ctx, bool milestone) NOEXCEPT
const context& ctx, bool milestone, bool) NOEXCEPT
{
// header.get_hash() assumes cached or is not thread safe.
const auto& key = header.get_hash();
Expand Down
4 changes: 2 additions & 2 deletions include/bitcoin/database/query.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,9 @@ class query
code set_code(const header& header, const chain_context& ctx,
bool milestone) NOEXCEPT;
code set_code(header_link& out_fk, const header& header,
const context& ctx, bool milestone) NOEXCEPT;
const context& ctx, bool milestone, bool=false) NOEXCEPT;
code set_code(header_link& out_fk, const header& header,
const chain_context& ctx, bool milestone) NOEXCEPT;
const chain_context& ctx, bool milestone, bool=false) NOEXCEPT;
header_link set_link(const header& header, const auto& ctx,
bool milestone) NOEXCEPT;

Expand Down

0 comments on commit 9f2049d

Please sign in to comment.