Commit 0f3cc074 authored by mdj33's avatar mdj33 Committed by vipwzw

linter

parent ef0127f4
......@@ -241,9 +241,6 @@ func (client *commitMsgClient) checkConsensusStop(consensStopTimes uint32) uint3
}
func (client *commitMsgClient) checkAuthAccountIn() {
client.mutex.Lock()
defer client.mutex.Unlock()
nodes, err := client.getNodeGroupAddrs()
if err != nil {
return
......@@ -252,14 +249,16 @@ func (client *commitMsgClient) checkAuthAccountIn() {
//如果授权节点重新加入,需要从当前共识高度重新发送
if !client.authAccountIn && authExist {
client.mutex.Lock()
client.resetSendEnv()
client.mutex.Unlock()
}
client.authAccountIn = authExist
}
func (client *commitMsgClient) procChecks(checks *commitCheckParams) {
//checks.consensStopTimes = client.checkConsensusStop(checks.consensStopTimes)
checks.consensStopTimes = client.checkConsensusStop(checks.consensStopTimes)
client.checkAuthAccountIn()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment