Commit Graph

5957 Commits

Author SHA1 Message Date
6dd4fde56a Fix incorrect hash key in gRPC Ruby documentation 2018-10-26 13:24:30 -07:00
a15be80a45 fundingmanager: identify tx on funding broadcast error 2018-10-26 10:07:36 -07:00
65b2ad9757 Merge pull request #2098 from Roasbeef/neutrino-update-cfheader-fix
build: update to latest neutrino commit
2018-10-25 18:49:03 -07:00
f0b8cb1293 Merge pull request #1981 from wpaulino/routing-hints-unadvertised-nodes
rpc+server: ensure we don't leak unadvertised nodes within invoice routing hints
2018-10-25 18:46:10 -07:00
da00323872 build: update to latest neutrino commit
In this commit, we update to the latest version of neutrino. This
version has an important bug fixes which fixes an issue where we
wouldn't detect a duplicate incoming cfheader message, and panic due to
trying to write the same header twice.
2018-10-25 17:52:44 -07:00
de186b4a06 Revert "make: ensure make fmt is run with -s flag"
This reverts commit e8003af3cd.
2018-10-25 17:11:33 -07:00
071cbcc1ef Merge pull request #2092 from halseth/make-fmt
make: ensure make fmt is run with -s flag
2018-10-25 16:38:36 -07:00
b0318e2b74 config: validate node color after reading config 2018-10-24 22:10:18 -07:00
5c6c966891 Merge pull request #1535 from cfromknecht/wtwire-server
[watchtower/server] Server-Side Wire Protocol
2018-10-24 21:43:11 -07:00
712e7f08f0 watchtower/server/server_test: add test vectors for server behavior 2018-10-24 20:18:22 -07:00
db4c4488c5 watchtower/server/mock: create MockPeer for debug build 2018-10-24 20:18:22 -07:00
48643a1747 watchtower/server/interface: adds Server, Peer and DB 2018-10-24 20:18:22 -07:00
a3e1bb15c5 watchtower/server/log: adds wt SRVR sublogger 2018-10-24 20:18:21 -07:00
73709530e3 watchtower/server/server: server skeleton 2018-10-24 20:18:21 -07:00
fd6024c306 watchtower/wtdb/mock: adds MockDB for debug build 2018-10-24 20:18:21 -07:00
8b47a96459 watchtower/wtdb/session_state_update: adds session state 2018-10-24 20:18:21 -07:00
405838d29c watchtower/wtdb/session_info: adds SessionInfo 2018-10-24 20:18:21 -07:00
e825a756f4 watchtower/wtdb/session_id: adds SessoinID, client pubkey 2018-10-24 20:18:21 -07:00
bc86ccf212 watchtower/wtdb/breach_hint: adds BreachHint, txid prefix 2018-10-24 20:18:17 -07:00
463d352fa8 Merge pull request #1512 from cfromknecht/wtwire
[watchtower/wtwire]: Watchtower Wire Messages
2018-10-24 20:17:02 -07:00
da56aa3528 lnd_test: process all node/edge updates in graph_top_itest
This commit modifies the graph topology test to
properly count channel updates and node
announcments in the event that they are batched
into a single topology update. The prior logic
made the assumption that they were always in
distinct topology updates, so this method should
be more general and robust.
2018-10-24 19:20:01 -07:00
6686ae3001 lnd_test: update testInvoiceRoutingHints to account
In this commit, we open an additional channel between Bob and Carol to
ensure that Bob gets selected as the only routing hint. Previously Bob
would get selected, but with the recent changes, it would no longer
happen due to him not having any advertised edges.
2018-10-24 19:20:01 -07:00
e87d61b7f7 rpc: ensure we don't leak unadvertised nodes within invoice routing hints
In this commit, we ensure that we don't include routing hints for
unadvertised nodes at the time of invoice creation. Otherwise, this
would lead us to leak these unadvertised nodes to anyone who can get
their hands on the invoice being created. To prevent this, we'll now
look at the network graph and ensure that the node in unadvertised if
all of their edges are unadvertised and only extend to us.
2018-10-24 19:20:01 -07:00
cbab298154 chan_series: filter out nodes who intend to remain private
In this commit, we filter out nodes who intend to remain private. We do
this to prevent leaking information about them by forwarding their
NodeAnnouncements.
2018-10-24 19:20:01 -07:00
85cdb18b73 fundingmanager: send NodeAnnouncement to unadvertised channel counterparty
In this commit, we modify the funding manager to send our
NodeAnnouncement to our channel counterparty in the event of an
unadvertised channel. We do this to ensure that our counterparty learns
about some information about us that may aid them in one way or another
(e.g., addresses to reconnect, features supported, etc.).
2018-10-24 19:20:01 -07:00
e8003af3cd make: ensure make fmt is run with -s flag
Linting will fail if code is not formatted with the -s flag, so make
sure we always use it when formatting.
2018-10-24 19:07:42 -07:00
748da2f50a discovery/gossiper_test: modify TestProcessAnnouncement to process node
ann last

