From 5c8f326f2d61b9334c1b358b4a2f710f12f6f277 Mon Sep 17 00:00:00 2001 From: evoskuil Date: Wed, 12 Jun 2024 19:12:27 -0400 Subject: [PATCH] Add unused/defaulted parameter to set_code(header). --- include/bitcoin/database/impl/query/archive.ipp | 4 ++-- include/bitcoin/database/query.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/bitcoin/database/impl/query/archive.ipp b/include/bitcoin/database/impl/query/archive.ipp index 9e110337..17000465 100644 --- a/include/bitcoin/database/impl/query/archive.ipp +++ b/include/bitcoin/database/impl/query/archive.ipp @@ -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 @@ -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(); diff --git a/include/bitcoin/database/query.hpp b/include/bitcoin/database/query.hpp index e27eeeb6..3dd677d9 100644 --- a/include/bitcoin/database/query.hpp +++ b/include/bitcoin/database/query.hpp @@ -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;