decred / dcrlnd

Decred Lightning Network Daemon ⚡️
MIT License
36 stars 24 forks source link

Switch to wallet-backed chain io in dcrlnd #94

Closed matheusd closed 4 years ago

matheusd commented 4 years ago

Rebased on top of #93

Part of #80

This switches the main dcrlnd package to use the recently introduced wallet-backed drivers for chain IO operations.

The net result is that chain IO operations are now fully performed by the underlying dcrwallet instance and dcrlnd no longer requires a connection to a running dcrd to perform its job.

For dcrlnd operating in remote wallet mode (such as those running from within Decrediton) the change is automatic.

For dcrlnd operating with an embedded dcrwallet, a new value for the node config option (dcrw) must be specified to use the new IO mode. Both the old dcrd mode and the dcrw mode are tested via itests running in the Github Actions CI.