You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// serialization format in a way which assumes we know the total serialized length/message end
2703
2715
// position.
2704
2716
impl_writeable!(OnionErrorPacket,{
2705
-
data
2717
+
data,
2718
+
attribution_data
2706
2719
});
2707
2720
2708
2721
// Note that this is written as a part of ChannelManager objects, and thus cannot change its
@@ -4450,13 +4463,11 @@ mod tests {
4450
4463
4451
4464
#[test]
4452
4465
fnencoding_update_fail_htlc(){
4453
-
let reason = OnionErrorPacket{
4454
-
data:[1;32].to_vec(),
4455
-
};
4456
4466
let update_fail_htlc = msgs::UpdateFailHTLC{
4457
4467
channel_id:ChannelId::from_bytes([2;32]),
4458
4468
htlc_id:2316138423780173,
4459
-
reason
4469
+
reason:[1;32].to_vec(),
4470
+
attribution_data:Some([0;940])
4460
4471
};
4461
4472
let encoded_value = update_fail_htlc.encode();
4462
4473
let target_value = <Vec<u8>>::from_hex("020202020202020202020202020202020202020202020202020202020202020200083a840000034d00200101010101010101010101010101010101010101010101010101010101010101").unwrap();
0 commit comments