Commit Graph

9537 Commits

Author SHA1 Message Date
Olaoluwa Osuntokun
352d45a11e
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-06 16:22:47 -07:00
Olaoluwa Osuntokun
0dfb946afd
Merge pull request #4241 from Roasbeef/listpayment-copy
channeldb: eliminate extra copy in QueryPayments
2020-05-05 15:36:46 -07:00
Conner Fromknecht
fcc18b6815
Merge pull request #4221 from guggero/move-release
build: move release script and README to more appropriate locations
2020-05-05 09:33:53 -07:00
Olaoluwa Osuntokun
3769f74795
Merge pull request #4148 from carlaKC/lnwallet-evaluatehtlccoverage
lnwallet/test: add coverage for evaluateHtlcView
2020-05-04 17:30:31 -07:00
Olaoluwa Osuntokun
bc49141ad5
Merge pull request #4242 from joostjager/itest-log-case-insensitive
itest: case insensitive log errors check
2020-05-04 16:57:29 -07:00
Joost Jager
b59c0e1349
itest: add SendPaymentV2 to whitelist 2020-05-04 23:42:57 +02:00
Joost Jager
542e1466b1
itest: case insensitive log errors check 2020-05-04 22:20:24 +02:00
Olaoluwa Osuntokun
cc1dbb5677
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-04 12:13:47 -07:00
Conner Fromknecht
315c56607c
Merge pull request #4161 from joostjager/itest-err-guard
itest: check for new errors in logs
2020-05-04 10:15:49 -07:00
Conner Fromknecht
10112af76b
Merge pull request #4239 from theStack/20200502-doc-fix-numleadingzerobytes-comments
tlv: fix comments for numLeadingZeroBytes{32,64} funcs
2020-05-04 10:03:17 -07:00
carla
2a3d1cb6fa
lnwallet/test: add tests for process fee update and add and remove 2020-05-03 14:10:33 +02:00
carla
3743fc6cf4
lnwallet/test: add unit test for evaluateHtlcView 2020-05-03 14:10:01 +02:00
carla
54a06cb96a
lnwallet: extract fetchparent for individual testing 2020-05-03 14:09:58 +02:00
Sebastian Falbesoner
890bcb2ade tlv: fix comments for numLeadingZeroBytes{32,64} funcs 2020-05-02 00:42:55 +02:00
Oliver Gugger
2c979fc179
Merge pull request #4237 from theStack/20200501-doc-fix-tab-size-in-contrib-guidelines
docs: fix tab size (8 spaces) in contribution guidelines
2020-05-01 21:31:56 +02:00
Sebastian Falbesoner
11638845e4 docs: fix tab size (8 spaces) in contribution guidelines 2020-05-01 20:25:53 +02:00
Conner Fromknecht
20a776d703
Merge pull request #4194 from wpaulino/ignore-tor-inbound-reconnect
server: ignore reconnection for unadvertised inbound peers over Tor
2020-04-30 20:38:16 -07:00
Conner Fromknecht
1bfe52837d
Merge pull request #4176 from wpaulino/listchannels-uptime-before-server-active
rpcserver: omit uptime in ListChannels response if server not started
2020-04-30 20:33:37 -07:00
Olaoluwa Osuntokun
9f5f48b20d
Merge pull request #4089 from fguisso/acceptor
rpcserver: parameterize acceptortimeout
2020-04-30 19:03:55 -07:00
Olaoluwa Osuntokun
e8c365dc2e
Merge pull request #4207 from ErikEk/tor-socks-control-port-fix
tor: socks and control can not use the same host:port
2020-04-30 19:02:38 -07:00
Olaoluwa Osuntokun
ea5193b104
Merge pull request #4192 from bhandras/fixes
mixed: apply fixes recommended by staticcheck and dead code removal
2020-04-30 19:01:53 -07:00
Olaoluwa Osuntokun
1a3194d302
build: bump version to v0.10.0-beta 2020-04-29 10:21:45 -07:00
Olaoluwa Osuntokun
1d548684e2
build: bump version to 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
Andras Banki-Horvath
556e3525ea misc: fix error formatting in multiple files 2020-04-24 19:15:08 +02:00
Andras Banki-Horvath
2b729a78f3 lntest: fix ticker leak 2020-04-24 19:15:08 +02:00
Andras Banki-Horvath
633ea71ad1 lnd: time.Since instead of time.Now().Sub(...) 2020-04-24 19:15:08 +02:00
Andras Banki-Horvath
fe59890a4b lnd+test: remove dead test code 2020-04-24 19:15:08 +02:00
Andras Banki-Horvath
ed595adf59 lnd: one append instead of appends in a loop 2020-04-24 19:15:08 +02:00
Andras Banki-Horvath
63419c1870 lnd: remove dead code from nursery_store 2020-04-24 19:15:08 +02:00
Andras Banki-Horvath
62e6c392a5 lnd: remove dead code from fundingmanager 2020-04-24 19:15:08 +02:00
Andras Banki-Horvath
2d6c73f0fd netann: remove unused logClosure 2020-04-24 19:15:08 +02:00
Andras Banki-Horvath
f39387db3b monitoring: removing unused logClosure 2020-04-24 19:15:08 +02:00
Andras Banki-Horvath
0679d1dd4b autopilot: append instead of appends in a loop 2020-04-24 19:15:08 +02:00
Andras Banki-Horvath
28c2ef12b2 netann: one append instead of appends in a loop 2020-04-24 19:15:08 +02:00
Andras Banki-Horvath
f3f482d9f9 watchtower: one append instead of appends in a loop 2020-04-24 19:15:08 +02:00
Andras Banki-Horvath
ebf058a2a5 routing: static check fix, time.Since instead of Now().Sub() 2020-04-24 19:15:08 +02:00
Andras Banki-Horvath
4773ae17d9 routing: remove unused code 2020-04-24 19:15:08 +02:00
Andras Banki-Horvath
e9d7ba635c lnwallet: remove redundant return 2020-04-24 19:15:08 +02:00
Andras Banki-Horvath
b93140cd3c switch: remove unused code 2020-04-24 19:15:08 +02:00
Andras Banki-Horvath
ccf6e2a393 contractcourt: remove redundant return 2020-04-24 19:15:08 +02:00
Andras Banki-Horvath
1519a1bdfe channelnotifier: remove dead logging code 2020-04-24 19:15:08 +02:00
Andras Banki-Horvath
e1385af5a6 watchtower: remove dead logging code 2020-04-24 19:15:08 +02:00
Andras Banki-Horvath
72ed30e3e5 tlv: simplify byte slice comparison as recommenteded by static analysis 2020-04-24 19:15:08 +02:00
Andras Banki-Horvath
da9d7dd363 zpay32: invoice.MilliSat is uint64 which cannot be negative 2020-04-24 19:15:08 +02:00
Andras Banki-Horvath
1a13f822c6 invoices: remove dead code from logger 2020-04-24 19:15:08 +02:00