Commit Graph

812 Commits

Author SHA1 Message Date
6980a18ab1 Merge pull request #6712 from Roasbeef/itest-keep-failed-payments
lntest: keep all failed payments by default for HarnessNode
2022-07-08 14:31:37 +02:00
713c996d20 Merge pull request #6709 from ellemouton/guaranteeRPCInterceptorOrder
rpcperms: guarantee execution order of interceptors
2022-07-08 12:27:08 +02:00
2a18263336 lntest: keep all failed payments by default for HarnessNode
In this commit, we fix a detected flake: we go to make a payment, and
then want to assert that 2 attempts we required. The existing logic
assumes that the success and the payment will still be on disk. With a
recent PR, we now delete failed payments by default, but after the fact,
in a non-atomic fashion.

We fix this issue simply by having all the nodes keep around failed
payments for the sake of all the old itests that assumed this
information would always be on disk.

Introduced in: https://github.com/lightningnetwork/lnd/pull/6438.

Fixes https://github.com/lightningnetwork/lnd/issues/6711.
2022-07-07 19:28:30 -07:00
a87ff413c4 release-notes: update for 0.15.0 2022-07-07 17:10:31 -04:00
0d55deac63 rpcperms: enforce order of interceptors
In this commit, we let the registered middleware interceptors be stored
in a slice rather than a map so that the order in which the interceptors
are executed is guarenteed to be the same as the order in which they
were registered.
2022-07-07 17:16:42 +02:00
e073b1d343 macaroons: futher abstract NewService from root key store impl
In this commit, we modify the `macaroons.NewService` consturctor to
accept the main interface rather than the raw DB. This allows us to use
other backends other than bolt or the kvdb interface to store the
macaroon root keys.

