Commit Graph

9608 Commits

Author SHA1 Message Date
2b729a78f3 lntest: fix ticker leak 2020-04-24 19:15:08 +02:00
633ea71ad1 lnd: time.Since instead of time.Now().Sub(...) 2020-04-24 19:15:08 +02:00
fe59890a4b lnd+test: remove dead test code 2020-04-24 19:15:08 +02:00
ed595adf59 lnd: one append instead of appends in a loop 2020-04-24 19:15:08 +02:00
63419c1870 lnd: remove dead code from nursery_store 2020-04-24 19:15:08 +02:00
62e6c392a5 lnd: remove dead code from fundingmanager 2020-04-24 19:15:08 +02:00
2d6c73f0fd netann: remove unused logClosure 2020-04-24 19:15:08 +02:00
f39387db3b monitoring: removing unused logClosure 2020-04-24 19:15:08 +02:00
0679d1dd4b autopilot: append instead of appends in a loop 2020-04-24 19:15:08 +02:00
28c2ef12b2 netann: one append instead of appends in a loop 2020-04-24 19:15:08 +02:00
f3f482d9f9 watchtower: one append instead of appends in a loop 2020-04-24 19:15:08 +02:00
ebf058a2a5 routing: static check fix, time.Since instead of Now().Sub() 2020-04-24 19:15:08 +02:00
4773ae17d9 routing: remove unused code 2020-04-24 19:15:08 +02:00
e9d7ba635c lnwallet: remove redundant return 2020-04-24 19:15:08 +02:00
b93140cd3c switch: remove unused code 2020-04-24 19:15:08 +02:00
ccf6e2a393 contractcourt: remove redundant return 2020-04-24 19:15:08 +02:00
1519a1bdfe channelnotifier: remove dead logging code 2020-04-24 19:15:08 +02:00
e1385af5a6 watchtower: remove dead logging code 2020-04-24 19:15:08 +02:00
72ed30e3e5 tlv: simplify byte slice comparison as recommenteded by static analysis 2020-04-24 19:15:08 +02:00
da9d7dd363 zpay32: invoice.MilliSat is uint64 which cannot be negative 2020-04-24 19:15:08 +02:00
1a13f822c6 invoices: remove dead code from logger 2020-04-24 19:15:08 +02:00
e636364ccf channeldb: remove dead code from payments test 2020-04-24 19:15:08 +02:00
3628e65378 channeldb: (nit) remove size argument from map make 2020-04-24 19:15:08 +02:00
c7fa5ea863 queue: remove unsued waitgroup queue/v1.0.4 2020-04-24 19:15:08 +02:00
caf4cb16c4 build+make: move release script
Because this script is now run from the main Makefile, it is more
suitable to be located in the main scripts folder where the other
build related scripts reside.
2020-04-24 14:29:06 +02:00
f4901d8ff9 docs: move build/release/README.md to docs/release.md
This readme file is better located in the docs directory as we
are going to move the release script itself as well in the next
commit.
2020-04-24 14:28:27 +02:00
0cf63ae898 build: bump version to 0.10.0-beta.rc5 v0.10.0-beta.rc5 2020-04-23 18:13:24 -07:00
444eec2abc Merge pull request #4196 from joostjager/lncli-live
lncli: live table-based payment updates
2020-04-23 18:11:07 -07:00
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
8d7e07d96b lncli: live table-based payment updates 2020-04-22 14:49:17 +02:00
ce0a61abeb lnrpc/invoicesrpc: linter fix 2020-04-21 22:19:24 -07:00
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
cd9c1c7746 Revert "lncli: live table-based payment updates"
This reverts commit 6ffdf7ef1f.
2020-04-21 18:03:57 -07:00
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
6ffdf7ef1f lncli: live table-based payment updates 2020-04-21 17:02:15 -07:00
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
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
b4e98874de Merge pull request #4212 from guggero/make-release
make+build: call release script from make
2020-04-21 16:16:12 -07:00
024980a23f Merge pull request #4205 from cfromknecht/mailbox-test-fixups
htlcswitch/mailbox_test: use mailboxContext everywhere
2020-04-21 16:12:15 -07:00
528dadd04b Merge pull request #4211 from cfromknecht/absolute-fee-floor
lnwallet: absolute fee floor sanity check
2020-04-21 16:11:43 -07:00
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
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
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
ad5f1404cb lnrpc: remove experimental tag from payment htlcs 2020-04-21 20:36:59 +02:00
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
4384319b4a travis: use make command for windows build 2020-04-21 11:28:42 +02:00
c08ddad22e build/README: describe how to use make release 2020-04-21 11:28:41 +02:00
317ccb2cc9 make+build: call release script from makefile 2020-04-21 11:28:41 +02:00
ce00f52ca2 make: add new release flags 2020-04-21 11:16:39 +02:00
3ab5899853 lnwallet/channel: fix log typo 2020-04-20 22:12:49 -07:00