Skip to content

Miner.SetSyncing

NEW-ETC — no upstream or core-geth original.

File miner_pow.go
Symbol Miner.SetSyncing
Ref etc/v1.17.3-full-node

NEW-ETC. Marks the worker as syncing so it suspends sealing during downloads.

// SetSyncing sets the syncing state of the PoW worker.
// Called by the eth backend when the downloader starts/stops syncing.
func (m *Miner) SetSyncing(syncing bool) {
    if m.powWorker != nil {
        m.powWorker.syncing.Store(syncing)
    }
}

← Miner