We also create a new ExtendedRootKeyStore interface that implements some
of the more advanced features we use such as macaroon encryption and
password rotation.
2022-07-06 18:59:50 -07:00
86f1bc7db0 lncli: chan_point option for updatechanstatus 2022-07-06 10:19:12 -04:00
738241d5fa Merge pull request #6681 from guggero/editor-helpers
Add settings files for most common editors
2022-07-06 13:35:28 +02:00
b9d8c701eb Merge pull request #6659 from ErikEk/trivial-typo
typo: trivial
2022-07-06 13:34:19 +02:00
2b9787b43a docs: add release notes 2022-07-06 13:33:02 +02:00
f268786a87 docs: extract formatting rules 2022-07-06 13:33:02 +02:00
820e3c2422 gitrelease-notes: update release notes for 0.15.1 2022-07-05 16:41:08 +00:00
4cb68e4de3 Merge pull request #6588 from C-Otto/peer-logging
peer: add pubkey to log messages
2022-07-05 09:36:26 +02:00
714f8a8142 gitrelease-notes: update release notes for 0.15.1 2022-07-03 21:04:34 +00:00
6146b8d644 trivial typo[skip ci] 2022-07-01 11:21:46 +02:00
9656994c3b docs: fix formatting and phrasing [skip ci] 2022-07-01 10:04:08 +02:00
120fbc6758 docs: remove duplicate headings 2022-07-01 10:03:41 +02:00
8e5ff6d1a6 docs: move 0.15.1 release notes item 2022-07-01 10:01:55 +02:00
98ab9e3057 Merge pull request #6642 from Crypt-iQ/linkstopidx
htlcswitch: add linkStopIndex to cleanly shutdown ChannelLink
2022-06-30 17:01:07 -07:00
7b56b67f34 Merge pull request #6546 from carlaKC/bolts-950-warningmessage
lnwire/peer: add ability to read + log peer warning messages
2022-06-30 16:56:20 -07:00
0cbf0e6208 release-notes: update for 0.15.1 2022-06-30 15:02:58 -04:00
3af42eede9 Merge pull request #6687 from guggero/sign-psbt-np2wkh
walletrpc: Fix SignPsbt for NP2WKH inputs
2022-06-30 12:18:12 +02:00
719fd584f9 docs: add release notes 2022-06-30 10:27:39 +02:00
9d339f0fe2 Merge pull request #6680 from guggero/compute-input-script
Taproot: Fix p2tr support in `ComputeInputScript`
2022-06-30 10:11:11 +02:00
ff39f1e5ea release-notes: update for 0.15.1 2022-06-29 13:50:03 -04:00
cac09098e1 docs: add release notes 2022-06-29 18:29:28 +02:00
3759b0f1ee Merge pull request #6577 from ziggie1984/hop-hints-opt-in-addholdinvoice
Hop hints opt in addholdinvoice
2022-06-28 15:38:48 -07:00
f1717ea421 Merge pull request #6676 from guggero/fix-release-reproducibility
Fix release reproducibility
2022-06-28 15:08:01 -07:00
c51671ea85 Merge pull request #6682 from ErikEk/urfave-upgrade
dep: update urfave/cli package
2022-06-28 21:37:29 +02:00
300d81b977 dep: urfave/cli update 2022-06-28 20:44:50 +02:00
3110a6d4df docs: adds wallet reserve rpc & field in wallet balance 2022-06-28 23:34:14 +05:30
0e12a91715 channeldb: fix data race in TestSerializeHTLCEntries 2022-06-28 21:28:04 +08:00
ffe8b088d3 peer: add pubkey to log messages 2022-06-27 21:04:03 +02:00
b60c640cbe doc: add release notes 2022-06-27 18:30:10 +02:00
f6f48a307f docs: add previous outpoints to listchaintxns 2022-06-27 16:01:12 +05:30
9ac2a01c54 doc: release note 2022-06-26 07:22:50 +02:00
9988d392eb docs/release-notes: create release notes for 0.15.1
This commit also fixes the release notes of a recent PR that didn't
quite make it into 0.15: the entry should  now be in the 0.15.1 release
notes.
2022-06-24 15:47:35 -07:00
a121f305b6 Merge pull request #6576 from ellemouton/paymentAddrBuildRouteFlag
lncli: add payment-addr flag to buildroute
2022-06-24 15:44:35 -07:00
8451d6155f Merge pull request #6504 from tvolk131/fatalf_to_require
Move simple t.Fatalf test assertions to require.NoError
2022-06-17 19:52:07 +02:00
7829c8a00e release-notes: update for 0.15.0 2022-06-17 17:15:51 +00:00
5aacc251de docs: add release notes 2022-06-16 10:13:33 +02:00
c69138e00d build: bump btcd, btcwallet and neutrino to latest versions 2022-06-08 11:40:50 -07:00
622c8402a0 Merge pull request #6611 from Roasbeef/psbt-validation-fix
lnrpc/walletrpc: reject PSBT packets w/o any UTXO input info
2022-06-02 14:44:59 -07:00
a46ffe4299 Merge pull request #6612 from Roasbeef/tor-bump
build: bump tor version to v1.0.1
2022-06-02 14:44:38 -07:00
2298ef81ab lnrpc/walletrpc: reject PSBT packets w/o any UTXO input info
Fixes https://github.com/lightningnetwork/lnd/issues/6567
2022-06-02 13:05:58 -07:00
9b0718ae35 contractcourt: unify the lease specific HTLC sweeping logic
In this commit, we consolidate the _lease specific_ logic for the
success and timeout HTLC resolvers. We do this with the addition of a
new struct which is then composed via struct embedding with the two
existing structs. This fixes a flake in the integration tests by
ensuring the height is set up front, rather than eventually once the
height matches the lock time.
2022-06-01 16:42:33 -07:00
199f9d1139 Merge pull request #6600 from bhandras/invoiceregistry-deadlock
invoices: fix deadlock in the invoice registry
2022-06-01 14:59:55 -07:00
fb119446c1 build: bump tor version to v1.0.1 2022-06-01 13:54:56 -07:00
2b5d535208 channeldb: fix data race in TestSerializeRevocationLog
When testing serializing revocation log, we need to also copy its
`HTLCEntries` as the serialization of the HTLC involves a writing to the
`htlc.amtTlv` field.
2022-06-01 02:20:44 +08:00
699f9c0d23 docs: update release notes for 0.15.0 2022-05-31 17:36:44 +02:00