Johan T. Halseth
3485a7874f
netann: ignore unknown channel updat on startup
...
Since the funding manager might be in process of adding the edge to the
graph, we ignore the error.
2021-01-26 15:33:45 +01:00
Olaoluwa Osuntokun
ba3688c3b9
netann: add new HostAnnouncer to support dynamic IPs via domains
...
In this commit, we add a new sub-system, then `HostAnnouncer` which
allows a users without a static IP address to ensure that lnd always
announces the most up to date address based on a domain name. A new
command line flag `--external-hosts` has been added which allows a user
to specify one or most hosts that should be periodically resolved to
update any advertised IPs the node has.
Fixes #1624 .
2020-07-06 17:30:08 -07:00
Wilmer Paulino
d0fe8b737b
netann: decode features when creating chan ann from stored chan info
...
This was the only field not properly set when creating a
lnwire.ChannelAnnouncement from a channeldb.ChannelEdgeInfo.
2020-06-01 17:30:23 -07:00
Oliver Gugger
be890ef9be
lnd+server+netann: use signing interface in node signer
2020-05-20 09:05:35 +02:00
Andras Banki-Horvath
2d6c73f0fd
netann: remove unused logClosure
2020-04-24 19:15:08 +02:00
Andras Banki-Horvath
28c2ef12b2
netann: one append instead of appends in a loop
2020-04-24 19:15:08 +02:00
Conner Fromknecht
0f94b8dc62
multi: return input.Signature from SignOutputRaw
2020-04-10 14:27:35 -07:00
Conner Fromknecht
5c2fc4a2d6
discovery/gossiper: use netann pkg for signing channel updates
2020-03-19 13:43:39 -07:00
Conner Fromknecht
5147a6d63d
netann/channel_update: set timestamp via modifier
2020-03-17 16:25:22 -07:00
Conner Fromknecht
f6c194c3cd
netann/node_announcement: consolidate signing logic
2020-03-17 16:25:02 -07:00
Conner Fromknecht
6a813e3433
discovery/multi: move CreateChanAnnouncement to netann
2020-03-17 16:23:54 -07:00
Conner Fromknecht
9d92cfd2b4
netann/channel_update: use generic SignAnnouncement
2020-03-17 16:23:19 -07:00
Conner Fromknecht
df44d19936
discovery/multi: move SignAnnouncement to netann
2020-03-17 16:23:01 -07:00
Joost Jager
3d7de2ad39
multi: remove dead code
2019-09-10 17:21:59 +02:00
Federico Bond
0a9141763e
multi: replace manual CAS with sync.Once in several more modules
2019-06-12 09:37:26 -03:00
Conner Fromknecht
714e42fce2
netann/chan_status_manager: remove unknown edges from passive disable
...
Modifies the netann.ChanStatusManager to remove outpoints
from the set of tracked channels when it encounters a
channeldb.ErrEdgeNotFound when passively disabling. It is
possible for this to occur if a channel is closed w/o first
being disabled, which may happen if the remote party force
closes.
2019-03-12 17:35:12 -07:00
Conner Fromknecht
cd467195d7
netann/chan_status_manager_test: adds ChanStatusManager unit tests
2019-02-14 17:12:59 -08:00
Conner Fromknecht
53797b7dc7
netann/chan_status_manager: adds ChanStatusManager
2019-02-14 17:12:49 -08:00
Conner Fromknecht
b405c87578
netann/channel_state: defines ChanStatus and per-channel state
2019-02-14 17:12:37 -08:00
Conner Fromknecht
559255e6f6
netann/interface: defines chan status mgr interfaces
2019-02-14 17:12:25 -08:00
Conner Fromknecht
a0daf6f59f
netann/channel_update_test: adds unit tests UpdateDisableFlag
2019-02-14 17:12:13 -08:00
Conner Fromknecht
1a7fd6e6f1
netann/channel_update: exposes channel update helpers moved from server
2019-02-14 17:12:03 -08:00
Johan T. Halseth
3c2b46eb8c
Merge pull request #2445 from cfromknecht/netann-logging
...
netann: Add NANN subsystem logger
2019-01-11 10:45:29 +01:00
Conner Fromknecht
4c8b64d2a6
netann/log: add NANN logger
2019-01-09 13:29:46 -08:00
Conner Fromknecht
30441871d3
netann/node_signer: copy and export NodeSigner from main
2019-01-08 16:18:06 -08:00