style
This commit is contained in:
parent
b5e10a53af
commit
9d2823da89
@ -83,7 +83,7 @@ impl BlockCollection {
|
|||||||
self.heads = hashes;
|
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<Bytes>) {
|
pub fn insert_headers(&mut self, headers: Vec<Bytes>) {
|
||||||
for h in headers.into_iter() {
|
for h in headers.into_iter() {
|
||||||
if let Err(e) = self.insert_header(h) {
|
if let Err(e) = self.insert_header(h) {
|
||||||
@ -92,6 +92,7 @@ impl BlockCollection {
|
|||||||
}
|
}
|
||||||
self.update_heads();
|
self.update_heads();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Insert a collection of block bodies for previously downloaded headers.
|
/// Insert a collection of block bodies for previously downloaded headers.
|
||||||
pub fn insert_bodies(&mut self, bodies: Vec<Bytes>) {
|
pub fn insert_bodies(&mut self, bodies: Vec<Bytes>) {
|
||||||
for b in bodies.into_iter() {
|
for b in bodies.into_iter() {
|
||||||
|
Loading…
Reference in New Issue
Block a user