Skip to content

Commit abda91a

Browse files
refactor(core): remove unused ScriptVerifyError variants
Removes ScriptVerifyError::TxSizeMismatch and ScriptVerifyError::TxDeserialize as they are not used.
1 parent 3e41d2c commit abda91a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/core/verify.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,6 @@ impl From<btck_ScriptVerifyStatus> for ScriptVerifyStatus {
173173
#[derive(Debug)]
174174
pub enum ScriptVerifyError {
175175
TxInputIndex,
176-
TxSizeMismatch,
177-
TxDeserialize,
178176
InvalidFlags,
179177
InvalidFlagsCombination,
180178
SpentOutputsMismatch,
@@ -186,8 +184,6 @@ impl Display for ScriptVerifyError {
186184
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
187185
match self {
188186
ScriptVerifyError::TxInputIndex => write!(f, "Transaction input index out of bounds"),
189-
ScriptVerifyError::TxSizeMismatch => write!(f, "Transaction size mismatch"),
190-
ScriptVerifyError::TxDeserialize => write!(f, "Failed to deserialize transaction"),
191187
ScriptVerifyError::InvalidFlags => write!(f, "Invalid verification flags"),
192188
ScriptVerifyError::InvalidFlagsCombination => {
193189
write!(f, "Invalid combination of verification flags")
@@ -343,8 +339,6 @@ mod tests {
343339
fn test_script_verify_error_debug() {
344340
let errors = vec![
345341
ScriptVerifyError::TxInputIndex,
346-
ScriptVerifyError::TxSizeMismatch,
347-
ScriptVerifyError::TxDeserialize,
348342
ScriptVerifyError::InvalidFlags,
349343
ScriptVerifyError::InvalidFlagsCombination,
350344
ScriptVerifyError::SpentOutputsMismatch,

0 commit comments

Comments
 (0)