From ac737420ba7dcb7d5eb11e17ddb02e57e6cb1a50 Mon Sep 17 00:00:00 2001 From: Sander Bosma Date: Thu, 6 Oct 2022 12:40:48 +0200 Subject: [PATCH] chore: migration: use PackedLockTime struct See https://github.com/rust-bitcoin/rust-bitcoin/pull/994 and https://github.com/rust-bitcoin/rust-bitcoin/pull/1196 --- bitcoin/src/light/wallet.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitcoin/src/light/wallet.rs b/bitcoin/src/light/wallet.rs index f54e22dc5..082cd7226 100644 --- a/bitcoin/src/light/wallet.rs +++ b/bitcoin/src/light/wallet.rs @@ -1,4 +1,4 @@ -use bitcoincore_rpc::bitcoin::{blockdata::constants::WITNESS_SCALE_FACTOR, PublicKey, Witness}; +use bitcoincore_rpc::bitcoin::{blockdata::constants::WITNESS_SCALE_FACTOR, PublicKey, Witness, PackedLockTime}; use super::{electrs::ElectrsClient, error::Error}; use crate::{ @@ -348,7 +348,7 @@ impl Wallet { Transaction { version: 2, - lock_time: Default::default(), + lock_time: PackedLockTime::ZERO, input: Default::default(), output, }