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.
Closes #349.
Previously, we chose to expose
ChannelConfig
as a Uniffiinterface
, providing accessor methods. Unfortunately this forced us toArc
it everywhere in the API, and also didn't allow to retrieve the currently set dust exposure limits. Here, we refactor our version ofChannelConfig
to be a normalstruct
(Uniffidictionary
), and only expose theMaxDustHTLCExposure
as an enum-interface
.