9502 Commits

Author SHA1 Message Date
Wilmer Paulino
4a91472469 wtclient: refactor existing candidate session filtering into method 2020-05-18 19:24:52 -07:00
Olaoluwa Osuntokun
7daead6d85 Merge branch 'v0.10.1-beta-4257' into v0.10.1-beta-rc1-branch 2020-05-18 19:24:17 -07:00
Joost Jager
5e83ed9d89 routing+routerrpc: add multiple outgoing channel restriction 2020-05-18 19:23:12 -07:00
Joost Jager
389b715f15 routing/test: add channel id constants 2020-05-18 19:20:15 -07:00
Olaoluwa Osuntokun
eb445d5789 Merge branch 'v0.10.1-beta-2668' into v0.10.1-beta-rc1-branch 2020-05-18 19:19:34 -07:00
Conner Fromknecht
412d7f5c38 config: adds cli configurable --migration-dry-run 2020-05-18 19:18:25 -07:00
Conner Fromknecht
4b7e8669ac channeldb/db: adds optional dry-run abort for migrations 2020-05-18 19:17:08 -07:00
Olaoluwa Osuntokun
935c2f2c10 Merge branch 'v0.10.1-beta-4253' into v0.10.1-beta-rc1-branch 2020-05-18 19:16:41 -07:00
Olaoluwa Osuntokun
3c0b438f16 cmd/lncli: remove usage of Millisecond() for Go 1.12
The new table format for the pay command started to use the
`Millisecond()` method on `time.Duration`. However, this method was only
added in Go 1.13, so this breaks the build for Go 1.12. We replace this
by manual division. `time.Duration` "natively" is in nanoseconds, so we
covert to milli seconds by dividing my `time.Millisecond`, which is
1,000,000.
2020-05-18 19:16:41 -07:00
Olaoluwa Osuntokun
b38c529ba8 Merge branch 'v0.10.1-beta-4234' into v0.10.1-beta-rc1-branch 2020-05-18 19:16:13 -07:00
carla
3289b31b09 lntest/test: add htlc events test to multi-hop error propagation 2020-05-18 19:16:13 -07:00
carla
a80c69982d lntest/test: move multi-hop error propagation into its own file 2020-05-18 19:16:13 -07:00
carla
926892c906 lntest/test: test htlcnotifier stream for successful multi-hop payments 2020-05-18 19:16:13 -07:00
carla
d70f77efaf lntest/test: move multi-hop payments test into own file 2020-05-18 19:16:13 -07:00
carla
08da737316 lnrpc: add failure detail none to link event rpc 2020-05-18 19:16:13 -07:00
Olaoluwa Osuntokun
913c787082 Merge branch 'v0.10.1-beta-4241' into v0.10.1-beta-rc1-branch 2020-05-18 19:15:32 -07:00
Olaoluwa Osuntokun
f8b85eaf12 channeldb: eliminate extra copy in QueryPayments
In this commit, we eliminate an extraneous copy in the `QueryPayments`
method. Before this commit, we would copy each payment from the initial
FetchPayments call into a new slice. However, pointers to payments are
return from `FetchPayments`, so we can just maintain that same reference
rather than copying again when we want to limit our response.
2020-05-18 19:15:32 -07:00
Olaoluwa Osuntokun
4384978728 Merge branch 'v0.10.1-beta-4176' into v0.10.1-beta-rc1-branch 2020-05-18 19:14:56 -07:00
Wilmer Paulino
97e5763601 rpcserver: omit uptime in ListChannels response if server not started
If the server hasn't fully started yet, it's possible that the channel
event store hasn't either, so it won't be able to consume any requests
until then. To prevent blocking, we'll just omit the uptime related
fields for now.
2020-05-18 19:14:56 -07:00
Wilmer Paulino
08f25bb5bf rpcserver: include upfront shutdown script in ListChannels response
This field could be omitted from the response if we were unable to
calculate the channel's uptime.
2020-05-18 19:14:56 -07:00
Olaoluwa Osuntokun
1a3194d302
build: bump version to v0.10.0-beta v0.10.0-beta 2020-04-29 10:21:45 -07:00
Olaoluwa Osuntokun
1d548684e2
build: bump version to v0.10.0-beta.rc6 v0.10.0-beta.rc6 2020-04-28 19:53:28 -07:00
Olaoluwa Osuntokun
957b34262a
Merge pull request #4230 from wpaulino/increase-zmq-timeout
chainregistry: increase zmq connection timeout with bitcoind backend
2020-04-28 19:49:12 -07:00
Olaoluwa Osuntokun
948fe8cfdb
Merge pull request #4224 from guggero/psbt-warning
lncli+docs: add safety warning about not publishing PSBT manually
2020-04-28 19:40:15 -07:00
Wilmer Paulino
c039aee059
chainregistry: increase zmq connection timeout with bitcoind backend
There seems to be a misinterpretation of a variable between the
btcwallet and gozmq libraries. When establish a ZMQ connection, it
expects a timeout, which is used to set read deadlines and determine how
long we should wait before attempting a reconnection. Within btcwallet
and lnd however, this is is interpreted as a polling duration,
explaining the current value of 100ms. Under load, especially on
less-capable hardware, this leads to high resource usage as we get into
a constant reconnection loop. To remedy this, we use a timeout of 5s
instead, which is a much more reasonable value for read timeouts, and is
also what's used for LN peers.
2020-04-28 11:15:44 -07:00
Oliver Gugger
fb17e9b863
docs: add PSBT publish warning 2020-04-26 21:05:24 +02:00
Oliver Gugger
d765e73e57
lncli: add PSBT publish warning 2020-04-26 21:05:13 +02:00
Olaoluwa Osuntokun
0cf63ae898
build: bump version to 0.10.0-beta.rc5 v0.10.0-beta.rc5 2020-04-23 18:13:24 -07:00
Olaoluwa Osuntokun
444eec2abc
Merge pull request #4196 from joostjager/lncli-live
lncli: live table-based payment updates
2020-04-23 18:11:07 -07:00
Joost Jager
f6b2410011
routing+routerrpc: rename max_shards to max_parts
Don't introduce a new term and align with the P in MPP.
2020-04-22 14:49:19 +02:00
Joost Jager
8d7e07d96b
lncli: live table-based payment updates 2020-04-22 14:49:17 +02:00
Olaoluwa Osuntokun
ce0a61abeb
lnrpc/invoicesrpc: linter fix 2020-04-21 22:19:24 -07:00
Olaoluwa Osuntokun
0bc05f9d65
build: bump version to bump version to v0.10.0-beta.rc4 v0.10.0-beta.rc4 2020-04-21 18:12:57 -07:00
Olaoluwa Osuntokun
cd9c1c7746 Revert "lncli: live table-based payment updates"
This reverts commit 6ffdf7ef1fa080844af9fced3a57e54d0ee22729.
2020-04-21 18:03:57 -07:00
Olaoluwa Osuntokun
6591408a9e
build: bump version to bump version to v0.10.0-beta.rc3 v0.10.0-beta.rc3 2020-04-21 17:30:39 -07:00
Joost Jager
6ffdf7ef1f
lncli: live table-based payment updates 2020-04-21 17:02:15 -07:00
Joost Jager
d51bb65536
routerrpc+lncli: add flag to suppress in-flight updates
This is a preparation for enabling the REST interface on routerrpc.
It provides REST clients that don't support server-side streaming
via keep-alive connections to use the streaming endpoint in the
typical request/response pattern. The url just needs to contain
?no_inflight_updates=true and only the terminal response is sent
back before the connection is closed.
2020-04-21 17:02:09 -07:00
Olaoluwa Osuntokun
1e51ec0a2d
lnrpc/invoicesrpc: clamp down on max invoice size
In this commit, we move to clamp down somewhat on the max invoice size
after the limit was removed as part of the mpp changes. In #4210, it was
reported that a value of -1, would underflow and end up as 18 million
BTC, which would trip checks w.r.t the max expressible value in mSAT.
In this commit, we clamp things down to 100k BTC, which should be more
than enough for anybody.

