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:
committed by
Ignotus Peverell
parent
84e46c2872
commit
b040aaa434
+2
-2
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user