projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
migration to rust-bitcoin 0.17
[rust-lightning]
/
src
/
ln
/
onion_utils.rs
diff --git
a/src/ln/onion_utils.rs
b/src/ln/onion_utils.rs
index fe8dc5780f3e45ae292d876ed3b4d57b08cf2d02..8783aa0bde0e107708122c62fb06f2dd9102bbf4 100644
(file)
--- a/
src/ln/onion_utils.rs
+++ b/
src/ln/onion_utils.rs
@@
-5,7
+5,7
@@
use util::{byte_utils, internal_traits};
use util::chacha20::ChaCha20;
use util::errors::{self, APIError};
use util::ser::{Readable, Writeable};
use util::chacha20::ChaCha20;
use util::errors::{self, APIError};
use util::ser::{Readable, Writeable};
-use util::logger::
Logger
;
+use util::logger::
{Logger, LogHolder}
;
use bitcoin_hashes::{Hash, HashEngine};
use bitcoin_hashes::cmp::fixed_time_eq;
use bitcoin_hashes::{Hash, HashEngine};
use bitcoin_hashes::cmp::fixed_time_eq;
@@
-265,7
+265,6
@@
pub(super) fn build_first_hop_failure_packet(shared_secret: &[u8], failure_type:
encrypt_failure_packet(shared_secret, &failure_packet.encode()[..])
}
encrypt_failure_packet(shared_secret, &failure_packet.encode()[..])
}
-struct LogHolder<'a> { logger: &'a Arc<Logger> }
/// Process failure we got back from upstream on a payment we sent (implying htlc_source is an
/// OutboundRoute).
/// Returns update, a boolean indicating that the payment itself failed, and the error code.
/// Process failure we got back from upstream on a payment we sent (implying htlc_source is an
/// OutboundRoute).
/// Returns update, a boolean indicating that the payment itself failed, and the error code.