fix: reset cached height after blockchain recovery clear - #225
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe wallet refresh hash-chain reset now assigns ChangesWallet refresh
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to Wallet refresh recovery now realigns cached height with the rebuilt blockchain size, preventing stale height use after a recovery clear. No current merge-blocking risk remains. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit watched the chain reset Comment |
Reset
m_cached_heightfrom the cleared blockchain size before validation checks, preventing stale pre-recovery height from being used if recovery exits early with an exception.