Skip to content

Conversation

@lazynina
Copy link
Member

No description provided.

@lazynina lazynina requested a review from a team as a code owner July 31, 2024 21:46
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @lazynina and the rest of your teammates on Graphite Graphite

// If there are no txns in the transaction register, we simply return the minimum network fee.
// Compute the congestion threshold. If our congestion factor is 100% (or 10,000 bps),
// then congestion threshold is simply max block size * numPastBlocks
congestionThreshold := (congestionFactorBasisPoints * maxSizeOfNumBlocks) / MaxBasisPoints
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to check overflow? I think it's fine because they'll never break the uint64 right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it'll never overflow - it's safe.

@lazynina lazynina merged commit d0c6ce9 into main Aug 2, 2024
@lazynina lazynina deleted the fee-estimator-enhancements branch August 2, 2024 14:16
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.

3 participants