]> git.bitcoin.ninja Git - rapid-gossip-sync-server/commitdiff
Fix new compilation warnings main
authorMatt Corallo <git@bluematt.me>
Wed, 18 Sep 2024 22:52:39 +0000 (22:52 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 18 Sep 2024 23:28:12 +0000 (23:28 +0000)
src/lookup.rs
src/verifier.rs

index 87a35aec59168a79e9b0c52bf205e4ac89df3a78..ae36e95c5736c4f3209d690705da8945e7c2989d 100644 (file)
@@ -602,7 +602,7 @@ pub(super) async fn fetch_node_updates<L: Deref + Clone>(network_graph: Arc<Netw
                        latest_mutation_timestamp = None;
 
                        // this is the highest timestamp value, so set the seen timestamp accordingly
-                       current_node_delta.latest_details.as_mut().map(|mut d| d.seen.replace(current_seen_timestamp));
+                       current_node_delta.latest_details.as_mut().map(|d| d.seen.replace(current_seen_timestamp));
                }
 
                if let Some(last_seen_update) = current_node_delta.last_details_before_seen.as_ref() {
index c44cb663158e19d7e1c850b22bd57f6f952665c1..8256916d912f1804b05edaa69208349083e4a18d 100644 (file)
@@ -54,7 +54,7 @@ impl<L: Deref + Clone + Send + Sync + 'static> ChainVerifier<L> where L::Target:
                }
                let mut transaction = block.txdata.swap_remove(transaction_index as usize);
                if output_index as usize >= transaction.output.len() {
-                       log_error!(logger, "Could't find output {} in transaction {}", output_index, transaction.txid());
+                       log_error!(logger, "Could't find output {} in transaction {}", output_index, transaction.compute_txid());
                        return Err(UtxoLookupError::UnknownTx);
                }
                Ok(transaction.output.swap_remove(output_index as usize))