fix(platform-wallet): keep sync watermark monotonic#3724
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe ChangesMonotonic Sync Watermark Updates
🎯 2 (Simple) | ⏱️ ~8 minutes
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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. Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
fix(platform-wallet): keep sync watermark monotonic
Summary
Fixes the CodeRabbit feedback on #3723 by keeping
PlatformPaymentAddressProvider::update_sync_statemonotonic.An out-of-order sync result can no longer move
sync_height,sync_timestamp,or
last_known_recent_blockbackward after a newer result has already advancedthem.
Validation
cargo fmt -p platform-wallet --checkcargo test -p platform-wallet platform_addressescargo fmt --all -- --checkcargo checkorigin/feat/platform-wallet-sync-watermark-getter...fix-3723-monotonic-sync-watermark— Recommendation: ship
Summary by CodeRabbit