Skip to content

Rethink default dust limit #2922

Closed

Description

@TheBlueMatt

It seems the current dust limit (5k * current feerate) is low enough that with a 1sat/vB feerate we may not allow any dust HTLCs at all. Someone should run the math more carefully and we should pick a new default.

Activity

  1. added this to the 0.0.122 milestone on Mar 5, 2024
  2. tnull commented on Mar 5, 2024

    @tnull
    Contributor

    Isn't this mainly an issue on Signet? Should we start introducing more per-network defaults/settings which would, e.g., also allow us to introduce some (~static) defaults for Testnet? This might improve the interop situation with LND and CLN, which (AFAIK both) set static fee rates on testnet that regularly conflict with our dynamic estimates.

  3. TheBlueMatt commented on Mar 5, 2024

    @TheBlueMatt
    CollaboratorAuthor

    Hmm, I mean if feerates ever drop back down to 1 sat/vB on mainnet it would be an issue there as well, I assume. It may be that there's no reasonable value here that scales across feerates (and maybe we need a multiplier + const config, rather than a simple multiplier), but it would be good to run some analysis here that's more rigorous.

  4. TheBlueMatt commented on Mar 5, 2024

    @TheBlueMatt
    CollaboratorAuthor

    As for static feerates on testnet, I think we can just do that downstream of LDK? Maybe document it in the estimator? I guess we could add wrappers in Channel when looking at feerates to check if the network is test and accept anything? That's a separate issue, though, IMO.

  5. tnull commented on Mar 6, 2024

    @tnull
    Contributor

    As for static feerates on testnet, I think we can just do that downstream of LDK? Maybe document it in the estimator? I guess we could add wrappers in Channel when looking at feerates to check if the network is test and accept anything? That's a separate issue, though, IMO.

    Yeah, might be a separate issue. But, I think it would be good to either automatically set defaults compatible with what LND/CLN is doing or to at least provide very clear guidance in the docs somewhere, because users keep running into these issues on testnet.

  6. TheBlueMatt commented on Mar 7, 2024

    @TheBlueMatt
    CollaboratorAuthor

    Can you open an issue to track it (maybe with some color on how often we see this and in exactly which ways)?

  7. tnull commented on Mar 8, 2024

    @tnull
    Contributor

    Can you open an issue to track it (maybe with some color on how often we see this and in exactly which ways)?

    Done: #2925

  8. modified the milestones: 0.0.122, 0.0.123 on Mar 18, 2024
  9. self-assigned this
    on Mar 21, 2024
  10. added a commit that references this issue on May 7, 2024
    f0b3708
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions