Skip to content

[bug]: failure parameters of invalid_onion_payload should be optional #7664

Open

Description

@joostjager

It seems that lnd forces type/offset in the PERM|22 (invalid_onion_payload) to be required, where the spec states that it is optional.

The decrypted onion per-hop payload was not understood by the processing node or is incomplete. If the failure can be narrowed down to a specific tlv type in the payload, the erring node may include that type and its byte offset in the decrypted byte stream.

typ, err := tlv.ReadVarInt(r, &buf)

Activity

  1. m0wer commented on Jun 16, 2026

    @m0wer

    This still happens.

  2. added a commit that references this issue on Sep 9, 2026
    6701b20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions