Skip to content

Tie each cached preimage to its HTLC to avoid collision #580

Open
@ariard

Description

@ariard

ChannelMonitor::payment_preimages cache preimage by hash indifferently of its origin HTLC. It may be exploited in a really really loose way to trigger unintentional channel closure, so for peace of mind, tie each preimage to its HTLC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions