Commit Graph

10408 Commits

Author SHA1 Message Date
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
Conner Fromknecht
3a4aba463b
routing+watchtower/wtclient: prints stats once per minute 2019-06-19 20:07:11 -07:00
Conner Fromknecht
fad8932d75
watchtower/multi: fix logging in wtclient 2019-06-19 19:57:59 -07:00
Olaoluwa Osuntokun
2305dd1c2c
Merge pull request #3222 from joostjager/fix-cli
lncli: add resetmc and small fixes
2019-06-19 19:24:31 -07:00
Joost Jager
865801c881
lncli: add reset mission control command 2019-06-19 12:37:32 +02:00
Joost Jager
26b2c79159
lncli: add usage to querymc command 2019-06-19 12:37:30 +02:00
Joost Jager
ad2759dc94
lncli: assign category to SendToRoute command 2019-06-19 12:37:28 +02:00
Olaoluwa Osuntokun
507ebea222
Merge pull request #3218 from Roasbeef/fee-estimate-fee-dust
lnwallet/btcwallet: use relay fee not tx fee rate for dust check
2019-06-19 01:13:18 -07:00
Olaoluwa Osuntokun
ac2cea4126
Merge pull request #3220 from wpaulino/set-stopping-on-shutdown
server: properly set stopping atomic var upon shutdown
2019-06-18 20:53:25 -07:00
Olaoluwa Osuntokun
4203542154
btcwallet: update to btcwallet version w/ SendOutputs dust fix 2019-06-18 19:55:26 -07:00
Olaoluwa Osuntokun
2012b5dc1a
lnwallet: fix logic in testCreateSimpleTx test case
In this commit, we fix a logic flaw in the testCreateSimpleTx test case
which emerged once we the bug fix for dust outputs landed. Before this
commit, we would erroneously fail during valid test execution.
2019-06-18 19:55:24 -07:00
Olaoluwa Osuntokun
eaa043f585 lnwallet/btcwallet: use relay fee not tx fee rate for dust check
In this commit we fix a hidden bug in the transaction creating logic
that was only manifested recently due to higher fees on Bitcoin's
mainnet. Before this commit, we would use the target fee rate to
determine if an output was dust or not. However, this is incorrect, as
instead the relay fee should be used as this matches the policy checks
widely deployed in Bitcoin full node today.

To fix this issue we now properly use the relay fee when computing dust.
This fixes the issue for the `EstimateFee` call, but the `SendOutputs`
call also has a similar issue. However, this must be fixed within
`btcwallet` itself, so it has been left out of this commit

Fixes #3217.
2019-06-18 19:55:16 -07:00
Wilmer Paulino
dff7fba40a
server: properly set stopping atomic var upon shutdown 2019-06-18 19:38:20 -07:00
Olaoluwa Osuntokun
b89b27e6ef
Merge pull request #3212 from cfromknecht/getnodeinfo-hide-chans-default
rpcserver: hide channels in getnodeinfo by default
2019-06-18 17:24:20 -07:00
Olaoluwa Osuntokun
5f4accd39f
Merge pull request #3195 from halseth/routeing-nil-copy-pubkey
routing+zpay32: copy pubkeys before nilling Curve and spewing
2019-06-18 17:19:25 -07:00
Johan T. Halseth
97dda4f8c8
channeldb/migrations: skip migration for empty outgoing payments bucket
Previously the migration would fail if the source node was not set in
the database. Since we know that the source node must have been set
before making any payments, we check whether there actually are any
payments to migrate, and return early if not.
2019-06-18 21:14:16 +02:00
Conner Fromknecht
d6d87e12fe
Merge pull request #3213 from Roasbeef/bump-fee-nil-fix
lnrpc/walletrpc: reject nil outpoints as args
2019-06-17 19:57:21 -07:00
Olaoluwa Osuntokun
df53c32489
Merge pull request #3139 from Roasbeef/zero-fees
rpc: update updatechanpolicy to allow zero fees
2019-06-17 18:16:38 -07:00
Olaoluwa Osuntokun
94a20e30e1
lnrpc/walletrpc: reject nil outpoints as args
In this commit, we modify the parsing of user provided outpoints to
ensure that we catch a nil (empty) output early. Otherwise, passing a
set of incorrect arguments would cause `lnd` to crash.
2019-06-17 16:56:16 -07:00
Conner Fromknecht
1c7ad4428c
cmd/lncli/commands: add include_channels flag to getnodeinfo 2019-06-17 16:18:18 -07:00
Olaoluwa Osuntokun
df40a9c1e1
Merge pull request #3177 from halseth/autopilot-targetconf-conf
[autopilot] make confirmation target configurable
2019-06-17 16:05:00 -07:00
Conner Fromknecht
0adc45ab5a
rpcserver: wrap closure args to 80 chars 2019-06-17 11:09:27 -07:00
Conner Fromknecht
a1a3290bda
rpcserver: conditionally include channels in GetNodeInfoResponse 2019-06-17 11:08:44 -07:00
Conner Fromknecht
79e0ca3e44
lnrpc: add include_channels flag to GetNodeInfoRequest 2019-06-17 10:57:45 -07:00