Skip to content

Commit b49d0ac

Browse files
committed
simplify test method
1 parent 72a8397 commit b49d0ac

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lightning/src/ln/onion_utils.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -939,13 +939,7 @@ pub(super) fn build_first_hop_failure_packet(
939939
) -> msgs::OnionErrorPacket {
940940
let payload = [0; 4];
941941
let failure_packet = build_failure_packet(shared_secret, failure_type, failure_data, &payload);
942-
let attribution_data = [0; ATTRIBUTION_DATA_LEN];
943-
944-
let onion_error_packet = OnionErrorPacket {
945-
data: failure_packet.encode(),
946-
attribution_data,
947-
};
948-
encrypt_failure_packet(shared_secret, &onion_error_packet)
942+
encrypt_failure_packet(shared_secret, &failure_packet)
949943
}
950944

951945
pub(crate) struct DecodedOnionFailure {

0 commit comments

Comments
 (0)