//remove fail, set the preMainBlockHash to nil, to match nothing, force to search again
//remove fail, the para chain may be remove part, set the preMainBlockHash to nil, to match nothing, force to search from last
err=client.removeBlocks(height)
iferr!=nil{
*preMainBlockHash=nil
return
returncurrSeq,nil,nil
}
*currSeq=mainSeq+1
*preMainBlockHash=miner.MainBlockHash
plog.Info("switchHashMatchedBlock succ","currHeight",height,"initHeight",lastBlock.Height,"set new currSeq",*currSeq,"new preMainBlockHash",common.Bytes2Hex(*preMainBlockHash))
return
plog.Info("switchHashMatchedBlock succ","currHeight",height,"initHeight",lastBlock.Height,"set new currSeq",currSeq,"new preMainBlockHash",common.Bytes2Hex(preMainBlockHash))