X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Fln%2Fonion_utils.rs;h=1c45da14a382c78aef88acda8a1a3d56ea0c1dca;hb=4e82003261e11ece5d5fb3b13f686c9f7a0d2aaf;hp=08e9e6a88cecb6f30bd6824a41da493b243f72b7;hpb=1fc6d6b5ee2451862768979399e381611ef00565;p=rust-lightning diff --git a/lightning/src/ln/onion_utils.rs b/lightning/src/ln/onion_utils.rs index 08e9e6a8..1c45da14 100644 --- a/lightning/src/ln/onion_utils.rs +++ b/lightning/src/ln/onion_utils.rs @@ -1,3 +1,12 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + use ln::channelmanager::{PaymentHash, PaymentSecret, HTLCSource}; use ln::msgs; use routing::router::RouteHop; @@ -297,8 +306,8 @@ pub(super) fn build_failure_packet(shared_secret: &[u8], failure_type: u16, fail }; let mut packet = msgs::DecodedOnionErrorPacket { hmac: [0; 32], - failuremsg: failuremsg, - pad: pad, + failuremsg, + pad, }; let mut hmac = HmacEngine::::new(&um);