Skip to content

Commit 91b71c1

Browse files
committed
Drop unnecessary &mut on self in ChannelMonitor::filter_block
1 parent 13d5bcc commit 91b71c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5977,7 +5977,7 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitorImpl<Signer> {
59775977
/// Filters a block's `txdata` for transactions spending watched outputs or for any child
59785978
/// transactions thereof.
59795979
#[rustfmt::skip]
5980-
fn filter_block<'a>(&mut self, txdata: &TransactionData<'a>) -> Vec<&'a Transaction> {
5980+
fn filter_block<'a>(&self, txdata: &TransactionData<'a>) -> Vec<&'a Transaction> {
59815981
let mut matched_txn = new_hash_set();
59825982
txdata.iter().filter(|&&(_, tx)| {
59835983
let mut matches = self.spends_watched_output(tx);

0 commit comments

Comments
 (0)