Peer reaping and fake network

This commit is contained in:
obscuren
2014-01-12 23:46:03 +01:00
parent 52fb3b412c
commit 7ade1778fb
3 changed files with 45 additions and 13 deletions

View File

@ -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
}