Skip to content

Commit 86e9daa

Browse files
committed
chore: migration: use PackedLockTime struct
See rust-bitcoin/rust-bitcoin#994 and rust-bitcoin/rust-bitcoin#1196
1 parent d84f83b commit 86e9daa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bitcoin/src/light/wallet.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use bitcoincore_rpc::bitcoin::{blockdata::constants::WITNESS_SCALE_FACTOR, PublicKey, Witness};
1+
use bitcoincore_rpc::bitcoin::{blockdata::constants::WITNESS_SCALE_FACTOR, PublicKey, Witness, PackedLockTime};
22

33
use super::{electrs::ElectrsClient, error::Error};
44
use crate::{
@@ -348,7 +348,7 @@ impl Wallet {
348348

349349
Transaction {
350350
version: 2,
351-
lock_time: Default::default(),
351+
lock_time: PackedLockTime::ZERO,
352352
input: Default::default(),
353353
output,
354354
}

0 commit comments

Comments
 (0)