diff options
author | obscuren <geffobscura@gmail.com> | 2014-01-13 06:46:03 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-01-13 06:46:03 +0800 |
commit | 7ade1778fba0fd1f6e0bccc7647cd8fb3185528d (patch) | |
tree | 6d1ecb63d854403d6fc3bec56266f47f87fe485e /peer.go | |
parent | 52fb3b412cde2c5afb0e3364a1da23f3c1d7b171 (diff) | |
download | dexon-7ade1778fba0fd1f6e0bccc7647cd8fb3185528d.tar dexon-7ade1778fba0fd1f6e0bccc7647cd8fb3185528d.tar.gz dexon-7ade1778fba0fd1f6e0bccc7647cd8fb3185528d.tar.bz2 dexon-7ade1778fba0fd1f6e0bccc7647cd8fb3185528d.tar.lz dexon-7ade1778fba0fd1f6e0bccc7647cd8fb3185528d.tar.xz dexon-7ade1778fba0fd1f6e0bccc7647cd8fb3185528d.tar.zst dexon-7ade1778fba0fd1f6e0bccc7647cd8fb3185528d.zip |
Peer reaping and fake network
Diffstat (limited to 'peer.go')
-rw-r--r-- | peer.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 } |