Remove unused BlockStatus::Pending (#9447)

Pending case never instantiated, and only ever matched together with Unknown
This commit is contained in:
Andrew Jones
2018-08-31 12:13:01 +01:00
committed by GitHub
parent 3dbea1a7a1
commit bc53e78a04
4 changed files with 4 additions and 6 deletions

View File

@@ -266,7 +266,7 @@ impl BlockDownloader {
BlockStatus::Bad => {
return Err(BlockDownloaderImportError::Invalid);
},
BlockStatus::Unknown | BlockStatus::Pending => {
BlockStatus::Unknown => {
headers.push(info);
hashes.push(hash);
}