Olaoluwa Osuntokun
8627b5d128
discovery: revamp premature update map
...
Turns out we need it right now to handle some low latency race
conditions in our integration tests, so we'll opt to simply cap the size
of it to a low amount. We use a basic LRU caching mechainsm.
Fixes https://github.com/lightningnetwork/lnd/issues/5076
2021-11-04 15:21:18 -07:00
Olaoluwa Osuntokun
fbbf10fecd
Merge pull request #5933 from Roasbeef/neutrino-13
...
build: upgrade to neutrino v0.13.0
2021-11-04 15:18:13 -07:00
Olaoluwa Osuntokun
36acb107f7
docs/release-notes: add entry for neutrino version upgrade
2021-11-04 15:16:36 -07:00
Olaoluwa Osuntokun
cc643fc0d8
build: upgrade to neutrino v0.13.0
...
Includes some bug fixes, and a measure to make some heretics more
taproot-proof.
2021-11-04 13:59:14 -07:00
Elle Mouton
ac4fe5ff2e
docs: update release notes
2021-11-04 13:27:38 +02:00
Elle Mouton
6ec9c3c58f
server: stagger multi addr connection attempts
...
In this commit, we stagger the connection attempts to the multiple
addresses of a peer.
2021-11-04 13:27:33 +02:00
Elle Mouton
b9b7ea2a6a
server: use one func for peer re-connection
...
Let the connectToPersistentPeer func handle all connection attempts to
persistent peers so that that logic is in once place.
2021-11-04 13:08:50 +02:00
Elle Mouton
789f00746b
server: cleanup persistentPeerAddr when pruned
...
Delete all the stored addresses from the persistentPeerAddr map when we
prune the persistent peer.
2021-11-04 13:05:40 +02:00
Olaoluwa Osuntokun
a6f22c6185
Merge pull request #5928 from Roasbeef/bitcoind-22
...
script: update CI to bitcoind 22
2021-11-03 18:10:40 -07:00
Olaoluwa Osuntokun
906120d80c
docs/release-notes: add bitcoind 22 to release notes
2021-11-03 16:43:32 -07:00
Olaoluwa Osuntokun
56d00f40ef
script: update CI to bitcoind 22
2021-11-03 16:43:27 -07:00
Olaoluwa Osuntokun
859c6d7ac5
Merge pull request #5922 from Roasbeef/graph-cache-panic-fix
...
channeldb: fix crash when inbound policy is unset
2021-11-03 10:30:35 -07:00
Andras Banki-Horvath
4d4b525058
docs: update release notes
2021-11-02 20:19:07 -07:00
Olaoluwa Osuntokun
fc2a29f717
channeldb: add failing test to demonstrate panic w/o graph cache
...
This test panics as is, since we assume the inbound edge is always
there.
2021-11-02 20:19:01 -07:00
Andras Banki-Horvath
ea5d43a2a8
channeldb: fix crash when inbound policy is unset
2021-11-02 20:18:58 -07:00
Olaoluwa Osuntokun
b99157efbe
Merge pull request #5905 from guggero/itest-fixes
...
itest: fix two flakes
2021-11-02 14:59:37 -07:00
Oliver Gugger
eb2be7c7c0
lntest: count unconfirmed balance as well
...
It looks like in some cases (apparently mostly on Windows) a previous
sub test sometimes leaves some unconfirmed balance in the wallet. That
balance is confirmed in the next test when new coins are sent to the
wallet.
2021-11-02 20:36:45 +01:00
Oliver Gugger
066a83315e
docs: update release notes
2021-11-02 20:36:43 +01:00
Oliver Gugger
2a6f128a43
itest: wait for channel to be properly closed
...
It looks like in some cases a channel is still being closed while we
already try to create a sweep output. In that case the pending closed
channel is still counted as anchor channel and a reserve output is
created. To make sure that doesn't happen, we make sure there are no
pending or open channels of any kind around before we create the sweep
transaction.
2021-11-02 20:36:27 +01:00
Oliver Gugger
2ca3eea3f7
itest: fix REST WebSocket ping/pong itest
...
This commit fixes a flake in the REST itest that was caused by an
invoice being created before the actual subscription client was
registered.
2021-11-02 20:36:26 +01:00
Oliver Gugger
32101db873
Merge pull request #5916 from blastshielddown/docs_5899
...
lnrpc: add public key detail to signrpc KeyDescriptor [skip ci]
2021-11-02 15:03:14 +01:00
Oliver Gugger
919b31a67b
Merge pull request #5896 from schjonhaug/instructions-for-creating-swift-protoc-definitions
...
Added instructions on how to build proto definitions for Swift
2021-11-02 15:02:39 +01:00
Michael Rhee
7c18fb64ae
lnrpc: add public key detail to signrpc KeyDescriptor [skip ci]
...
Clarification that KeyDescriptor describes the public key in
raw_key_bytes and the key_loc identifies the private key. Helps
clarify responses from calls like DeriveKey and DeriveNextKey from
WalletKit.
Fixes #5899
2021-11-02 07:57:12 -05:00
Oliver Gugger
97786c72fc
Merge pull request #5878 from halseth/filter-ascii-bbolt-name
...
kvdb/bolt_compact: filter out non-ASCII from bucket name before printing
2021-11-02 10:22:46 +01:00
Oliver Gugger
e399814aea
Merge pull request #5550 from bottlepay/postgres-run-channeldb
...
kvdb: run channeldb test suite on postgres
2021-11-02 10:21:12 +01:00
Johan T. Halseth
7162af7656
docs: update release notes
2021-11-02 08:55:25 +01:00
Johan T. Halseth
6be6585643
kvdb/bolt_compact: filter out non-ASCII from bucket name before printing
...
Printing the raw bucket name lead to weird characters and even sounds
being printed.
2021-11-02 08:54:35 +01:00
Johan T. Halseth
10aaa35db5
kvdb: add loggableKeyName method
...
Safely logs the bucket key name as hex if it includes special
characters.
Co-authored-by: Oliver Gugger <gugger@gmail.com>
2021-11-02 08:54:35 +01:00
Olaoluwa Osuntokun
40ea494d2a
Merge pull request #5913 from bhandras/invoices_5911
...
invoices: do not log when invoice is already deleted
2021-11-01 15:31:53 -07:00
Olaoluwa Osuntokun
df6492d4d7
Merge pull request #5917 from bhandras/le_doc_update
...
docs: update leader election docs [skip ci]
2021-11-01 15:25:58 -07:00
Andras Banki-Horvath
c9533bf6b9
docs: update leader election docs [skip ci]
2021-11-01 16:30:13 +01:00
Andras Banki-Horvath
76065e84d3
invoices: do not log when invoice is already deleted
2021-11-01 16:10:45 +01:00
BhhagBoseDK
16e96784d1
[skip-ci] payments-expiration-grace-period needs time unit
...
[skip-ci]
payments-expiration-grace-period needs time unit h/m/s or else the lnd does not start.
; payments-expiration-grace-period=30s
Corrected minor typo.
2021-11-01 13:13:13 +00:00
Joost Jager
d997bbf6b3
channeldb/test: test with postgres
2021-10-29 10:54:44 +02:00
Joost Jager
7c048efa21
kvdb/postgres/test: single instance embedded postgres database
...
Prepare for parallel tests that use a postgres backend. We don't want a
high number of embedded postgres instances running simultaneously.
2021-10-29 10:54:42 +02:00
Joost Jager
bd291286f7
kvdb/postgres: convert all types of panic data to error
...
Previously the assumption existed that panic data was already an error.
If that wasn't the case for example because panic("string") was used,
the transaction wasn't unlocked.
2021-10-29 10:54:40 +02:00
Olaoluwa Osuntokun
217019aa8a
build: bump version to 0.14.0-beta.rc1
2021-10-28 17:47:35 -07:00
Olaoluwa Osuntokun
66ca2a994b
Merge pull request #5901 from Roasbeef/dedup-interceptor
...
Dedup interceptor
2021-10-28 17:44:49 -07:00
Olaoluwa Osuntokun
7b45a47ce3
docs/release-notes: add entry for HTLC interceptor bug fix
2021-10-28 16:53:44 -07:00
Olaoluwa Osuntokun
52146e0970
Merge pull request #5803 from Roasbeef/amp-set-id-index
...
channeldb+invoices: enable repeated payments to AMP invoices via new HTLC key prefix storage
2021-10-28 16:49:43 -07:00
Roei Erez
fe44aedb25
itest: dedup interceptor packets
...
Aded a test for the dedup intercepted packets of htlc interceptor.
2021-10-28 16:16:55 -07:00
Roei Erez
1f1b33bf85
routerrpc: de-duplicate htlc held by interceptor
...
This commit ensures htlcs currently held by the interceptor
Are not sent again. This prevents potential races in the user code that
may lead to loosing funds.
2021-10-28 16:16:50 -07:00
Olaoluwa Osuntokun
a6e9a17659
docs/release-notes: add note for new AMP invoice features
2021-10-28 15:50:40 -07:00
Olaoluwa Osuntokun
a5ae7fbf9c
lntest: add new itest for repeated payments to the same AMP invoice
2021-10-28 15:50:35 -07:00
Olaoluwa Osuntokun
31336f91b0
invoices: update testSpontaneousAmpPayment for new AMP logic
...
Rather than checking the AMP invoice state itself, we'll instead check
the HTLC state.
2021-10-28 15:50:32 -07:00
Olaoluwa Osuntokun
3935725329
invoices: update cancel logic for AMP invoices to be more efficient
...
By passing in the set ID here, we ensure that we don't need to read ALL
the invoices to update the state of a set of them.
2021-10-28 15:50:30 -07:00
Olaoluwa Osuntokun
01f408ca38
invoices: recognize AMP invoice settles during ntnf dispatch+catchup
...
In this commit, we add the setID to the invoiceEvent struct as it will
be useful when we need to be able to distinguish a new open invoice,
from an AMP invoice that's being settled for the first time.
we then update the logic during notification dispatch to utilize the new
field to allow it to detect the repeated settles of AMP invoices.
2021-10-28 15:50:27 -07:00
Olaoluwa Osuntokun
37fe29af88
channeldb: add new TestSettleIndexAmpPayments test case
2021-10-28 15:50:25 -07:00
Olaoluwa Osuntokun
7dc5efbebf
channeldb: add new test to exercise cancellation of multiple AMP setIDs
2021-10-28 15:50:22 -07:00
Olaoluwa Osuntokun
698b5a8079
lnrpc: populate new AmpInvoiceState field in CreateRPCInvoice
2021-10-28 15:50:20 -07:00