Skip to content

Commit 4af5a82

Browse files
committed
rewrite to separate field wip
1 parent 882665e commit 4af5a82

File tree

2 files changed

+127
-172
lines changed

2 files changed

+127
-172
lines changed

lightning/src/ln/msgs.rs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,7 +1793,8 @@ pub struct FinalOnionHopData {
17931793
mod fuzzy_internal_msgs {
17941794
use bitcoin::secp256k1::PublicKey;
17951795
use crate::blinded_path::payment::{BlindedPaymentPath, PaymentConstraints, PaymentContext, PaymentRelay};
1796-
use crate::offers::invoice_request::InvoiceRequest;
1796+
use crate::ln::onion_utils::ATTRIBUTION_DATA_LEN;
1797+
use crate::offers::invoice_request::InvoiceRequest;
17971798
use crate::types::payment::{PaymentPreimage, PaymentSecret};
17981799
use crate::types::features::{BlindedHopFeatures, Bolt12InvoiceFeatures};
17991800
use super::{FinalOnionHopData, TrampolineOnionPacket};
@@ -1924,13 +1925,6 @@ mod fuzzy_internal_msgs {
19241925
pub(crate) failuremsg: Vec<u8>,
19251926
pub(crate) pad: Vec<u8>,
19261927
}
1927-
1928-
pub struct DecodedAttributableOnionErrorPacket {
1929-
pub(crate) failuremsg: Vec<u8>,
1930-
pub(crate) pad: Vec<u8>,
1931-
pub(crate) payloads: [u8; 100],
1932-
pub(crate) hmac: [u8; 840],
1933-
}
19341928
}
19351929
#[cfg(fuzzing)]
19361930
pub use self::fuzzy_internal_msgs::*;
@@ -2393,12 +2387,6 @@ impl_writeable!(DecodedOnionErrorPacket, {
23932387
pad
23942388
});
23952389

2396-
impl_writeable!(DecodedAttributableOnionErrorPacket, {
2397-
failuremsg,
2398-
pad,
2399-
payloads,
2400-
hmac
2401-
});
24022390

24032391
#[cfg(not(taproot))]
24042392
impl_writeable_msg!(FundingCreated, {

0 commit comments

Comments
 (0)