Skip to content

Commit

Permalink
switch panic to error for coinbase
Browse files Browse the repository at this point in the history
  • Loading branch information
yaahc committed Oct 14, 2020
1 parent 2e754df commit ac6d4cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zebra-consensus/src/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ where
}
.boxed()
}
transparent::Input::Coinbase { .. } => unimplemented!(
"how should we handle verifying coinbase transactions in the script::Verifier?"
),
transparent::Input::Coinbase { .. } => {
async { Err("unexpected coinbase input".into()) }.boxed()
}
}
}
}

0 comments on commit ac6d4cf

Please sign in to comment.