This commit is contained in:
Nikolay Volf 2016-02-05 03:01:50 +03:00
parent 361f6b6842
commit 410d6533e0

View File

@ -997,12 +997,13 @@ impl ChainSync {
|e| format!("Error sending block headers: {:?}", e)), |e| format!("Error sending block headers: {:?}", e)),
GET_RECEIPTS_PACKET => self.return_rlp(io, &rlp, GET_RECEIPTS_PACKET => self.return_rlp(io, &rlp,
ChainSync::return_receipts, ChainSync::return_receipts,
|e| format!("Error sending receipts: {:?}", e)), |e| format!("Error sending receipts: {:?}", e)),
GET_NODE_DATA_PACKET => self.return_rlp(io, &rlp, GET_NODE_DATA_PACKET => self.return_rlp(io, &rlp,
ChainSync::return_node_data, ChainSync::return_node_data,
|e| format!("Error sending nodes: {:?}", e)), |e| format!("Error sending nodes: {:?}", e)),
_ => { _ => {
debug!(target: "sync", "Unknown packet {}", packet_id); debug!(target: "sync", "Unknown packet {}", packet_id);
Ok(()) Ok(())