Fixed block checking code. Optimized build.rs.
This commit is contained in:
@@ -754,8 +754,10 @@ impl Chain {
|
||||
Twin
|
||||
};
|
||||
}
|
||||
} else if block.prev_block_hash != last_block.hash {
|
||||
warn!("Ignoring block with wrong previous hash:\n{:?}", &block);
|
||||
return Bad;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user