Replies: 4 comments
-
This is nice! Being able to use external implementations for LND internal modules will make it more adaptive to specific platforms and will allow us to improve the use experience in general. Perhaps this is a good place to outline our requirements: ChainService
ChannelDB Breez can really benefit from these architectural changes and it would be great to be involved in this process. |
Beta Was this translation helpful? Give feedback.
-
As of #4286 it's now possible to configure sub loggers before starting |
Beta Was this translation helpful? Give feedback.
-
Related to #5486 |
Beta Was this translation helpful? Give feedback.
-
Moving to discussions. Can be reopened when taken up for development. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
With the newer versions of
lnd
, we'd started to progressively refactorlnd
as itself so it's more generically useable. We've recently reached the point where it's possible to initialize anlnd
instance within another go process, and also generate a set of bindings to support usage oflnd
within mobile deployments.The aim of this issue is to further abstract the main
lnd
package with the goal of being able to:lnd
node incrementally.Once the two steps above have been completed, a user will be able to embed
lnd
within another Go process or package, and also provide new implementations of core interfaces such as theSigner
or newly createdkvdb.Backend
interface.Potential External API
I figure the best way to provide guidance on precisely how to achieve the two goals above is to provide an example using an hypothetical interface, then proceed backwards (a la top-down design) to refactor
lnd
to support our target use case.Here's an example of a user creating a new
lnd
instance in an new package and providing a custom implementation (really just re-directs or maybe proxies to a remote server) of thekvdb.Backend
interface.Beta Was this translation helpful? Give feedback.
All reactions