mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
fix: disable commitNewWork on follower nodes (#472)
fix: disable mining on follower nodes
This commit is contained in:
parent
b2bd2838ac
commit
ad4ddbf60f
2 changed files with 5 additions and 1 deletions
|
|
@ -1159,6 +1159,10 @@ func (w *worker) commitNewWork(interrupt *int32, noempty bool, timestamp int64)
|
|||
w.mu.RLock()
|
||||
defer w.mu.RUnlock()
|
||||
|
||||
if !w.isRunning() {
|
||||
return
|
||||
}
|
||||
|
||||
tstart := time.Now()
|
||||
parent := w.chain.CurrentBlock()
|
||||
w.circuitCapacityChecker.Reset()
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import (
|
|||
const (
|
||||
VersionMajor = 4 // Major version component of the current release
|
||||
VersionMinor = 3 // Minor version component of the current release
|
||||
VersionPatch = 40 // Patch version component of the current release
|
||||
VersionPatch = 41 // Patch version component of the current release
|
||||
VersionMeta = "sepolia" // Version metadata to append to the version string
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue