Skip to content

chore: fix PeerPool.get_best_height() logs - #505

Merged
xdustinface merged 1 commit into
v0.42-devfrom
chore/fix-get-best-height-log
Mar 10, 2026
Merged

xdustinface merged 1 commit into
v0.42-devfrom
chore/fix-get-best-height-log

Conversation

@xdustinface

@xdustinface xdustinface commented Mar 10, 2026 •

Copy link
Copy Markdown
Collaborator

They might not be really needed at all.. but let's make them reflect the function name properly at least.

Summary by CodeRabbit

  • Chores
    • Updated internal logging terminology for improved consistency in network operations monitoring.

@xdustinface
xdustinface requested a review from ZocoLini March 10, 2026 02:30
@coderabbitai

coderabbitai Bot commented Mar 10, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 41e0c2d6-c382-4637-ab07-c7f9eed31e84

📥 Commits

Reviewing files that changed from the base of the PR and between b1451dc and 7f8f97a.

📒 Files selected for processing (1)
  • dash-spv/src/network/pool.rs

📝 Walkthrough

Walkthrough

Log context labels in the get_best_height function were renamed from get_peer_best_height to get_best_height across multiple logging statements. This includes updates to the no-peers message, per-peer logs, and the peers-checked summary. No functional or control flow modifications.

Changes

Cohort / File(s) Summary
Log Context Renaming
dash-spv/src/network/pool.rs
Updated log context strings from get_peer_best_height to get_best_height in the function's no-peers message, per-peer log line, and final summary. Data fields and values remain unchanged.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A label's dance, from long to short,
get_peer_best_height takes its last report,
Now get_best_height shines so clear,
The logs are cleaner, nothing to fear! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: fixing log messages in the get_best_height() function to reflect the correct function name, matching the actual code changes in the PR.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/fix-get-best-height-log

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov

codecov Bot commented Mar 10, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.85%. Comparing base (b1451dc) to head (7f8f97a).
⚠️ Report is 5 commits behind head on v0.42-dev.

Files with missing lines Patch % Lines
dash-spv/src/network/pool.rs 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           v0.42-dev     #505   +/-   ##
==========================================
  Coverage      66.85%   66.85%           
==========================================
  Files            313      313           
  Lines          64775    64774    -1     
==========================================
  Hits           43306    43306           
+ Misses         21469    21468    -1     
Flag Coverage Δ *Carryforward flag
core 74.93% <ø> (ø)
dash-network 74.92% <ø> (ø) Carriedforward from b1451dc
dash-network-ffi 34.74% <ø> (ø) Carriedforward from b1451dc
dash-spv 68.21% <ø> (+0.02%) ⬆️ Carriedforward from b1451dc
dash-spv-ffi 34.74% <ø> (ø) Carriedforward from b1451dc
dashcore 74.92% <ø> (ø) Carriedforward from b1451dc
dashcore-private 74.92% <ø> (ø) Carriedforward from b1451dc
dashcore-rpc 19.92% <ø> (ø) Carriedforward from b1451dc
dashcore-rpc-json 19.92% <ø> (ø) Carriedforward from b1451dc
dashcore_hashes 74.92% <ø> (ø) Carriedforward from b1451dc
ffi 35.98% <ø> (+0.01%) ⬆️
key-wallet 65.69% <ø> (ø) Carriedforward from b1451dc
key-wallet-ffi 34.74% <ø> (ø) Carriedforward from b1451dc
key-wallet-manager 65.69% <ø> (ø) Carriedforward from b1451dc
rpc 19.92% <ø> (ø)
spv 80.95% <50.00%> (-0.01%) ⬇️
wallet 65.69% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
dash-spv/src/network/pool.rs 81.35% <50.00%> (+0.68%) ⬆️

... and 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

xdustinface added a commit that referenced this pull request Mar 10, 2026
Let's make patch coverage checks informal for now
to avoid simple changes like #505 getting blocked.

I generally think we should enforce it, but rather
after we fixed the test coverage of the repo to be
much higher than what is currently then it's less likely
for changes like this to be flagged.
xdustinface added a commit that referenced this pull request Mar 10, 2026
Let's make patch coverage checks informal for now
to avoid simple changes like #505 getting blocked.

I generally think we should enforce it, but rather
after we fixed the test coverage of the repo to be
much higher than what is currently then it's less likely
for changes like this to be flagged.
@xdustinface xdustinface reopened this Mar 10, 2026
@xdustinface
xdustinface merged commit 8150269 into v0.42-dev Mar 10, 2026
105 of 106 checks passed
@xdustinface
xdustinface deleted the chore/fix-get-best-height-log branch March 10, 2026 17:03
ZocoLini pushed a commit that referenced this pull request Mar 10, 2026
Let's make patch coverage checks informal for now
to avoid simple changes like #505 getting blocked.

I generally think we should enforce it, but rather
after we fixed the test coverage of the repo to be
much higher than what is currently then it's less likely
for changes like this to be flagged.
ZocoLini pushed a commit that referenced this pull request Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants