fix: broadcast head changes only when subscribed#6759
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughThis PR introduces a shared Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
📝 Coding Plan
Comment |
bb3bf11 to
998ed48
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/utils/broadcast/tests.rs`:
- Around line 6-25: The test test_has_subscribers should assert the public
helper has_subscribers instead of inspecting tx.closed().now_or_never()
directly; replace each assertion that checks
tx.closed().now_or_never().is_none()/is_some() with the corresponding
has_subscribers(&tx) boolean check (e.g., assert!(has_subscribers(&tx)) or
assert!(!has_subscribers(&tx))) so the test verifies the has_subscribers
function contract rather than duplicating its implementation; update all four
occurrences and add any necessary use/import for has_subscribers.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 1d8ed2a1-da0f-4c22-9c65-ddd9ad65c6c7
📒 Files selected for processing (7)
src/chain/store/chain_store.rssrc/db/parity_db.rssrc/shim/executor.rssrc/state_manager/mod.rssrc/utils/broadcast/mod.rssrc/utils/broadcast/tests.rssrc/utils/mod.rs
998ed48 to
2121ef7
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files
... and 14 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Summary of changes
Changes introduced in this pull request:
Reference issue to close (if applicable)
Closes
Other information and links
Change checklist
Outside contributions
Summary by CodeRabbit
Release Notes
Performance
Tests