mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1316] [CLOSED] spec: re-probe stale full chains when shorter chains pay #3377
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3377
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1316
Author: @hulkbig
Created: 10/7/2026
Status: ❌ Closed
Base:
main← Head:fix/draft-policy-stale-costs📝 Commits (2)
8e0a7b3spec: re-probe stale lookup window costs1ec9422Merge upstream main and preserve stale chain re-probes📊 Changes
2 files changed (+30 additions, -2 deletions)
View changed files
📝
src/spec/draft_policy.cpp(+6 -2)📝
src/spec/draft_policy_test.cpp(+24 -0)📄 Description
Summary
Follow-up to the upstream stale-cost fix in
48d2e6cabcand #1252.A profitable shorter chained lookup returns before the stale full-size check. Consequently, the full chain can remain permanently excluded even though the upstream policy now re-probes stale sizes in other selection paths.
This PR now contains only the remaining chain-selection correction and its regression test. Check a confident stale full size before returning the profitable shorter chain. Preserve upstream's 300-round policy, EMA, header and plain lookup behavior. The earlier 64-round/reset proposal is removed from the final diff.
Validation
Scope
Two files only. No GPU throughput/output benchmark was run, and no speedup percentage is claimed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.