|
|
@ -42,6 +42,16 @@ func (l *P2PConnected) EventName() string { |
|
|
|
return "p2p.connected" |
|
|
|
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 { |
|
|
|
type EthMinerNewBlock struct { |
|
|
|
BlockHash string `json:"block_hash"` |
|
|
|
BlockHash string `json:"block_hash"` |
|
|
|
BlockNumber int `json:"block_number"` |
|
|
|
BlockNumber int `json:"block_number"` |
|
|
@ -117,16 +127,6 @@ func (l *EthTxReceived) EventName() string { |
|
|
|
// return "p2p.handshaked"
|
|
|
|
// 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 {
|
|
|
|
// type P2PDisconnecting struct {
|
|
|
|
// Reason string `json:"reason"`
|
|
|
|
// Reason string `json:"reason"`
|
|
|
|
// RemoteId string `json:"remote_id"`
|
|
|
|
// RemoteId string `json:"remote_id"`
|
|
|
|