From 52684e6a4de5e46f30e352b2ca39c1601ed95e73 Mon Sep 17 00:00:00 2001 From: Shashank Date: Thu, 13 Aug 2026 07:08:26 +0530 Subject: [PATCH] fix --- CHANGELOG.md | 2 ++ src/tool/offline_server/server.rs | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 45ac5b99b0b..23bdcd36735 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -51,6 +51,8 @@ - [#7366](https://github.com/ChainSafe/forest/issues/7366): `forest-cli sync wait -w` no longer leaves a stale `Status:` line behind on each refresh when the report wraps onto more terminal rows than it has lines. +- [#7480](https://github.com/ChainSafe/forest/pull/7480): `forest-tool api serve --index-backfill-epochs N` now backfills N epochs below the chain head. Previously the chain head consumed one of the requested epochs, so only N-1 were indexed. + ## Forest v0.35.0 "Shravan" Non-mandatory release for all node operators. It includes some fixes and improvements, notably around state-related RPC. Note that this release contains breaking changes, so please read the changelog carefully before upgrading. diff --git a/src/tool/offline_server/server.rs b/src/tool/offline_server/server.rs index ad41405a5ef..0c2d3680413 100644 --- a/src/tool/offline_server/server.rs +++ b/src/tool/offline_server/server.rs @@ -192,7 +192,8 @@ pub async fn start_offline_server( backfill_db( state_manager, &head_ts, - RangeSpec::NumTipsets(index_backfill_epochs), + // The walk includes the head, so add one to keep it from counting. + RangeSpec::NumTipsets(index_backfill_epochs.saturating_add(1)), ) .await?; }