Commit Graph
100 Commits
Author SHA1 Message Date
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
Oliver Gugger 5c854a2f53 multi: add tapscript root to gossip message 2024-09-18 10:25:41 +02:00
Oliver Gugger 08a7290b81 Merge pull request #9103 from ziggie1984/signing-release
Documentation how to sign a LND/LNCLI release by a developer
2024-09-18 01:49:12 -06:00
Oliver Gugger 191688f316 Merge pull request #9111 from Liongrass/patch-2
Fix links to resolve issue in Builder's Guide (https and redirect)
2024-09-18 01:45:43 -06:00
Oliver Gugger cd6f72d2f2 Merge pull request #9113 from Liongrass/patch-4
Update http to https in c#.md
2024-09-18 01:45:31 -06:00
Oliver Gugger 375338d816 Merge pull request #9114 from Liongrass/patch-5
Update links in javascript.md
2024-09-18 01:45:16 -06:00
Oliver Gugger edd9ade7e5 Merge pull request #9017 from jharveyb/log_comress_zstd
log: bump logrotate dep, switch to zstd compressor
2024-09-15 01:36:11 -06:00
Oliver Gugger 750770e190 Merge pull request #8981 from ProofOfKeags/refactor/payment-descriptor-quarantine
[KILO]: Quarantine paymentDescriptor to the lnwallet package
2024-09-12 09:09:02 -06:00
Oliver Gugger 4fc2f4ae87 Merge pull request #9090 from Roasbeef/bolt-update-sept-2024
kvdb: update bbolt to v1.3.11
2024-09-12 06:15:23 -06:00
Oliver Gugger fd154dd726 Merge pull request #9082 from morehouse/fuzz_reply_channel_range_fixes
lnwire: manually compare Timestamps in fuzz test
2024-09-11 05:27:09 -06:00
Oliver Gugger a518f7dfbc Merge pull request #9084 from morehouse/detect_invalid_timestamp_field
lnwire: detect invalid timestamp field
2024-09-11 03:31:01 -06:00
Oliver Gugger a6f0ec9f00 Merge pull request #9077 from rhg4d9ow35/fix-issue-8897
commands: update interactive input in create command description
2024-09-11 03:28:29 -06:00
Oliver Gugger a6e65d49cc Merge pull request #9086 from morehouse/fix_fuzz_probability
routing: skip fuzzing when capacity is 0
2024-09-11 02:34:11 -06:00
Oliver Gugger 779903af9d Merge pull request #9080 from ziggie1984/ziggie-pgp
scripts: add gpg key for ziggie [skip ci]
2024-09-10 11:50:59 -06:00
Oliver Gugger 65046561c4 Merge pull request #9079 from ziggie1984/remove-unsupported-nolint-directive
chanfunding: remove unsupported linter directive.
2024-09-10 09:01:50 -06:00
Oliver Gugger 556c664984 Merge pull request #9078 from yyforyongyu/itest-log
Makefile: add `-test.v` for `make itest`
2024-09-10 08:04:52 -06:00
Oliver Gugger a895b1c6ca Merge pull request #9051 from calvinrzachman/export-routing-interface
routing: export dbMPPayment interface
2024-09-09 05:15:38 -06:00
Oliver Gugger 31a6f87c4d Merge pull request #9049 from lightningnetwork/extract-part2-from-staging-branch
[custom channels 2/5]: Extract PART2 from mega staging branch
2024-09-05 12:08:36 -06:00
Oliver Gugger 81c8331f82 lnrpc: add first hop custom data to route 2024-09-05 18:00:53 +02:00
Oliver Gugger 4804cbf139 channeldb+routing: persist first hop custom data for route 2024-09-05 18:00:53 +02:00
Oliver Gugger afdceab400 lnrpc: add first hop custom records to RPC payment info 2024-09-05 11:18:16 +02:00
Oliver Gugger 1b31835230 channeldb+routing: persist first hop custom records
With this commit we make sure the first hop custom records aren't lost
on restart/resume of a payment, so we persist it as part of the
PaymentCreationInfo struct.
2024-09-05 11:18:16 +02:00
Oliver Gugger aa86020b84 lnwallet: extract diskCommit, remove unused error return value 2024-09-05 11:18:16 +02:00
Oliver Gugger 604bd81100 aliasmgr: export alias start and end ranges
Because we restrict custom SCID aliases to be in a specific range, we
export the range start and end values so a user of the RPCs we're going
to add in the next commits can adjust their values to fit within the
range.
2024-09-05 08:44:33 +02:00
Oliver Gugger 466f550ddb aliasmgr: avoid collision when requesting alias
With the new RPC calls that we are going to add in the next commits, it
will be possible for users to add (local only, non-gossipped) SCID
aliases for channels. Since those will be in the same range as the ones
given out by RequestAlias, we need to make sure that when we generate a
new one that it doesn't collide with an already existing one.
2024-09-05 08:44:33 +02:00
Oliver Gugger 80dfaeb16d aliasmgr: add map type alias 2024-09-05 08:44:33 +02:00
Oliver Gugger 6900fb54e2 Merge pull request #9064 from longhutianjie/master
bug: fix json tag
2024-09-04 05:43:01 -06:00
Oliver Gugger cb85e6f8ba mod: bump sqldb to latest version 2024-09-04 09:33:27 +02:00
Oliver Gugger 258cf81240 Merge pull request #9050 from bhandras/native-sql-invoice-fixes
invoices+sqldb: small fixes to address some inconsistencies between KV and native SQL invoice DB implementations
2024-09-04 01:30:52 -06:00
Oliver Gugger e8c5e7d5ce Merge pull request #9044 from ProofOfKeags/refactor/stfu-prefactor
Refactor/stfu prefactor
2024-08-29 09:49:53 -06:00
Oliver Gugger 54eeb0e792 Merge pull request #9045 from ziggie1984/fix-blinded-payment-tc
fix blinded path itest.
2024-08-29 04:51:20 -06:00
Oliver Gugger 5c3a8e949c Merge pull request #9030 from lightningnetwork/extract-part1-from-staging-branch
[custom channels 1/5]: extract PART1 from mega staging branch
2024-08-28 07:06:53 -06:00
Oliver Gugger 9dfbde7013 lnwallet: thread thru input.AuxTapleaf to all relevant areas
In this commit, we start to thread thru the new aux tap leaf structures to all relevant areas. This includes: commitment outputs, resolution creation, breach handling, and also HTLC scripts.
2024-08-28 13:28:48 +02:00
Oliver Gugger 2ab22b0f0b lnwallet: refactor commit keys to use lntypes.Dual 2024-08-28 13:26:18 +02:00
Oliver Gugger b45d72fe59 multi: thread thru the AuxLeafStore everywhere 2024-08-28 13:26:14 +02:00
Oliver Gugger 64b8c6299a Merge pull request #9039 from ellemouton/htlcPersistenceAcrossRestart
lnwallet: correctly set UpdateAddHTLC.BlindingPoint on reload from disk
2024-08-27 12:45:27 -06:00
Oliver Gugger 8939a217c3 Merge pull request #9021 from aakselrod/run-nativesql-itests
itest: ensure LND gets correct CLI options when itest are parallel
2024-08-25 01:25:03 -06:00
Oliver Gugger dcd921ad69 Merge pull request #9029 from tlindi/admin-macaroon-recreate-sample
update macaroons/README.md
2024-08-23 06:45:07 -06:00
Oliver Gugger 306695cd78 Merge pull request #9025 from lightningnetwork/extract-from-staging-branch
[custom channels]: extract some independent commits from mega staging branch
2024-08-23 05:04:46 -06:00
Oliver Gugger d0d397545a Merge pull request #9026 from ziggie1984/bugfix-minHTLC-blindedpath
blindedpath: Minor bug fixes and feature addition.
2024-08-23 03:07:46 -06:00
Oliver Gugger 61edb36283 routing+lnrpc: fix log statements 2024-08-23 10:58:14 +02:00
Oliver Gugger 1167e9b6dd server: fix logging of pubkey 2024-08-23 10:58:14 +02:00
Oliver Gugger c5973aa136 cmd/commands: export StripPrefix 2024-08-23 10:58:13 +02:00
Oliver Gugger efbaf90caf lnwallet: add Tree() method, fix formatting 2024-08-23 10:58:13 +02:00
Oliver Gugger f0648e24a5 lnwallet: export GenTaprootHtlcScript 2024-08-23 10:58:13 +02:00
Oliver Gugger cf2174fc2d lnwallet: export AnchorSize 2024-08-23 10:58:13 +02:00
Oliver Gugger 22a3988222 cmd/lncli: move commands and export
We want to export some of our CLI code to re-use in other projects. But
in Golang you cannot import code from a `main` package.
So we need to move the actual code into its own package and only have
the `func main()` in the `main` package.
2024-08-23 10:57:59 +02:00
Oliver Gugger 9e926924f1 mod: bump tlv to v1.2.6 2024-08-22 12:21:52 +02:00
Oliver Gugger a028064fa7 Merge pull request #9007 from Roasbeef/go-1-22
build: set min build version to Go 1.22.6
2024-08-20 12:27:02 -06:00
Oliver Gugger 3ae6553eef .golangci: fix config, update new-from-rev 2024-08-20 19:14:44 +02:00
Oliver Gugger e99e6662cf multi: update linter, fix new issues 2024-08-20 19:14:44 +02:00
Oliver Gugger 9eef428e77 .golangci: remove or rename old and deprecated linters 2024-08-20 19:13:23 +02:00
Oliver Gugger 0aced5ce2d Merge pull request #8857 from MPins/issue-8793
Fixing the current state update when lncli debuglevel and lncli setmccfg are called
2024-08-15 02:33:54 -06:00
Oliver Gugger 2f2efc7824 Merge pull request #8843 from ziggie1984/bumpforceclosefee-rpc
bumpforceclosefee rpc
2024-08-12 06:04:53 -06:00
Oliver Gugger bbd313dcca Merge pull request #8992 from guggero/estimate-fee-cli
cmd/lncli: add min relay fee to `lncli wallet estimatefeerate`
2024-08-08 01:43:56 -06:00
Oliver Gugger eac54601fb cmd/lncli: add min relay fee to lncli wallet estimatefeerate
This commit adds the new value that was added to the RPC response to the
CLI output as well.
2024-08-08 09:24:49 +02:00
Oliver Gugger d77617461d Merge pull request #8955 from yyforyongyu/cr-8516-240729-sendcoins
Allow selecting coins in `sendcoins`
2024-08-07 08:42:25 -06:00
Oliver Gugger b63e5decad Merge pull request #8886 from bitromortac/buildroute-inbound-fees
routing: inbound fees support for BuildRoute
2024-08-07 08:11:17 -06:00
Oliver Gugger 75ec6da177 Merge pull request #8979 from ProofOfKeags/refactor/useless-args
[NANO]: Remove useless appendages from lnwallet/channel.go
2024-08-07 01:37:56 -06:00
Oliver Gugger 9271b5ebbe Merge pull request #8984 from guggero/make-rpc
lnrpc: avoid needing to download Golang
2024-08-07 01:36:00 -06:00
Oliver Gugger 94b9b50a42 mod: update comment what to change on Go version bump 2024-08-07 09:16:37 +02:00
Oliver Gugger 63af63dfa8 lnrpc: avoid needing to download Golang
Because the Go version used to run the `go list` commands is below the
minimum version specified in the main go.mod file, every time the `make
rpc` command is executed, the Golang runtime is downloaded twice, which
looks like this and takes a couple of seconds at least:

