aboutsummaryrefslogtreecommitdiffstats
path: root/logger
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-02-20 00:09:13 +0800
committerFelix Lange <fjl@twurst.com>2015-02-20 00:09:13 +0800
commitfa15854a54d1d4505619aa3b3deabb50cd8ca881 (patch)
tree73a7707e629694ebe66a5cbb52a318f4ada9eb26 /logger
parentdd871e791cdd2aefd001f6c3a11ac9378dde0bf5 (diff)
downloadgo-tangerine-fa15854a54d1d4505619aa3b3deabb50cd8ca881.tar
go-tangerine-fa15854a54d1d4505619aa3b3deabb50cd8ca881.tar.gz
go-tangerine-fa15854a54d1d4505619aa3b3deabb50cd8ca881.tar.bz2
go-tangerine-fa15854a54d1d4505619aa3b3deabb50cd8ca881.tar.lz
go-tangerine-fa15854a54d1d4505619aa3b3deabb50cd8ca881.tar.xz
go-tangerine-fa15854a54d1d4505619aa3b3deabb50cd8ca881.tar.zst
go-tangerine-fa15854a54d1d4505619aa3b3deabb50cd8ca881.zip
logger: add P2P disconnected event
Diffstat (limited to 'logger')
-rw-r--r--logger/types.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/logger/types.go b/logger/types.go
index d14a26643..7ab4a2b8c 100644
--- a/logger/types.go
+++ b/logger/types.go
@@ -42,6 +42,16 @@ func (l *P2PConnected) EventName() string {
return "p2p.connected"
}
+type P2PDisconnected struct {
+ NumConnections int `json:"num_connections"`
+ RemoteId string `json:"remote_id"`
+ LogEvent
+}
+
+func (l *P2PDisconnected) EventName() string {
+ return "p2p.disconnected"
+}
+
type EthMinerNewBlock struct {
BlockHash string `json:"block_hash"`
BlockNumber int `json:"block_number"`
@@ -117,16 +127,6 @@ func (l *EthTxReceived) EventName() string {
// return "p2p.handshaked"
// }
-// type P2PDisconnected struct {
-// NumConnections int `json:"num_connections"`
-// RemoteId string `json:"remote_id"`
-// LogEvent
-// }
-
-// func (l *P2PDisconnected) EventName() string {
-// return "p2p.disconnected"
-// }
-
// type P2PDisconnecting struct {
// Reason string `json:"reason"`
// RemoteId string `json:"remote_id"`