gas: Fix median calc

This commit is contained in:
Łukasz Magiera 2020-09-09 11:41:02 +02:00
parent 29aa972f18
commit 2aba16e2c9

View File

@ -102,8 +102,8 @@ func (a *GasAPI) GasEstimateGasPremium(ctx context.Context, nblocksincl uint64,
for _, price := range prices {
prev1, prev2 = price.price, prev1
at -= price.limit
if at > 0 {
continue
if at < 0 {
break
}
}