Fixes #4210.
2020-04-21 16:44:44 -07:00
Olaoluwa Osuntokun
b4e98874de
Merge pull request #4212 from guggero/make-release
make+build: call release script from make
2020-04-21 16:16:12 -07:00
Olaoluwa Osuntokun
024980a23f
Merge pull request #4205 from cfromknecht/mailbox-test-fixups
htlcswitch/mailbox_test: use mailboxContext everywhere
2020-04-21 16:12:15 -07:00
Olaoluwa Osuntokun
528dadd04b
Merge pull request #4211 from cfromknecht/absolute-fee-floor
lnwallet: absolute fee floor sanity check
2020-04-21 16:11:43 -07:00
Olaoluwa Osuntokun
c70a333ea7
Merge pull request #4182 from joostjager/routerrpc-legacy-revival
routerrpc: revive legacy send and track rpcs
2020-04-21 16:07:23 -07:00
Conner Fromknecht
89bd58786e
lnwallet/channel: enforce absolute fee floor of 250 sat/kw
This enforces the _actualized_ fee rate of the  commitment transaction,
rather than the fee floor used for estimation. The new value of 250
sat/kw corresponds to 1 sat/byte, rather than 253 which is only rounded
up during estimation to account for the fact that BOLT 3 rounds down to
the nearest satoshi and that the vbyte fee estimation is lossy.

Previously we would incorrectly fail to sign the next commitment even
though the fee was technically high enough. Restarting with this commit
should solve the issue as long as the channel hasn't already gone to
chain.
2020-04-21 12:37:34 -07:00
Joost Jager
7fe100bcfb
routerrpc: bring back legacy track and send rpcs
To soften the transition for routerrpc users to the V2 messages.
2020-04-21 20:37:45 +02:00
Joost Jager
ad5f1404cb
lnrpc: remove experimental tag from payment htlcs 2020-04-21 20:36:59 +02:00
Joost Jager
d451ef4ee1
routerrpc: rename rpcs to SendPaymentV2 and TrackPaymentV2
The message in the response stream changed. Rename the calls themselves,
to prevent older applications from getting decode errors. Especially
troublesome is the case where the request is executed (send payment),
but the application can't read the outcome (payment sent or not?)
2020-04-21 20:36:58 +02:00
Oliver Gugger
4384319b4a
travis: use make command for windows build 2020-04-21 11:28:42 +02:00
Oliver Gugger
c08ddad22e
build/README: describe how to use make release 2020-04-21 11:28:41 +02:00
Oliver Gugger
317ccb2cc9
make+build: call release script from makefile 2020-04-21 11:28:41 +02:00
Oliver Gugger
ce00f52ca2
make: add new release flags 2020-04-21 11:16:39 +02:00