go: downloading go1.21.4 (linux/amd64)
go: downloading go1.21.4 (linux/amd64)

We fix this by using the correct minimum version.
2024-08-06 18:38:10 +02:00
Oliver Gugger 7e1e054511 Merge pull request #8959 from guggero/bump-kvdb
mod: bump kvdb to v1.4.10
2024-08-05 03:18:17 -06:00
Oliver Gugger 11c7e20d0a Merge pull request #8953 from ProofOfKeags/refactor/lnwallet-channel-channel-constraints-partition
[MICRO]: multi: break ChannelConstraints into two sub-structures
2024-08-05 02:08:52 -06:00
Oliver Gugger 6e63dcd6f9 Merge pull request #8952 from ProofOfKeags/refactor/lnwallet-channel-typed-list
[MICRO]: lnwallet: refactor channel to use new typed List
2024-08-05 02:07:50 -06:00
Oliver Gugger 546c8ebb99 Merge pull request #8954 from ffranr/check-go-versions
Linter checks go versions in Dockerfile and YAML files
2024-08-05 02:01:00 -06:00
Oliver Gugger 2cc668838c mod: bump kvdb to v1.4.10
To support the new comma-separated list of etcd hosts in db.etcd.host,
we need to bump the `kvdb` submodule version.
This also fixes a leader election bug in the etcd code.
2024-08-05 09:33:42 +02:00
Oliver Gugger e0b8892290 mod: remove local replace for healthcheck 2024-08-05 09:32:52 +02:00
Oliver Gugger 05c786f775 mod: remove local replace for sqldb 2024-08-05 09:29:03 +02:00
Oliver Gugger 16d80f5b5b Merge pull request #8845 from bitbandi/multiple-etcd-host
Allow multiple etcd host
2024-07-31 08:55:48 -06:00
Oliver Gugger 72a36da9c6 Merge pull request #8950 from ProofOfKeags/refactor/lnwallet-channel-move-only
[NANO]: Move definitions into their own file
2024-07-31 06:53:19 -06:00
Oliver Gugger ac4ef28926 Merge pull request #8824 from Crypt-iQ/precise_dust_limit
multi: include commitment fees in dust calculation
2024-07-31 03:13:31 -06:00
Oliver Gugger 7f9fbbe7c4 Merge pull request #8941 from bitromortac/fee-limit-inbound
routing: fix fee limit condition
2024-07-30 10:09:33 -06:00
Oliver Gugger a1af505df4 Merge pull request #8948 from Filiprogrammer/docs-fix-leader-readiness-probe
docs: fix leader node readiness probe example
2024-07-30 08:54:54 -06:00
Oliver Gugger b7c59b36a7 Merge pull request #8896 from ziggie1984/batchopen-feerate-fix
Fix batchopen fee calculation
2024-07-26 05:52:48 -06:00
Oliver Gugger b40f165310 Merge pull request #8891 from yyforyongyu/fix-fee-estimator
chainfee: allow specifying min relay feerate from the API source
2024-07-25 11:40:18 -06:00
Oliver Gugger b10ebb2692 Merge pull request #8923 from yyforyongyu/fix-test-interface
chainntnfs+lntest: fix `TestInterfaces`
2024-07-24 05:57:07 -06:00
Oliver Gugger f27f9f2799 Merge pull request #8892 from lightningnetwork/yy-itest-miner
Beat [0/4]: improve itest miner
2024-07-23 12:12:36 -06:00
Oliver Gugger 0387a1edfb mod: bump fn to v1.2.0
This fixes the Coverage CI step by making sure the file system is in
sync with the files pulled in through a Go submodule.
2024-07-23 20:02:47 +02:00
Oliver Gugger 154a8af078 GitHub: update vendored release script
This fixes the problem where releases wouldn't be created anymore due to
the GitHub Action for creating the draft release being out of date.
2024-07-23 14:49:05 +02:00
Oliver Gugger 578e1d4965 Merge pull request #8881 from mwaite-codes/fix-doc-grammar
Fix various typos in docs for readability
2024-07-23 00:25:17 -06:00
Oliver Gugger fa9929cd43 Merge pull request #8925 from guggero/remove-coin-join
docs: update safety.md, remove specific CoinJoin implementations
2024-07-22 01:05:05 -06:00
Oliver Gugger 608c0c41b9 Merge pull request #8921 from guggero/wallet-update
btcwallet: bump dependency to fix duplicate address creation
2024-07-19 02:43:58 -06:00
Oliver Gugger 9d4ed6d6e6 docs: update release notes 2024-07-19 08:33:56 +02:00
Oliver Gugger 19a4b51a92 mod: bump btcwallet dependency 2024-07-19 08:33:56 +02:00
Oliver Gugger fdd28c8d88 Merge pull request #8915 from linghuying/master
chore: fix some comments for struct field
2024-07-16 08:40:33 -06:00
Oliver Gugger fae7e0c5b0 Merge pull request #8848 from ellemouton/graphManager
refactor: move graph responsibilities from routing.ChannelRouter to new graph.Builder
2024-07-16 00:54:00 -06:00
Oliver Gugger f2759dcb1a Merge pull request #8759 from largemouth/master
chore: fix some function names
2024-07-10 12:16:49 -06:00
Oliver Gugger a9655357ca Merge pull request #8855 from bhandras/invoice-expiry-migration
sqldb+invoices: fix incorrectly stored invoice expiries when using native SQL
2024-07-09 02:06:28 -06:00
Oliver Gugger c34c0426fa Merge pull request #8874 from ellemouton/assumeTLV2
routing: remove left over TLV feature bit checks
2024-06-27 01:34:54 -06:00