Skip to content

Commit

Permalink
Fix comparing
Browse files Browse the repository at this point in the history
Signed-off-by: Danil Lugovskoy <[email protected]>
  • Loading branch information
Deniallugo committed Dec 9, 2020
1 parent d178552 commit 35cf7b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/bin/zksync_eth_sender/src/gas_adjuster/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ impl GasStatistics {
}

pub fn get_average_price(&self) -> Option<U256> {
if self.samples.len() >= Self::GAS_PRICE_SAMPLES_AMOUNT {
if self.samples.len() < Self::GAS_PRICE_SAMPLES_AMOUNT {
None
} else {
Some(self.current_sum / Self::GAS_PRICE_SAMPLES_AMOUNT)
Expand Down

0 comments on commit 35cf7b7

Please sign in to comment.