Merge branch 'production'

This commit is contained in:
GroovieGermanikus 2024-03-08 07:08:05 +01:00
commit 14c136cacd
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ pub fn calculate_supp_percentiles(
.map(|p| {
let prio_fee = {
let index = prio_fees_in_block.len() * p / 100;
let cap_index = index.min(prio_fees_in_block.len() - 1);
let cap_index = index.min(prio_fees_in_block.len().saturating_sub(1));
prio_fees_in_block[cap_index].priority
};
FeePoint {