mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
This commit gives the start for making the htlc manager and htlc switch testable. The testability of htlc switch have been achieved by mocking all external subsystems. The concrete list of updates: 1. create standalone package for htlc switch. 2. add "ChannelLink" interface, which represent the previous htlc link. 3. add "Peer" interface, which represent the remote node inside our subsystem. 4. add htlc switch config to htlc switch susbystem, which stores the handlers which are not elongs to any of the above interfaces. With this commit we are able test htlc switch even without having the concrete implementation of Peer, ChannelLink structures, they will be added later. |
||
---|---|---|
.. | ||
announcement_signatures.go | ||
channel_announcement.go | ||
channel_id.go | ||
channel_id_test.go | ||
channel_update.go | ||
closing_signed.go | ||
commit_sig.go | ||
error.go | ||
features.go | ||
features_test.go | ||
funding_locked.go | ||
init_message.go | ||
lnwire.go | ||
lnwire_test.go | ||
message.go | ||
netaddress.go | ||
netaddress_test.go | ||
node_announcement.go | ||
node_announcement_test.go | ||
ping.go | ||
pong.go | ||
README.md | ||
revoke_and_ack.go | ||
short_channel_id.go | ||
short_channel_id_test.go | ||
shutdown.go | ||
signature.go | ||
signature_test.go | ||
single_funding_complete.go | ||
single_funding_request.go | ||
single_funding_response.go | ||
single_funding_signcomplete.go | ||
update_add_htlc.go | ||
update_fail_htlc.go | ||
update_fulfill_htlc.go |
lnwire
The lnwire package implements the Lightning Network wire protocol.
This package has intentionally been designed so it can be used as a standalone package for any projects needing to interface with lightning peers at the wire protocol level.
Installation and Updating
$ go get -u github.com/lightningnetwork/lnd/lnwire