Skip to content

Commit b71b320

Browse files
committed
f - Remove $height from wait_threshold_conf!
1 parent dfe0cdf commit b71b320

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,9 +1876,9 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
18761876
let mut watch_outputs = Vec::new();
18771877

18781878
macro_rules! wait_threshold_conf {
1879-
($height: expr, $source: expr, $commitment_tx: expr, $payment_hash: expr) => {
1879+
($source: expr, $commitment_tx: expr, $payment_hash: expr) => {
18801880
self.onchain_events_waiting_threshold_conf.retain(|ref entry| {
1881-
if entry.height != $height { return true; }
1881+
if entry.height != height { return true; }
18821882
match entry.event {
18831883
OnchainEvent::HTLCUpdate { ref htlc_update } => {
18841884
htlc_update.0 != $source
@@ -1927,7 +1927,7 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
19271927
for &(ref htlc, _, ref source) in &$holder_tx.htlc_outputs {
19281928
if htlc.transaction_output_index.is_none() {
19291929
if let &Some(ref source) = source {
1930-
wait_threshold_conf!(height, source.clone(), "lastest", htlc.payment_hash.clone());
1930+
wait_threshold_conf!(source.clone(), "lastest", htlc.payment_hash.clone());
19311931
}
19321932
}
19331933
}

0 commit comments

Comments
 (0)