In this commit, we modify TestProcessAnnouncement to process the node
announcement last. We do this due to the recent change in the gossiper
where we'll only forward node announcements of nodes who intend to
advertised themselves within the network.

This change was needed in order to allow the node announcement to be
broadcast to the greater network, as otherwise the gossiper would assume
the node intends to stay private due to not having any advertised edges.
2018-10-24 17:28:56 -07:00
80196eb20f discovery: ensure we only broadcast NodeAnnouncements of public nodes
In this commit, we modify the gossiper to no longer broadcast
NodeAnnouncements of nodes who intend to remain private. We do this to
prevent leaking their information to the greater network.
2018-10-24 17:28:55 -07:00
18ecb31983 routing/router: extend ChannelGraphSource interface with IsPublicNode
method
2018-10-24 17:28:54 -07:00
e795f7fce4 channeldb/graph: add method to determine if a node is public
In this commit, we add a method to the ChannelGraph struct that
determines whether a node is seen as public based on graph's source
node's point of view.
2018-10-24 17:28:53 -07:00
9cba3e813a Merge pull request #1992 from halseth/listinvoices-offset
Make reversed listinvoices consistent in edge cases
2018-10-24 17:25:54 -07:00
d67c1fdcaa Merge pull request #1954 from Roasbeef/tor-node-ann-fixes
server: ensure each time we update a node ann we also update the on-disk version
2018-10-24 17:10:42 -07:00
15508df96d Merge pull request #1936 from cfromknecht/cnct-sane-txn-reliable-pub
conctractcourt: check sweep sanity + reliable publication
2018-10-24 17:08:38 -07:00
f9cec4a67b cnct/contract_resolvers: propagate checkpoint failures 2018-10-24 13:57:10 -07:00
f957b78c0b cnct/contract_resolvers: ignore duplicate publication error 2018-10-24 13:57:10 -07:00
682c4c96c7 cnct/contract_resolvers: reliably publish htlc success sweep 2018-10-24 13:57:10 -07:00
b7aebd92cf cnct/contract_resolvers: reliably publish commit sweep 2018-10-24 13:57:10 -07:00
1b0d8e8f13 Merge pull request #2059 from wpaulino/openchannel-unconfirmed-funds
rpc: prevent spending unconfirmed funds within OpenChannel by default
2018-10-23 19:58:43 -07:00
7166130037 lnd_test: add onion addresses to testNodeAnnouncement
In this commit, we include onion addresses in testNodeAnnouncement to
ensure they properly propagate throughout the network.
2018-10-23 18:42:33 -07:00
0879a7354f server: re-work initial node ann creation to use LightnignNode.NodeAnnouncement 2018-10-23 18:42:31 -07:00
e360005452 server: ensure we update our node ann with new tor addrs in initTorController
Fixes #1939.
2018-10-23 18:42:30 -07:00
338946eda4 server: update genNodeAnnouncement to also write new node ann to disk
In this commit, we update the genNodeAnnouncement method to also write
an updated version of the node announcment to disk. Before this commit,
we would update the in memory version, but then never write the new
version to disk. As a result, when connecting to new peers, we would
never propagate the new version of this announcement to the network.
2018-10-23 18:42:29 -07:00
eaa613f4f5 discovery+chan_series: replace usage of makeNodeAnn w/ new NodeAnnouncement method 2018-10-23 18:42:28 -07:00
2dcbdf2622 lnwallet: fix logging error when fee is too low in BtcdFeeEstimator 2018-10-23 18:42:26 -07:00
28cf413055 channeldb: add method to retrieve a node's node announcement 2018-10-23 18:42:25 -07:00
8acd13a094 watchtower/wtwire/wtwire_test: adds quick tests wtwire msgs 2018-10-23 18:28:30 -07:00
42a4b373a6 watchtower/wtwire/state_update_reply: ack w/ highest seqnum or error 2018-10-23 18:28:28 -07:00
fdd3ad3149 watchtower/wtwire/state_update: sends encrypted blobs 2018-10-23 18:28:27 -07:00
216c77e10e watchtower/wtwire/create_session_reply: accept/deny session init 2018-10-23 18:28:26 -07:00
71541bc94e watchtower/wtwire/create_session: propose new session 2018-10-23 18:28:25 -07:00