Skip to content

Commit 4626e80

Browse files
committed
fix: remove version check
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
1 parent 700fcc9 commit 4626e80

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

crates/bitcoin/src/parser.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,6 @@ pub fn parse_transaction(raw_transaction: &[u8]) -> Result<Transaction, Error> {
273273
let mut parser = BytesParser::new(raw_transaction);
274274
let version: i32 = parser.parse()?;
275275

276-
// fail if incorrect version: we only support version 1 and 2
277-
if version != 1 && version != 2 {
278-
return Err(Error::MalformedTransaction);
279-
}
280-
281276
let allow_witness = (version & SERIALIZE_TRANSACTION_NO_WITNESS) == 0;
282277

283278
// TODO: bound maximum?

0 commit comments

Comments
 (0)