Commit Graph
100 Commits
Author SHA1 Message Date
Oliver Gugger 94f7ed46de Merge pull request #8998 from Abdulkbk/trx-pagination
pagination: add pagination to wallet transactions
2024-11-22 09:30:11 +01:00
Oliver Gugger 38ec1a1c64 Merge pull request #8805 from breez/jssdwt-insert-edge-when-not-found
localchans: recreate missing edge if not found
2024-11-22 08:42:51 +01:00
Oliver Gugger 41c2521e8a Merge pull request #9291 from yyforyongyu/fix-log-unit
lnwallet: log the amounts in the same unit
2024-11-21 14:46:46 +01:00
Oliver Gugger 9fc6c998ba Merge pull request #9292 from yyforyongyu/fix-graphbuiler-shutdown
lnd: stop `graphBuilder` during shutdown
2024-11-21 10:33:52 +01:00
Oliver Gugger 8b99d71f93 Merge pull request #9284 from ProofOfKeags/update/fn2
fn: update go.mod to v2
2024-11-21 09:53:05 +01:00
Oliver Gugger a4195fa2ce Merge pull request #9288 from lightningnetwork/channel-acceptor-commitment-type
[custom channels]: add taproot overlay channel type to channel acceptor
2024-11-20 15:29:30 +01:00
Oliver Gugger 4b563e6f49 Merge pull request #9253 from ziggie1984/fix-chanArb-deadlock
fix chanArb deadlock
2024-11-20 10:41:03 +01:00
Oliver Gugger 1c3caf47bb docs: add release notes 2024-11-20 10:37:55 +01:00
Oliver Gugger c809340095 chanacceptor: add custom channel commitment type 2024-11-20 10:37:55 +01:00
Oliver Gugger a10195042e Merge pull request #9283 from guggero/fix-release-notes
docs: fix release notes
2024-11-19 21:20:43 +01:00
Oliver Gugger ea72db711c docs: fix release notes 2024-11-19 21:09:15 +01:00
Oliver Gugger e1df8e9161 Merge pull request #9281 from ziggie1984/export-towerclientdb-version
wtdb: export versions of wtclient.db
2024-11-19 17:53:14 +01:00
Oliver Gugger 9519a23a97 Merge pull request #9278 from starius/debuglevel-show-no-checks
config: fix "lnd --debuglevel show" command
2024-11-19 17:53:00 +01:00
Oliver Gugger 411ad1d9cd Merge pull request #9271 from morehouse/simplify_fuzz_wtwire
wtwire: simply fuzz targets
2024-11-19 12:57:34 +01:00
Oliver Gugger c136901f24 Merge pull request #9270 from starius/goroutine-manager-bool
fn: improvements for GoroutineManager
2024-11-19 12:56:04 +01:00
Oliver Gugger f4a1299d37 Merge pull request #9272 from lightningnetwork/sweeper-output-index
sweep: update storeRecord to include utxo index
2024-11-19 12:42:26 +01:00
Oliver Gugger bd36f76530 Merge pull request #9273 from Roasbeef/itests-pid
lntest: print node PID when launching in itests
2024-11-18 09:38:48 +01:00
Oliver Gugger 95b248a1ef Merge pull request #9194 from lightningnetwork/aux-channel-htlc
multi: generate and pass along HTLC resolution blobs for aux channels
2024-11-15 13:07:35 +01:00
Oliver Gugger 9a1adbeeaa docs: move 0.18.4 items, add full list of custom chan PRs 2024-11-15 09:50:01 +01:00
Oliver Gugger e6efa2e438 Merge pull request #9269 from hieblmi/sendpayment-fix-negative-feelimit
routerrpc: fix sendpayment_v2 negative fee limit
2024-11-15 09:40:43 +01:00
Oliver Gugger 60caa04a4d Merge pull request #9263 from morehouse/simplify_fuzz_lnwire
lnwire: simplify fuzz targets
2024-11-13 18:32:15 +01:00
Oliver Gugger 8918b62943 Merge pull request #9266 from famouswizard/patch-1
Typo Update ruby.md
2024-11-13 16:46:03 +01:00
Oliver Gugger 304c8df7b9 Merge pull request #9251 from morehouse/fuzz_lnwire
lnwire: add new fuzz targets
2024-11-13 14:23:16 +01:00
Oliver Gugger 4d184dffd0 Merge pull request #9259 from yyforyongyu/prepare-itest-for-blockbeat
trivial: prepare itest for `blockbeat`
2024-11-13 12:57:42 +01:00
Oliver Gugger 5a8026aba9 Merge pull request #9249 from yyforyongyu/fix-shutdown
routing: fix missionControlStore blocks on shutting down
2024-11-08 11:09:45 +01:00
Oliver Gugger 0899077fb5 Merge pull request #7762 from guggero/empty-resp
lnrpc: return meaningful response instead of empty one
2024-11-07 19:14:44 +01:00
Oliver Gugger f42636fec9 Merge pull request #8985 from ProofOfKeags/fn/collect-results
fn: more fn goodies
2024-11-07 18:50:57 +01:00
Oliver Gugger 5673dab596 docs: add release notes 2024-11-06 15:30:31 +01:00
Oliver Gugger 4bf24695d7 cmd/commands: fix custom message commands
The sendcustom and subscribecustom sub commands weren't correctly
categorized and didn't have any usage text set.
2024-11-06 15:30:30 +01:00
Oliver Gugger 0e5c724b64 rpcserver: fix formatting and grammar issues 2024-11-06 15:30:29 +01:00
Oliver Gugger 870e845a1e cmd/lncli: print new status responses to CLI 2024-11-06 15:30:27 +01:00
Oliver Gugger d89ea2d335 walletrpc: return meaningful responses instead of empty 2024-11-06 15:30:26 +01:00
Oliver Gugger 26216f749a itest: add tests for new backup responses 2024-11-06 15:30:25 +01:00
Oliver Gugger 45e13cead1 lnrpc+rpcserver: return meaningful responses instead of empty 2024-11-06 15:30:24 +01:00
Oliver Gugger d8c920fa7a chanbackup+rpcserver+server: return number of recovered channels 2024-11-06 15:30:23 +01:00
Oliver Gugger 15a5fe7704 channeldb+rpcserver: return number of deleted payments 2024-11-06 15:30:21 +01:00
Oliver Gugger e3cc4d70c0 Merge pull request #8600 from GeorgeTsagk/chanfunding-coinselect-nofeecheck
Add `maxFeeRatio` parameter to sanityCheckFee in psbt coin selection
2024-11-05 20:56:02 +01:00
Oliver Gugger 85175814a4 Merge pull request #9013 from guggero/fundpsbt-fee-rate-sat-per-kwu
[walletrpc]: add `sat_per_kw` fee option to `FundPsbt` RPC
2024-11-05 09:24:49 +01:00
Oliver Gugger 8849dd21d4 docs: add release notes 2024-11-04 14:12:50 +01:00
Oliver Gugger 837ff3427c cmd/lncli: add new --sat_per_kw flag to lncli wallet fundpsbt 2024-11-04 14:12:26 +01:00
Oliver Gugger fb8bdfefd3 walletrpc: add sat_per_kw fee rate option
To allow more precise fee rates, we add a sat_per_kw option to the fee
oneof in the gRPC definition.
2024-11-04 14:12:26 +01:00
Oliver Gugger 22ae3e5ddd Merge pull request #9167 from ellemouton/mcEncodingToTLV
routing+migration32: update migration 32 to use pure TLV encoding for mission control results
2024-11-01 13:16:04 +01:00
Oliver Gugger 006026f617 Merge pull request #9215 from carlaKC/9166-docs
routerrpc/trivial: add docs to forward interceptor
2024-11-01 09:46:16 +01:00
Oliver Gugger 891108d2ea Merge pull request #9221 from yyforyongyu/fix-TestChannelLinkCancelFullCommitment
htlcswitch: fix flake in `TestChannelLinkCancelFullCommitment`
2024-11-01 09:45:49 +01:00
Oliver Gugger c0e85d36ae Merge pull request #8381 from anibilthare/issue_8205_num_retries_2
watchtower: Add retry logic for fetching blocks
2024-10-31 10:22:19 +01:00
Oliver Gugger 684041bbfe Merge pull request #9233 from ellemouton/moveLoggingCompressorOption
build+config: move file logger specific options to `logging.file`
2024-10-30 14:10:59 +01:00
Oliver Gugger 22c3cc51ed Merge pull request #9223 from starius/close-to-external-p2tr
lnwallet: fix closechannel for P2TR external addr
2024-10-30 14:10:21 +01:00
Oliver Gugger 5da2e8dec2 Merge pull request #9237 from yyforyongyu/fix-btcdnotify-config
chainntnfs/btcdnotify: remove redundant config params re-assignment
2024-10-30 14:09:10 +01:00
Oliver Gugger 4c48402868 Merge pull request #9222 from ffranr/add-maybesome-opt
Improve Option documentation and add MaybeSome function
2024-10-30 09:31:38 +01:00
Oliver Gugger 4778b146cc Merge pull request #9219 from myxmaster/improve-sanitycheckfee-error-msg
chanfunding: improve sanityCheckFee error message for clarity
2024-10-29 13:07:06 +01:00
Oliver Gugger 4e54db4ac8 Merge pull request #9228 from yyforyongyu/fix-itest-flakes
itest: fix flake in `payment_failure_reason_canceled`
2024-10-29 13:05:32 +01:00
Oliver Gugger 5cec466fad Merge pull request #9212 from ellemouton/slogFollowUps
multi: update log dep for sub-modules
2024-10-28 16:32:46 +01:00
Oliver Gugger c37baa68d8 Merge pull request #9226 from sputn1ck/sendcoins_selectutxo_fix_amt
cmd/sendcoins: fix display amount if select utxo and sweepall is set
2024-10-28 11:34:12 +01:00
Oliver Gugger acbb33bb7b Merge pull request #9220 from oren-z0/issue-9169-code-comments-fix
Fix comments regarding breach hint and key calculations
2024-10-25 11:14:22 +02:00
Oliver Gugger 582468c0f6 Merge pull request #9199 from GeorgeTsagk/htlc-modify-cancel-htlc
Add `cancelSet` flag HtlcModify interface
2024-10-25 10:57:09 +02:00
Oliver Gugger e488002db5 Merge pull request #9214 from guggero/release-go-version-check
makefile+scripts: add Go version check to release command
2024-10-23 14:20:38 +02:00
Oliver Gugger 5f20fd4d9f lntest: shutdown all nodes at end of test
Fixes an issue where the standby nodes would keep running even after the
test finished (successfully or with a failure).
2024-10-22 18:12:16 +02:00
Oliver Gugger 91c82c1938 Merge pull request #9206 from Roasbeef/roasbeef-pgp-2024
scripts/key: add new gpg key for roasbeef
2024-10-22 09:23:57 +02:00
Oliver Gugger f34bf51d16 Merge pull request #9200 from starius/fix-logging
peer: fix logging (missing argument) [skip ci]
2024-10-21 10:23:48 +02:00
Oliver Gugger 6edd942c70 mod: bump fn to v1.2.3 2024-10-17 17:34:11 +02:00
Oliver Gugger 395a761eb6 Merge pull request #9196 from lightningnetwork/fn-context-guard
fn: add ContextGuard from tapd repo
2024-10-17 17:31:48 +02:00
Oliver Gugger deefa3a9f1 fn: add ContextGuard from tapd repo
This adds the ContextGuard struct from the taproot-assets repository
that has been in use there for a while.

