MCPcopy Create free account
hub / github.com/DNAProject/DNA / checkUpdateChainConfig

Method checkUpdateChainConfig

consensus/vbft/service.go:2156–2164  ·  view source on GitHub ↗

checkUpdateChainConfig query leveldb check is force update

(blkNum uint32)

Source from the content-addressed store, hash-verified

2154
2155//checkUpdateChainConfig query leveldb check is force update
2156func (self *Server) checkUpdateChainConfig(blkNum uint32) bool {
2157 force, err := isUpdate(self.blockPool.getExecWriteSet(blkNum-1), self.config.View)
2158 if err != nil {
2159 log.Errorf("checkUpdateChainConfig err:%s", err)
2160 return false
2161 }
2162 log.Debugf("checkUpdateChainConfig force: %v", force)
2163 return force
2164}
2165
2166func (self *Server) validHeight(blkNum uint32) uint32 {
2167 height := blkNum - 1

Callers 2

makeProposalMethod · 0.95

Calls 4

ErrorfFunction · 0.92
DebugfFunction · 0.92
isUpdateFunction · 0.85
getExecWriteSetMethod · 0.45

Tested by

no test coverage detected