Skip to content

Commit 66c969a

Browse files
committed
Fix electrum warnings.
1 parent a45f037 commit 66c969a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning-transaction-sync/src/electrum.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ where
9999
while let Some(_) = self.client.block_headers_pop()? {}
100100

101101
let tip_notification = self.client.block_headers_subscribe()?;
102-
let mut tip_header = tip_notification.header;
102+
let tip_header = tip_notification.header;
103103
let mut tip_height = tip_notification.height as u32;
104104

105105
loop {
@@ -524,7 +524,7 @@ where
524524
fn get_confirmed_tx(
525525
&self, tx: &Transaction, prob_conf_height: u32,
526526
) -> Result<ConfirmedTx, InternalError> {
527-
let txid = tx.txid();
527+
let txid = tx.compute_txid();
528528
match self.client.transaction_get_merkle(
529529
&electrum_client::bitcoin::Txid::from_slice(txid.as_ref()).unwrap(),
530530
prob_conf_height as usize,

0 commit comments

Comments
 (0)