Add a getter for handshake msgIdx (#27)

This commit is contained in:
Nathan Brown 2018-03-08 12:40:28 -08:00 committed by Jonathan Rudenberg
parent 01638cb52d
commit 953535c65f

View File

@ -490,3 +490,8 @@ func (s *HandshakeState) ChannelBinding() []byte {
func (s *HandshakeState) PeerStatic() []byte {
return s.rs
}
// MessageIndex returns the current handshake message id
func (s *HandshakeState) MessageIndex() int {
return s.msgIdx
}