mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
outbound_payment: remove unused cltv delta var
This commit is contained in:
parent
6d6a86c92c
commit
2a23b80c35
1 changed files with 0 additions and 3 deletions
|
@ -26,7 +26,6 @@ use crate::util::time::Time;
|
||||||
use crate::util::time::tests::SinceEpoch;
|
use crate::util::time::tests::SinceEpoch;
|
||||||
use crate::util::ser::ReadableArgs;
|
use crate::util::ser::ReadableArgs;
|
||||||
|
|
||||||
use core::cmp;
|
|
||||||
use core::fmt::{self, Display, Formatter};
|
use core::fmt::{self, Display, Formatter};
|
||||||
use core::ops::Deref;
|
use core::ops::Deref;
|
||||||
|
|
||||||
|
@ -1048,7 +1047,6 @@ impl OutboundPayments {
|
||||||
let mut has_ok = false;
|
let mut has_ok = false;
|
||||||
let mut has_err = false;
|
let mut has_err = false;
|
||||||
let mut pending_amt_unsent = 0;
|
let mut pending_amt_unsent = 0;
|
||||||
let mut max_unsent_cltv_delta = 0;
|
|
||||||
for (res, path) in results.iter().zip(route.paths.iter()) {
|
for (res, path) in results.iter().zip(route.paths.iter()) {
|
||||||
if res.is_ok() { has_ok = true; }
|
if res.is_ok() { has_ok = true; }
|
||||||
if res.is_err() { has_err = true; }
|
if res.is_err() { has_err = true; }
|
||||||
|
@ -1059,7 +1057,6 @@ impl OutboundPayments {
|
||||||
has_ok = true;
|
has_ok = true;
|
||||||
} else if res.is_err() {
|
} else if res.is_err() {
|
||||||
pending_amt_unsent += path.last().unwrap().fee_msat;
|
pending_amt_unsent += path.last().unwrap().fee_msat;
|
||||||
max_unsent_cltv_delta = cmp::max(max_unsent_cltv_delta, path.last().unwrap().cltv_expiry_delta);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if has_err && has_ok {
|
if has_err && has_ok {
|
||||||
|
|
Loading…
Add table
Reference in a new issue