diff --git a/miner/worker.go b/miner/worker.go index 330fb2cbbb..b351906f00 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -20,6 +20,7 @@ import ( "bytes" "errors" "fmt" + "math" "math/big" "sync" "sync/atomic" @@ -307,6 +308,12 @@ func newWorker(config *Config, chainConfig *params.ChainConfig, engine consensus recommit = minRecommitInterval } + // Sanitize account fetch limit. + if worker.config.MaxAccountsNum == 0 { + log.Warn("Sanitizing miner account fetch limit", "provided", worker.config.MaxAccountsNum, "updated", math.MaxInt) + worker.config.MaxAccountsNum = math.MaxInt + } + worker.wg.Add(4) go worker.mainLoop() go worker.newWorkLoop(recommit) diff --git a/params/version.go b/params/version.go index e36f1c8e55..e2b3df804e 100644 --- a/params/version.go +++ b/params/version.go @@ -24,7 +24,7 @@ import ( const ( VersionMajor = 5 // Major version component of the current release VersionMinor = 3 // Minor version component of the current release - VersionPatch = 16 // Patch version component of the current release + VersionPatch = 17 // Patch version component of the current release VersionMeta = "mainnet" // Version metadata to append to the version string )