[CHIA-4002] Fix off by one in cleanup (Thanks roopd3v) (#20993)

* fix off by one in cleanup

* ruff
This commit is contained in:
wjblanke
2026-06-11 10:24:03 +01:00
committed by GitHub
parent af81194343
commit 7eef85c3a7
+1 -1
View File
@@ -1373,7 +1373,7 @@ class WalletNode:
await self.add_states_from_peer(list(race_cache), peer)
# Clear old entries that are no longer relevant
cache.cleanup_race_cache(min_height=backtrack_fork_height)
cache.cleanup_race_cache(min_height=backtrack_fork_height + 1)
self.wallet_state_manager.state_changed("new_block")
self.log.info(f"Finished processing new peak of {new_peak_hb.height}")