The context guard allows for easy creation of contexts that depend on a
central wait group and quit channel.

A context can either be created with a timeout and quit, meaning it will
cancel either on reaching the timeout or when the central quit channel
is closed.

Or a context can be created to block and use a timeout, meaning it will
_not_ cancel on quit but rather block the shutdown until it is completed
(or times out).

The third way is to create a context that just cancels on quit with no
timeout.
2024-10-17 13:11:30 +02:00
Oliver Gugger f46ae2f893 Merge pull request #9195 from yyforyongyu/optimize-itest-setup
itest+lntest: speed up test setup
2024-10-17 10:16:06 +02:00
Oliver Gugger 6992ecc8fc Merge pull request #9137 from ViktorTigerstrom/2024-09-sync-lock-fix
lnd: allow shutdown signal during `IsSynced` check
2024-10-17 10:04:14 +02:00
Oliver Gugger af6b88a9f6 Merge pull request #9171 from ellemouton/genUnsignedTLVRanges
tlv: generate types for gossip unsigned range
2024-10-16 16:04:17 +02:00
Oliver Gugger fb5e7f4b23 Merge pull request #9059 from guggero/bitcoind-28
CI: run integration tests against bitcoind v28
2024-10-16 15:55:44 +02:00
Oliver Gugger f0b1015bae Merge pull request #9187 from guggero/fix-custom-data
rpcserver+lncli: fix custom channel data encoding issue
2024-10-15 17:31:25 +02:00
Oliver Gugger 8c79940374 cmd/commands: don't error out on replacement failure 2024-10-15 16:40:35 +02:00
Oliver Gugger 5f86e2529b Merge pull request #9172 from guggero/initwallet-mac-root-key
cmd: allow deterministic macaroon derivation with `lncli`
2024-10-15 12:09:02 +02:00
Oliver Gugger 5d60da54a3 rpcserver: don't write any custom channel data if empty 2024-10-15 09:56:32 +02:00
Oliver Gugger fcb21dfc24 docs: document deterministic macaroons, add release notes 2024-10-15 09:48:47 +02:00
Oliver Gugger 882f25667e cmd/commands: add root_key flag to bakemacaroon command 2024-10-15 09:48:46 +02:00
Oliver Gugger 6e932c6bc8 macaroons: add BakeFromRootKey function 2024-10-15 09:48:46 +02:00
Oliver Gugger fd37c6f90a cmd/commands: add mac_root_key flag to unlock commands
This commit adds a new --mac_root_key flag to both the lncli create and
lncli createwatchonly commands that allows the user to specify the
macaroon root key that should be used when creating the macaroon
database on wallet initialization.
This allows for deterministic wallet initialization and baking of
macaroons before the wallet is initialized.
2024-10-15 09:48:18 +02:00
Oliver Gugger 4213ab8947 docs: add release notes 2024-10-14 17:26:59 +02:00
Oliver Gugger a63542b618 mod: fix unit tests by updating error matching in btcwallet 2024-10-14 17:26:59 +02:00
Oliver Gugger c156d17da5 lnwallet: turn off RBF detection in test 2024-10-14 17:26:59 +02:00
Oliver Gugger 10802305e5 Merge pull request #8183 from starius/close-tx-in-static-backup
chanbackup, server, rpcserver: put close unsigned tx, remote signature and commit height to SCB
2024-10-14 16:44:19 +02:00
Oliver Gugger 91ade89a78 lntest: avoid port collision on Tor listen port
bitcoind now seems to listen on the -bind port at all times. So we need
to make sure multiple instances don't collide by using a unique port.
2024-10-14 16:10:19 +02:00
Oliver Gugger 56a36acf63 lntest: move debug flag, disable spammy libevent 2024-10-14 16:10:18 +02:00
Oliver Gugger 6ac1ffd274 github+scripts: bump itests to bitcoind v28, allow testing with RCs 2024-10-14 16:10:18 +02:00
Oliver Gugger 136cb42457 Merge pull request #9168 from feelancer21/fix-lncli-wallet-proto
lnrpc: fix lncli documentation tags in walletkit.proto
2024-10-11 06:58:54 -06:00
Oliver Gugger 0dd58ee529 Merge pull request #9033 from ziggie1984/non-anchor-channel-bump
error out when non-anchor channels are tried to bump the force close fee.
2024-10-07 23:30:17 -06:00
Oliver Gugger 84c91f701c Merge pull request #9062 from Roasbeef/htlc-resolution-sweeper
contractcourt: use the sweeper for HTLC offered remote timeout resolu…
2024-09-19 09:43:16 -06:00
Oliver Gugger 611852fd34 Merge pull request #9123 from guggero/bump-18-99
build: bump master to version v0.18.99-beta
2024-09-19 03:57:11 -06:00
Oliver Gugger 4ff7d77a79 Merge pull request #9095 from lightningnetwork/extract-part4-from-staging-branch
[custom channels 4/5]: Extract PART4 from mega staging branch
2024-09-19 03:45:01 -06:00
Oliver Gugger e0b4601fb9 multi: add co-op close custom data to close update
With this commit we populate additional information about the close
outputs (including potential custom channel data) in the close update
RPC message.
This will allow custom channels to find out how the additional close
outputs look like on chain and what data they might commit to.

