Skip to content

Commit

Permalink
Work around macOS clang variant issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Jun 27, 2024
1 parent c98d989 commit 0b4d160
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions include/bitcoin/node/impl/chasers/chaser_organize.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,18 @@ bool CLASS::handle_event(const code&, chase event_, event_value value) NOEXCEPT
case chase::unvalid:
case chase::unconfirmable:
{
// HACK: header_t
// Roll back the candidate chain to confirmed top (via fork point).
BC_ASSERT(std::holds_alternative<header_t>(value));
POST(do_disorganize, std::get<header_t>(value));
BC_ASSERT(std::holds_alternative<uint32_t>(value));
POST(do_disorganize, std::get<uint32_t>(value));
break;
}
case chase::malleated:
{
// HACK: header_t
// Re-obtain the malleated block if it is still a candidate (virtual).
BC_ASSERT(std::holds_alternative<header_t>(value));
POST(do_malleated, std::get<header_t>(value));
BC_ASSERT(std::holds_alternative<uint32_t>(value));
POST(do_malleated, std::get<uint32_t>(value));
break;
}
case chase::stop:
Expand Down
5 changes: 3 additions & 2 deletions src/chasers/chaser_check.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ bool chaser_check::handle_event(const code&, chase event_,
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
case chase::header:
{
BC_ASSERT(std::holds_alternative<header_t>(value));
POST(do_header, std::get<header_t>(value));
// HACK: header_t
BC_ASSERT(std::holds_alternative<uint32_t>(value));
POST(do_header, std::get<uint32_t>(value));
break;
}
case chase::headers:
Expand Down
5 changes: 3 additions & 2 deletions src/chasers/chaser_template.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ bool chaser_template::handle_event(const code&, chase event_,
{
case chase::transaction:
{
BC_ASSERT(std::holds_alternative<transaction_t>(value));
POST(do_transaction, std::get<transaction_t>(value));
// HACK: transaction_t
BC_ASSERT(std::holds_alternative<uint32_t>(value));
POST(do_transaction, std::get<uint32_t>(value));
break;
}
case chase::stop:
Expand Down

0 comments on commit 0b4d160

Please sign in to comment.