Skip to content

Commit

Permalink
change to mwc bad block hash
Browse files Browse the repository at this point in the history
  • Loading branch information
suemto committed Mar 19, 2021
1 parent f2e26df commit 571d514
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion chain/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ impl Chain {
/// Known bad block that we must rewind prior to if seen on "current chain".
fn rewind_bad_block(&self) -> Result<(), Error> {
let hash =
Hash::from_hex("0002897182d8cf7631e86d56ad546b7cf0893bda811592aa9312ae633ce04813")?;
Hash::from_hex("00020440a401086e57e1b7a92ebb0277c7f7fd47a38269ecc6789c2a80333725")?;

if let Ok(header) = self.get_block_header(&hash) {
if self.is_on_current_chain(&header).is_ok() {
Expand Down
8 changes: 8 additions & 0 deletions chain/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,14 @@ impl From<io::Error> for Error {
}
}

impl From<ser::Error> for Error {
fn from(error: ser::Error) -> Error {
Error {
inner: Context::new(ErrorKind::SerErr(error)),
}
}
}

impl From<secp::Error> for Error {
fn from(e: secp::Error) -> Error {
Error {
Expand Down

0 comments on commit 571d514

Please sign in to comment.