Fix: old time crate use 0..11 as the month, make mistake when switching to chrono Utc.ymd (#1304) (#1305)

This commit is contained in:
Gary Yu
2018-08-01 00:35:57 +08:00
committed by Ignotus Peverell
parent 84e46c2872
commit b040aaa434
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -297,9 +297,9 @@ fn validate_header(header: &BlockHeader, ctx: &mut BlockContext) -> Result<(), E
if target_difficulty != network_difficulty.clone() {
error!(
LOGGER,
"validate_header: BANNABLE OFFENCE: header cumulative difficulty {} != {}",
"validate_header: BANNABLE OFFENCE: header target difficulty {} != {}",
target_difficulty.to_num(),
prev.total_difficulty.to_num() + network_difficulty.to_num()
network_difficulty.to_num()
);
return Err(ErrorKind::WrongTotalDifficulty.into());
}