congestion_multiplier as u64 (#267)

This commit is contained in:
Andrew Fitzgerald 2024-03-15 12:37:15 -07:00 committed by GitHub
parent 7f959509ed
commit 4425dbea91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -105,9 +105,9 @@ impl FeeStructure {
) -> u64 {
// Fee based on compute units and signatures
let congestion_multiplier = if lamports_per_signature == 0 {
0.0 // test only
0 // test only
} else {
1.0 // multiplier that has no effect
1 // multiplier that has no effect
};
self.calculate_fee_details(
@ -116,7 +116,7 @@ impl FeeStructure {
include_loaded_account_data_size_in_fee,
)
.total_fee(remove_rounding_in_fee_calculation)
.saturating_mul(congestion_multiplier as u64)
.saturating_mul(congestion_multiplier)
}
/// Calculate fee details for `SanitizedMessage`