From a6d79b26e449143be17866526ac1fc61e535e916 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Thu, 13 Aug 2020 19:27:31 +0200 Subject: [PATCH] Add comments Signed-off-by: Jakub Sztandera --- node/impl/full/gas.go | 1 + 1 file changed, 1 insertion(+) diff --git a/node/impl/full/gas.go b/node/impl/full/gas.go index 9f7d8907d..d501af2f7 100644 --- a/node/impl/full/gas.go +++ b/node/impl/full/gas.go @@ -138,6 +138,7 @@ func (a *GasAPI) GasEstimateGasPremium(ctx context.Context, nblocksincl uint64, } } + // add some noise to normalize behaviour of message selection const precision = 32 // mean 1, stddev 0.005 => 95% within +-1% noise := 1 + rand.NormFloat64()*0.005