From 2d05df04fd6cd5a29144e3be7cf5e5877eacfcff Mon Sep 17 00:00:00 2001 From: pasta Date: Tue, 29 Oct 2024 13:18:47 -0500 Subject: [PATCH] refactor: use irange --- src/evo/creditpool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/evo/creditpool.cpp b/src/evo/creditpool.cpp index 424915cc1ead1..abcf72650a412 100644 --- a/src/evo/creditpool.cpp +++ b/src/evo/creditpool.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include #include @@ -164,7 +165,7 @@ CCreditPool CCreditPoolManager::ConstructCreditPool(const CBlockIndex* const blo } const CBlockIndex* distant_block_index = block_index; - for (auto i = 0; i < Params().CreditPoolPeriodBlocks(); ++i) { + for ([[maybe_unused]] auto _ : irange::range(Params().CreditPoolPeriodBlocks())) { distant_block_index = distant_block_index->pprev; if (distant_block_index == nullptr) break; }