diff --git a/include/bitcoin/node/impl/chasers/chaser_organize.ipp b/include/bitcoin/node/impl/chasers/chaser_organize.ipp index 6486b7bf4..8804ef63f 100644 --- a/include/bitcoin/node/impl/chasers/chaser_organize.ipp +++ b/include/bitcoin/node/impl/chasers/chaser_organize.ipp @@ -20,6 +20,7 @@ #define LIBBITCOIN_NODE_CHASERS_CHASER_ORGANIZE_IPP #include +#include #include #include #include @@ -260,7 +261,7 @@ void CLASS::do_organize(typename Block::cptr block, notify(error::success, chase::regressed, branch_point); // Push stored strong headers to candidate chain. - for (const auto& link: views_reverse(store_branch)) + for (const auto& link: std::views::reverse(store_branch)) { if ((is_under_milestone(index) && !query.set_strong(link)) || !query.push_candidate(link)) @@ -274,7 +275,7 @@ void CLASS::do_organize(typename Block::cptr block, } // Store strong tree headers and push to candidate chain. - for (const auto& key: views_reverse(tree_branch)) + for (const auto& key: std::views::reverse(tree_branch)) { if ((ec = push_block(key))) { diff --git a/src/chasers/chaser_confirm.cpp b/src/chasers/chaser_confirm.cpp index 497fc2bc4..f266f8b23 100644 --- a/src/chasers/chaser_confirm.cpp +++ b/src/chasers/chaser_confirm.cpp @@ -19,6 +19,7 @@ #include #include +#include #include #include #include @@ -561,7 +562,7 @@ bool chaser_confirm::roll_back(const header_links& popped, size_t fork_point, if (!set_reorganized(query.to_confirmed(height), height)) return false; - for (const auto& fk: views_reverse(popped)) + for (const auto& fk: std::views::reverse(popped)) if (!reset_organized(fk, ++fork_point)) return false;