File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,16 @@ func (l *P2PConnected) EventName() string {
42
42
return "p2p.connected"
43
43
}
44
44
45
+ type P2PDisconnected struct {
46
+ NumConnections int `json:"num_connections"`
47
+ RemoteId string `json:"remote_id"`
48
+ LogEvent
49
+ }
50
+
51
+ func (l * P2PDisconnected ) EventName () string {
52
+ return "p2p.disconnected"
53
+ }
54
+
45
55
type EthMinerNewBlock struct {
46
56
BlockHash string `json:"block_hash"`
47
57
BlockNumber int `json:"block_number"`
@@ -117,16 +127,6 @@ func (l *EthTxReceived) EventName() string {
117
127
// return "p2p.handshaked"
118
128
// }
119
129
120
- // type P2PDisconnected struct {
121
- // NumConnections int `json:"num_connections"`
122
- // RemoteId string `json:"remote_id"`
123
- // LogEvent
124
- // }
125
-
126
- // func (l *P2PDisconnected) EventName() string {
127
- // return "p2p.disconnected"
128
- // }
129
-
130
130
// type P2PDisconnecting struct {
131
131
// Reason string `json:"reason"`
132
132
// RemoteId string `json:"remote_id"`
You can’t perform that action at this time.
0 commit comments