A lot of optimization for block checks. Will speed up initial sync by about 15-20% of time.
This commit is contained in:
+1
-1
@@ -598,7 +598,7 @@ impl Network {
|
||||
if index != block.index {
|
||||
return State::Banned;
|
||||
}
|
||||
info!("Received block {} with hash {:?}", block.index, &block.hash);
|
||||
debug!("Received block {} with hash {:?}", block.index, &block.hash);
|
||||
if !seen_blocks.contains(&block.hash) {
|
||||
self.handle_block(token, block, seen_blocks)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user