Skip to content

HTLC_{SUCCESS,TIMEOUT}_INPUT_ANCHOR_WITNESS_WEIGHT are probably too high #3287

Open
@TheBlueMatt

Description

@TheBlueMatt

ANCHOR_INPUT_WITNESS_WEIGHT was too high by 2 (causing us to overpay fees by two weight units), and it was fixed in #3285 because a test required it. The HTLC constants are probably also wrong, but it shouldn't cause anything other than overpaying by two weight units per input, which isn't a huge deal. We should fix them, though, plus add a comment explaining how all three constants are calculated (the ANCHOR_INPUT_WITNESS_WEIGHT is 40 byte redeemscript, plus 71/72 bytes for a signature and 2 length bytes and a witness element count).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions