node의 validator key, address 등을 확인
if cs.privValidator == nil { return nil }
if cs.privValidator == nil { return nil }
if !cs.Validators.HasAddress(cs.privValidatorPubKey.Address()) { return nil }
vote에 서명 후, 문제가 없다면 vote 인스턴스 리턴
vote, err := cs.signVote(msgType, hash, header)
// 문제가 없다면 메시지를 송신, vote 인스턴스 리턴
if err == nil {
// 이 internal message를 통해 다음 step에 필요한 함수 호출
cs.sendInternalMessage(msgInfo{&VoteMessage{vote}, ""})
return vote
}
return nil