MCPcopy Create free account
hub / github.com/CPChain/chain / SyncMode

Method SyncMode

core/blockchain.go:295–299  ·  view source on GitHub ↗

SyncMode return syncMode

()

Source from the content-addressed store, hash-verified

293
294// SyncMode return syncMode
295func (bc *BlockChain) SyncMode() syncer.SyncMode {
296 bc.syncModeMutex.Lock()
297 defer bc.syncModeMutex.Unlock()
298 return bc.syncMode
299}
300
301func (bc *BlockChain) SetTypeMux(mux *event.TypeMux) {
302 bc.mux = mux

Callers 1

newEngineFunction · 0.80

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected