Skip to content

Commit 515fd53

Browse files
committed
refactor(api)!: use bitcoin::LockTime for EsploraTx::locktime
1 parent f4331b9 commit 515fd53

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/api.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ pub struct EsploraTx {
122122
pub version: transaction::Version,
123123
/// The locktime of the [`Transaction`].
124124
/// Sets a time or height after which the [`Transaction`] can be mined.
125-
pub locktime: u32,
125+
pub locktime: absolute::LockTime,
126126
/// The array of inputs in the [`Transaction`].
127127
pub vin: Vec<Vin>,
128128
/// The array of outputs in the [`Transaction`].
@@ -401,7 +401,7 @@ impl EsploraTx {
401401
pub fn to_tx(&self) -> Transaction {
402402
Transaction {
403403
version: self.version,
404-
lock_time: bitcoin::absolute::LockTime::from_consensus(self.locktime),
404+
lock_time: self.locktime,
405405
input: self
406406
.vin
407407
.iter()

0 commit comments

Comments
 (0)