mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
les: new global factor key and reduced time constant
This commit is contained in:
parent
59baa07849
commit
853d3f879e
1 changed files with 2 additions and 2 deletions
|
|
@ -85,10 +85,10 @@ var (
|
||||||
const (
|
const (
|
||||||
maxCostFactor = 2 // ratio of maximum and average cost estimates
|
maxCostFactor = 2 // ratio of maximum and average cost estimates
|
||||||
gfInitWeight = time.Second * 10
|
gfInitWeight = time.Second * 10
|
||||||
gfMaxWeight = time.Hour
|
gfMaxWeight = time.Second * 1000
|
||||||
gfUsageThreshold = 0.5
|
gfUsageThreshold = 0.5
|
||||||
gfUsageTC = time.Second
|
gfUsageTC = time.Second
|
||||||
gfDbKey = "_globalCostFactor"
|
gfDbKey = "__globalCostFactor"
|
||||||
)
|
)
|
||||||
|
|
||||||
// costTracker is responsible for calculating costs and cost estimates on the
|
// costTracker is responsible for calculating costs and cost estimates on the
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue