Skip to content

Commit e549537

Browse files
committed
f Drop needs_abandon
1 parent d183d87 commit e549537

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lightning/src/ln/outbound_payment.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,16 +1318,6 @@ impl OutboundPayments {
13181318
});
13191319
}
13201320

1321-
pub(super) fn needs_abandon(&self) -> bool {
1322-
let outbounds = self.pending_outbound_payments.lock().unwrap();
1323-
outbounds.iter().any(|(_, pmt)| {
1324-
!pmt.is_auto_retryable_now()
1325-
&& pmt.remaining_parts() == 0
1326-
&& !pmt.is_fulfilled()
1327-
&& !pmt.is_awaiting_invoice()
1328-
})
1329-
}
1330-
13311321
pub(super) fn needs_abandon_or_retry(&self) -> bool {
13321322
let outbounds = self.pending_outbound_payments.lock().unwrap();
13331323
outbounds.iter().any(|(_, pmt)| {

0 commit comments

Comments
 (0)