We also hook up the aux custom data formatter, so it can format the
custom channel data to JSON.
2024-09-19 10:18:41 +02:00
Oliver Gugger dc32a48246 build: bump master to version v0.18.99-beta
As is customary when preparing for the next major (or minor) release, we
bump the version to .99 to allow us to set the minimum required version
to something like v0.18.4-beta in lndclient and it would still accept
the master branch (even if that target version hasn't been
released/tagged yet).
2024-09-19 09:33:54 +02:00
Oliver Gugger d37df75bc0 lnrpc+rpcserver: encode custom records as custom channel data
With this commit we encode the custom records as a TLV stream into the
custom channel data field of the invoice HTLC.
This allows the custom data parser to parse those records and replace it
with human-readable JSON on the RPC interface.
2024-09-19 09:21:38 +02:00
Oliver Gugger 83923c7f33 lnwire: add MergedCopy method to CustomRecords 2024-09-19 09:21:38 +02:00
Oliver Gugger cdad5d988d Merge pull request #9072 from lightningnetwork/extract-part3-from-staging-branch
[custom channels 3/5]: Extract PART3 from mega staging branch
2024-09-19 01:20:55 -06:00
Oliver Gugger 52e50d807d htlcswitch: override amount check on custom records 2024-09-18 19:07:27 +02:00
Oliver Gugger cdc3a4a6c6 channeldb: add NextHeight, fix formatting 2024-09-18 19:07:27 +02:00
Oliver Gugger d49da574e3 lnd: add aux data parser
This commit adds an optional data parser that can inspect and in-place
format custom data of certain RPC messages.
We don't add an implementation of the interface itself, as that will be
provided by external components when packaging up lnd as a bundle with
other software.
2024-09-18 19:07:27 +02:00
Oliver Gugger 5e1a98cd43 lnrpc+rpcserver: add and populate custom channel data 2024-09-18 19:07:26 +02:00
Oliver Gugger 838a32d13c Merge pull request #9116 from xixishidibei/master
bug: fix incorrect parameters in test cases
2024-09-18 04:04:28 -06:00
Oliver Gugger bd84fd256e lnwire: add custom records field to type CommitSig 2024-09-18 10:25:42 +02:00
Oliver Gugger f52a163334 lnwallet: clarify usage of cancel and response channels 2024-09-18 10:25:42 +02:00
Oliver Gugger 953fb073d4 lnwallet: allow read-only access to HtlcView's HTLCs
Due to a recent refactor, the HTLCs are no longer an exported type.
Custom channels need access to those updates, so we provide them in a
read-only manner.
2024-09-18 10:25:42 +02:00
Oliver Gugger 0b64b80642 funding: inform aux controller about channel ready/finalize 2024-09-18 10:25:41 +02:00