Modified fastsync server log.
@@ -253,9 +253,11 @@ loop:
h.nextMsg = nil
h.updateNextMsg()
} else {
+ if logMsg {
log.Printf("error=%+v\n", err)
}
}
+ }
// if packet is dropped too much, use ticker to slow down sending
if len(h.nextMsg) > 0 {
@@ -274,6 +276,9 @@ loop:
// TODO log
continue loop
}
+ if logMsg {
+ log.Printf("Received BlockRequest %d\n", msg.Height)
+ }
h.nextItems = append(h.nextItems, &msg)
}
default:
@@ -294,6 +299,9 @@ loop:
// TODO log
continue loop
}
+ if logMsg {
+ log.Printf("Received BlockRequest %d\n", msg.Height)
+ }
h.nextItems = append(h.nextItems, &msg)
}
}
