good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 9d46c800 authored by Alex Sharov's avatar Alex Sharov Committed by GitHub
Browse files

save (#3031)

parent 726278fd
No related branches found
No related tags found
No related merge requests found
......@@ -338,10 +338,34 @@ func runPeer(
}
send(eth.ToProto[protocol][msg.Code], peerID, b)
case eth.GetNodeDataMsg:
if !hasSubscribers(eth.ToProto[protocol][msg.Code]) {
continue
}
b := make([]byte, msg.Size)
if _, err := io.ReadFull(msg.Payload, b); err != nil {
log.Error(fmt.Sprintf("%s: reading msg into bytes: %v", peerID, err))
}
send(eth.ToProto[protocol][msg.Code], peerID, b)
//log.Info(fmt.Sprintf("[%s] GetNodeData", peerID))
case eth.GetReceiptsMsg:
if !hasSubscribers(eth.ToProto[protocol][msg.Code]) {
continue
}
b := make([]byte, msg.Size)
if _, err := io.ReadFull(msg.Payload, b); err != nil {
log.Error(fmt.Sprintf("%s: reading msg into bytes: %v", peerID, err))
}
send(eth.ToProto[protocol][msg.Code], peerID, b)
//log.Info(fmt.Sprintf("[%s] GetReceiptsMsg", peerID))
case eth.ReceiptsMsg:
if !hasSubscribers(eth.ToProto[protocol][msg.Code]) {
continue
}
b := make([]byte, msg.Size)
if _, err := io.ReadFull(msg.Payload, b); err != nil {
log.Error(fmt.Sprintf("%s: reading msg into bytes: %v", peerID, err))
}
send(eth.ToProto[protocol][msg.Code], peerID, b)
//log.Info(fmt.Sprintf("[%s] ReceiptsMsg", peerID))
case eth.NewBlockHashesMsg:
if !hasSubscribers(eth.ToProto[protocol][msg.Code]) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment