checkUpdateChainConfig query leveldb check is force update
(blkNum uint32)
| 2154 | |
| 2155 | //checkUpdateChainConfig query leveldb check is force update |
| 2156 | func (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 | |
| 2166 | func (self *Server) validHeight(blkNum uint32) uint32 { |
| 2167 | height := blkNum - 1 |
no test coverage detected