diff --git a/Cargo.lock b/Cargo.lock index 4b15e5a1..08a8f7a2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2929,7 +2929,7 @@ checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f" [[package]] name = "satoshi-bridge" -version = "0.5.0" +version = "0.5.1" dependencies = [ "bitcoin", "crypto-shared", diff --git a/contracts/satoshi-bridge/Cargo.toml b/contracts/satoshi-bridge/Cargo.toml index 97f38c85..128301f2 100644 --- a/contracts/satoshi-bridge/Cargo.toml +++ b/contracts/satoshi-bridge/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "satoshi-bridge" -version = "0.5.0" +version = "0.5.1" edition.workspace = true publish.workspace = true repository.workspace = true diff --git a/contracts/satoshi-bridge/release_notes.md b/contracts/satoshi-bridge/release_notes.md index d5687146..10ed83a8 100644 --- a/contracts/satoshi-bridge/release_notes.md +++ b/contracts/satoshi-bridge/release_notes.md @@ -1,5 +1,8 @@ # Release Notes +### Version 0.5.1 +1. remove lock_time validation for BTC transactions + ### Version 0.5.0 1. fix audit recommendation. diff --git a/contracts/satoshi-bridge/src/api/bridge.rs b/contracts/satoshi-bridge/src/api/bridge.rs index 683807a3..ea9e2e9a 100644 --- a/contracts/satoshi-bridge/src/api/bridge.rs +++ b/contracts/satoshi-bridge/src/api/bridge.rs @@ -31,10 +31,6 @@ impl Contract { let transaction = bytes_to_btc_transaction(&tx_bytes); let deposit_amount = transaction.output[vout].value.to_sat() as u128; require!(deposit_amount > 0, "Invalid deposit_amount"); - require!( - transaction.lock_time == LockTime::ZERO, - "Tx with a non-zero lock_time are not supported." - ); let deposit_address = self.generate_btc_p2wpkh_address(&path); let deposit_address_script_pubkey = deposit_address.script_pubkey(); require!(