We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
bitcoin::LockTime
EsploraTx::locktime
1 parent b7774f3 commit 4608d45Copy full SHA for 4608d45
1 file changed
src/api.rs
@@ -122,7 +122,7 @@ pub struct EsploraTx {
122
pub version: transaction::Version,
123
/// The locktime of the [`Transaction`].
124
/// Sets a time or height after which the [`Transaction`] can be mined.
125
- pub locktime: u32,
+ pub locktime: absolute::LockTime,
126
/// The array of inputs in the [`Transaction`].
127
pub vin: Vec<Vin>,
128
/// The array of outputs in the [`Transaction`].
@@ -401,7 +401,7 @@ impl EsploraTx {
401
pub fn to_tx(&self) -> Transaction {
402
Transaction {
403
version: self.version,
404
- lock_time: bitcoin::absolute::LockTime::from_consensus(self.locktime),
+ lock_time: self.locktime,
405
input: self
406
.vin
407
.iter()
0 commit comments