docs: clarify observed block time#7373
Conversation
|
This pull request has conflicts, please rebase. |
✅ No Merge Conflicts DetectedThis PR currently has no conflicts with other open PRs. |
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
Note on |
|
✅ Review complete (commit 4d98bfc) |
|
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 (3)
WalkthroughThree comment-only edits document the DarkGravityWave off-by-one spacing behavior. Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
thepastaclaw
left a comment
There was a problem hiding this comment.
Code Review
Comments-only documentation clarification accurately describing the consensus-critical DGW off-by-one (nActualTimespan covers nPastBlocks-1 intervals vs nTargetTimespan's nPastBlocks). Verified against pow.cpp: the loop walks pindex back 23 times for 24 sampled blocks, matching the new comment. No code behavior changes; wording correctly warns the off-by-one is consensus-critical. Ready to merge.
Note: posted as a COMMENT review because GitHub does not allow approving my own PR.
Issue being fixed or feature implemented
Clarifies that Dash Core's
nPowTargetSpacingis the nominal consensus targetspacing, not an exact wall-clock estimate for user-facing ETAs. Mainnet's
observed spacing is about 2.626 min/block because DarkGravityWave preserves a
historical off-by-one interval count.
What was done?
of the preserved off-by-one behavior.
nPowTargetSpacingas a nominal consensus target, not an exact ETAvalue.
instead of saying blocks are exactly 2.5 minutes.
No code behavior changes are included.
How Has This Been Tested?
git diff --check upstream/develop..HEADfor all changed files and comparing the remaining code.
code-review dashpay/dash upstream/develop docs/clarify-observed-block-time "Pre-PR review: clarify that nPowTargetSpacing is nominal while observed mainnet block spacing is about 2.626 min/block due to DarkGravityWave historical off-by-one; comments only, no code changes"→ shipRuntime tests were not run because this is a comments-only change.
Breaking Changes
None.
Checklist: