Repository navigation
mempool: price fee flow on the 0.1 sat/vB grid - #974
Merged
Merged
Conversation
Admit-rate buckets through 10 sat/vB now match the quote ladder, so a 1.5 sat/vB inflow no longer prices as 1.0 and a 4.9 sat/vB inflow no longer prices as 2.0. The inclusion search reads one suffix sum of those buckets.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The 1-block fee quote searches a 0.1 sat/vB ladder, but admit flow was stored in wide buckets (1–2, 2–5, …). With an underfull pool the search could only land on a bucket floor, so a 1.5 sat/vB inflow quoted 1.0 and a 4.9 sat/vB inflow quoted 2.0.
Flow buckets now use that same ladder through 10 sat/vB, then 20, 50, and 100 sat/vB, plus an open top. The inclusion search reads one suffix sum of those buckets instead of rescanning them per candidate.
Test
point_mass_quotes_its_own_tenthputs an overflowing inflow at 1.5 and at 4.9 sat/vB and requires the quote to be that step, not the old coarse floor.