lightningdevkit / ldk-node

A ready-to-go node implementation built using LDK.
Other
147 stars 76 forks source link

Refactor `ChannelConfig` / `MaxDustHTLCExposure` #350

Closed tnull closed 2 months ago

tnull commented 2 months ago

Closes #349.

Previously, we chose to expose ChannelConfig as a Uniffi interface, providing accessor methods. Unfortunately this forced us to Arc it everywhere in the API, and also didn't allow to retrieve the currently set dust exposure limits. Here, we refactor our version of ChannelConfig to be a normal struct (Uniffi dictionary), and only expose the MaxDustHTLCExposure as an enum-interface.

tnull commented 2 months ago

LGTM. Please squash.

Squashed without further changes.