mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-11 17:35:43 +00:00
fiox overflow when computing priority boost (#2587)
This commit is contained in:
committed by
Bastian Köcher
parent
a837f0f999
commit
59e433750a
@@ -38,7 +38,7 @@ where
|
||||
PriorityBoostPerMessage: Get<TransactionPriority>,
|
||||
{
|
||||
// we don't want any boost for transaction with single message => minus one
|
||||
PriorityBoostPerMessage::get().saturating_mul(messages - 1)
|
||||
PriorityBoostPerMessage::get().saturating_mul(messages.saturating_sub(1))
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "integrity-test"))]
|
||||
|
||||
Reference in New Issue
Block a user