aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
Diffstat (limited to 'peer.go')
-rw-r--r--peer.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/peer.go b/peer.go
index e6f752022..16bb22286 100644
--- a/peer.go
+++ b/peer.go
@@ -28,7 +28,11 @@ type Peer struct {
// Flag for checking the peer's connectivity state
connected int32
disconnect int32
+ // Last known message send
lastSend time.Time
+ // Indicated whether a verack has been send or not
+ // This flag is used by writeMessage to check if messages are allowed
+ // to be send or not. If no version is known all messages are ignored.
versionKnown bool
}