Update format of ExcessiveScriptSize error message

This commit is contained in:
eunoia_1729 2022-06-09 01:22:23 +05:30
parent 89bd4b61a4
commit 66e852cd19
No known key found for this signature in database
GPG Key ID: 9250C363C00A1E70
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ impl fmt::Display for Error {
Error::InvalidWitnessProgramLength(l) => write!(f, "the witness program must be between 2 and 40 bytes in length: length={}", l), Error::InvalidWitnessProgramLength(l) => write!(f, "the witness program must be between 2 and 40 bytes in length: length={}", l),
Error::InvalidSegwitV0ProgramLength(l) => write!(f, "a v0 witness program must be either of length 20 or 32 bytes: length={}", l), Error::InvalidSegwitV0ProgramLength(l) => write!(f, "a v0 witness program must be either of length 20 or 32 bytes: length={}", l),
Error::UncompressedPubkey => write!(f, "an uncompressed pubkey was used where it is not allowed"), Error::UncompressedPubkey => write!(f, "an uncompressed pubkey was used where it is not allowed"),
Error::ExcessiveScriptSize => write!(f, "Script size exceed 520 bytes"), Error::ExcessiveScriptSize => write!(f, "script size exceed 520 bytes"),
Error::UnrecognizedScript => write!(f, "script is not a p2pkh, p2sh or witness program") Error::UnrecognizedScript => write!(f, "script is not a p2pkh, p2sh or witness program")
} }
} }