// GetPeerState returns PeerState for a given NodeID.
GetPeerState returns PeerState for a given NodeID.
// GetPeerState returns PeerState for a given NodeID .
func (r *Reactor) GetPeerState(peerID types.NodeID) (*PeerState, bool) {
	r.mtx.RLock()
	defer r.mtx.RUnlock()
	ps, ok := r.peers[peerID]
	return ps, ok
}
func ( r * Reactor ) GetPeerState ( peerID types . NodeID ) ( * PeerState , bool ) { r . mtx . RLock ( ) defer r . mtx . RUnlock ( ) ps , ok := r . peers [ peerID ] return ps , ok }
GetPeerState returns PeerState for a given NodeID.
GetPeerState returns PeerState for a given NodeID .