diff --git a/sync/src/blocks.rs b/sync/src/blocks.rs index fa3c3c001..683db0c7b 100644 --- a/sync/src/blocks.rs +++ b/sync/src/blocks.rs @@ -83,7 +83,7 @@ impl BlockCollection { self.heads = hashes; } - /// Insert a set oh headers into collection and advance subchain head pointers. + /// Insert a set of headers into collection and advance subchain head pointers. pub fn insert_headers(&mut self, headers: Vec) { for h in headers.into_iter() { if let Err(e) = self.insert_header(h) { @@ -92,6 +92,7 @@ impl BlockCollection { } self.update_heads(); } + /// Insert a collection of block bodies for previously downloaded headers. pub fn insert_bodies(&mut self, bodies: Vec) { for b in bodies.into_iter() {