X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fln%2Fonion_utils.rs;h=8783aa0bde0e107708122c62fb06f2dd9102bbf4;hb=02b541607bb7a8234675b1e2101c1e31d372706f;hp=fe8dc5780f3e45ae292d876ed3b4d57b08cf2d02;hpb=12d25576c1661c09c6ece239d286dd3ab6380cd5;p=rust-lightning diff --git a/src/ln/onion_utils.rs b/src/ln/onion_utils.rs index fe8dc578..8783aa0b 100644 --- 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::logger::Logger; +use util::logger::{Logger, LogHolder}; 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()[..]) } -struct LogHolder<'a> { logger: &'a Arc } /// 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.