Commit Graph

7427 Commits

Author SHA1 Message Date
Conner Fromknecht
05107ce969
watchtower/wtdb: fix double hex encoding of chanid 2019-07-01 13:11:58 -07:00
Olaoluwa Osuntokun
6a4179e224
Merge pull request #3253 from Roasbeef/second-dns-seed
multi: add secondary DNS seed for bootstrap, add exponential back off to initial bootstrap
2019-06-28 18:32:04 -07:00
Olaoluwa Osuntokun
7779a8f4bd
Merge pull request #3255 from Roasbeef/btcwallet-fix
build: update to btcwallet version w/ btcd rescan optimization
2019-06-28 18:30:05 -07:00
Olaoluwa Osuntokun
04512a1a93
build: update to latest btcd with rescan optimization 2019-06-28 17:39:32 -07:00
Olaoluwa Osuntokun
dad1ed2d71
build: update to latest neutrino version w/ flake fix 2019-06-28 17:15:55 -07:00
Olaoluwa Osuntokun
998cf42ac3
build: update to btcwallet version w/ btcd rescan optimization 2019-06-28 17:02:02 -07:00
Olaoluwa Osuntokun
b60e6d6f53
Merge pull request #3254 from cfromknecht/stricter-confirmation-matching
chainntnfs: stricter historical confirmation matching
2019-06-28 16:48:11 -07:00
Olaoluwa Osuntokun
831afdc919
lnd: add secondary DNS seed for mainnet 2019-06-28 16:10:52 -07:00
Olaoluwa Osuntokun
0470d27603
server: add an exponential back off to initialPeerBootstrap
In this commit we add exponential back off to the `initialPeerBootstrap`
method. Before this change, if the DNS seed was down, we would hammer it
in an attempt to get our initial set of peers. This makes this section a
bit less aggressive, but saves log spam and also will hit the DNS
servers less frequently.
2019-06-28 16:10:50 -07:00
Olaoluwa Osuntokun
efab9cb584
server: extract backOffCeiling into bootstrapBackOffCeiling as constant 2019-06-28 16:10:49 -07:00
Olaoluwa Osuntokun
abe73ca6c1
server: don't re-use existing wait group for loops within initialPeerBootstrap 2019-06-28 16:10:48 -07:00
Olaoluwa Osuntokun
9c957193cf
discovery: remove retries from DNS based SampleNodeAddrs, allow down seeds
In this commit, we modify the `SampleNodeAddrs` method to no longer
retry itself. Instead, we'll now leave this task to the caller of the
this method. Additionally, we'll no longer return with an error if we
can't hit a particular seed. Instead, we'll log the error and move onto
the next seed. Finally, we'll also no longer require that the DNS seed
has a secondary seed in order to support a wider array of DNS seeds.
2019-06-28 16:10:47 -07:00
Olaoluwa Osuntokun
7f48ff6717 watchtower: fix linter errors 2019-06-28 16:10:41 -07:00
Olaoluwa Osuntokun
c68f747b4f
Merge pull request #3227 from 2xic/issue_3074
lnd: reject custom fee when force closing channel
2019-06-28 13:37:21 -07:00
Conner Fromknecht
d5da18827e
chainntnfs/interface: stricter conf dispatch for txindex 2019-06-27 20:24:23 -07:00
Conner Fromknecht
50f7f7f1b7
chainntnfs/txnotifier: stricter confirmation matching via scripts 2019-06-27 20:24:23 -07:00
Conner Fromknecht
e10d4e9047
chainntnfs/multi: replace txid with ConfRequest in txindex matching 2019-06-27 20:24:21 -07:00
Conner Fromknecht
922a980bd7
chainntnfs/interface: fix incorrect statuses for deserialization errors 2019-06-27 20:23:18 -07:00
Conner Fromknecht
91a44c001c
chainntnfs/multi: add interfaced ConfDetailsFromTxIndex
Removes the code duplication between bitcoind and btcd, by creating an
abstracted version of confDetailsFromTxIndex in the main chainntfns
package.
2019-06-27 20:23:16 -07:00
Olaoluwa Osuntokun
3c4c4f873b
Merge pull request #3248 from joostjager/querymc-binding-bug
routerrpc: fix loop variable binding bug in querymc
2019-06-27 17:25:58 -07:00
Olaoluwa Osuntokun
f12159c756
Merge pull request #3250 from OpinionatedGeek/master
Docker builds don't work with Loop
2019-06-27 16:58:54 -07:00
Geoff Taylor
9e3659bc8f Added routerrpc subsystem to LND Dockerfiles so that Loop can work with docker builds. 2019-06-27 10:33:16 +01:00
Joost Jager
e2af3c0fa7
routerrpc: fix loop variable binding bug in querymc
This bug caused all node pubkey to be the same.
2019-06-26 16:48:46 +02:00
2xic
fcaf8c029b lnd: reject custom fee when force closing channel 2019-06-21 11:14:13 +02:00
Olaoluwa Osuntokun
0e28ecd616
Merge pull request #3231 from Roasbeef/wallet-restore-fix
build: update btcwallet to version with seed restore fix
2019-06-20 19:45:55 -07:00
Olaoluwa Osuntokun
8ee803e449
Merge pull request #3232 from cfromknecht/filter-non-target-sessions
watchtower/wtclient: filter non-target towers from candidates
2019-06-20 19:44:35 -07:00
Olaoluwa Osuntokun
2a6f2bbd47
release: update to include tower rpc build tag 2019-06-20 18:18:08 -07:00
Conner Fromknecht
bf042f1271
watchtower/wtclient: filter non-target towers from candidates 2019-06-20 18:17:23 -07:00
Olaoluwa Osuntokun
0506b1e587
Merge pull request #3224 from cfromknecht/wtserver-key-family
watchtower: use separate key family for wtserver public key, add watchtower subserver
2019-06-20 18:01:21 -07:00
Olaoluwa Osuntokun
32d6658503
Merge pull request #3211 from halseth/migration-outgoing-payments-no-source
channeldb/migrations: skip migration for empty outgoing payments bucket
2019-06-20 17:57:59 -07:00
Olaoluwa Osuntokun
3cf7c3a7b4
Merge pull request #3219 from wpaulino/node-ann-broadcast
discovery: set source of node announcement broadcast to belonging node
2019-06-20 17:26:23 -07:00
Conner Fromknecht
24b160b1c4
cmd/lncli/watchtower: add tower info command 2019-06-20 17:04:04 -07:00
Conner Fromknecht
ea311649b4
lnd: use distinct pubkey for watchtowers and server 2019-06-20 17:04:04 -07:00
Conner Fromknecht
a7415336bc
keychain/derivation: add KeyFamilyTowerKey distinct from NodeID 2019-06-20 17:04:04 -07:00
Conner Fromknecht
f7da87acc4
lntest+make: build w/ watchtowerrpc tag, add grpc client to harness 2019-06-20 17:04:04 -07:00
Conner Fromknecht
ccb2b29b93
lnrpc/watchtowerrpc/driver: register watchtower rpc server on init 2019-06-20 17:04:04 -07:00
Conner Fromknecht
59c9418eca
lnd+rpcserver: thread watchtower into subserver configs 2019-06-20 17:04:04 -07:00
Conner Fromknecht
c06d71530a
watchtowerrpc/standalone: implement watchtowerrpc.WatchtowerBackend iface 2019-06-20 17:04:04 -07:00
Conner Fromknecht
fa966a4901
watchtower: add externalip CLI configuration 2019-06-20 17:04:03 -07:00
Conner Fromknecht
7e81a5144e
watchtower: rename DefaultPeerPortStr -> DefaultListenAddr 2019-06-20 17:04:03 -07:00
Conner Fromknecht
b98bc76878
lnrpc/watchtowerrpc/handler: implement Watchtower gRPC server 2019-06-20 17:04:03 -07:00
Olaoluwa Osuntokun
3694f1b306
build: update to versino of neutrino w/ deadlock fix 2019-06-20 17:00:33 -07:00
Conner Fromknecht
0db39d4fe6
lnrpc/watchtowerrpc: add WatchtowerBackend configs 2019-06-20 16:53:25 -07:00
Conner Fromknecht
72e4fbff97
lnrpc/watchtowerrpc: add protos for GetInfo 2019-06-20 16:53:09 -07:00
Olaoluwa Osuntokun
a25c06bc8f
build: update btcwallet to version with seed restore fix
Fixes #3223.
2019-06-20 16:34:47 -07:00
Olaoluwa Osuntokun
82c776a75b
Merge pull request #3228 from halseth/lnrpc-extra-space
[trivial] lnrpc/rpc.proto: remove trailing spaces
2019-06-20 16:20:20 -07:00
Conner Fromknecht
997023cd7a
Merge pull request #3226 from cfromknecht/wtclient-log-fixups
watchtower/multi: fix logging in wtclient
2019-06-20 14:10:02 -07:00
Wilmer Paulino
67132d4ee3
discovery: set source of node announcement broadcast to belonging node
We do this to ensure the node announcement propagates to our channel
counterparty. At times, the node announcement does not propagate to them
when opening our first channel due to a race condition between
IsPublicNode and processing announcement signatures. This isn't
necessary for channel updates and announcement signatures as we send
those to our channel counterparty directly through the reliable sender.
2019-06-20 13:59:37 -07:00
Johan T. Halseth
7c4c64fffc
lnrpc/rpc.proto: remove trailing spaces 2019-06-20 14:35:39 +02:00
Olaoluwa Osuntokun
4247ee20b3
Merge pull request #3225 from cfromknecht/relax-stat-tickers
routing+watchtower/wtclient: prints stats once per minute
2019-06-19 22:39:48 -07:00