Commit Graph
100 Commits
Author SHA1 Message Date
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
Oliver Gugger 3ceb7d5887 docs: update release notes 2024-06-26 14:30:28 -07:00
Oliver Gugger b300da8446 routing: assume TLV payloads everywhere
This commit removes another check for TLV payload support of the
destination node. We assume TLV payloads as the default everywhere else,
so we just remove two checks that were previously forgotten.
2024-06-26 14:28:51 -07:00
Oliver Gugger ce813276d5 Merge pull request #8862 from yyforyongyu/fix-publish-err
Fix an error string match between different `btcd` versions
2024-06-25 12:40:39 -06:00
Oliver Gugger fb416c2fa2 Merge pull request #8856 from AbelLykens/patch-1
[docs] Update go instructions
2024-06-22 02:15:42 -06:00
Oliver Gugger 390f0723d3 Merge pull request #8838 from yyforyongyu/update-pendingsweeps
cli: update `pendingsweeps` response
2024-06-20 07:13:00 -06:00
Oliver Gugger 931b3dc0c3 Merge pull request #8815 from yyforyongyu/fix-edge-policy
trivial: fix linter errors and return verbose errors
2024-06-10 12:48:59 -06:00
Oliver Gugger 3549d719ee Merge pull request #8823 from bhandras/fixup-sendpayment-amp
lncli: fix parsing of --amp when sending a payment
2024-06-10 10:23:45 -06:00
Oliver Gugger 98c52df4d2 Merge pull request #8813 from hieblmi/chaninfo-per-outpoint
Allow for a channel point in `GetChanInfo`
2024-06-06 14:47:31 +02:00
Oliver Gugger 0fadf97e72 Merge pull request #8808 from ProofOfKeags/fn/predicate-combinators
fn: add predicate combinators for && and ||
2024-06-05 14:03:19 +02:00
Oliver Gugger a832371d61 Merge pull request #8491 from davidgumberg/invoice_cltv_expiry
Expose `cltv_expiry` flag of `addinvoice` to cli
2024-06-04 13:59:50 +02:00
Oliver Gugger 14bed1d1e7 Merge pull request #8795 from guggero/itest-parallel
GitHub: increase itest parallelization to more tranches
2024-06-04 13:16:20 +02:00
Oliver Gugger a5c04bbd14 GitHub: increase itest parallelization to 16 tranches 2024-06-04 09:07:34 +02:00
Oliver Gugger a2266c6c73 Merge pull request #8802 from saubyk/suheb-pgp
scripts: add pgp key for suheb [skip ci]
2024-06-03 17:53:53 +02:00
Oliver Gugger d7714efc88 Merge pull request #8779 from bufo24/chore/allow-zero-fail-amt-import-mc
Allow 0 failure amt on importmc
2024-06-03 13:02:37 +02:00
Oliver Gugger 613bfc07fb Merge pull request #8798 from zoupingshi/master
chore: fix some comments
2024-05-31 18:03:54 +02:00
Oliver Gugger a02c6b6194 Merge pull request #8799 from ellemouton/release-notes-0.18.1
docs: add release notes template for 0.18.1
2024-05-31 17:19:05 +02:00
Oliver Gugger b137892ceb Merge pull request #8788 from ProofOfKeags/proofofkeags-pgp
scripts: add gpg key for proofofkeags [skip ci]
2024-05-29 20:55:17 +02:00
Oliver Gugger a8b679cd60 Merge pull request #8789 from guggero/fn-result
fn: add Result type
2024-05-29 09:55:52 +02:00
Oliver Gugger c95505db1e fn: add Result type
In this commit, we add a new result type, which is just Either[A, error]. This is useful as we can always pass around/accept a single value. We add an Unpack() method which is the most idiomatic way of handling errors in Go, as we revert back to (A, error) when necessary.
2024-05-29 09:39:39 +02:00
Oliver Gugger 68ea8d5312 Merge pull request #8750 from Chinwendu20/fnd
fn: Added `HasDuplicates` function to slice
2024-05-21 17:08:05 +02:00
Oliver Gugger 01e3ac61d8 Merge pull request #8631 from Chinwendu20/brontidetest
[code-health]: reduce duplication in brontide test.
2024-05-21 12:46:16 +02:00
Oliver Gugger 2a8ca878fd Merge pull request #8663 from Filiprogrammer/funding-manager-log-errors
funding: add absent error logs for failed inbound funding requests
2024-05-20 15:23:32 +02:00
Oliver Gugger 87d5170dec Merge pull request #8744 from orbitalturtle/custom-protocol-cfg
cfg: move experimental options to main protocol cfg
2024-05-17 08:45:34 +02:00
Oliver Gugger 3c4ebeb994 Merge pull request #8765 from hieblmi/fix-logging
routing: log edge when skipping it
2024-05-17 08:42:11 +02:00
Oliver Gugger 2845c6497a Merge pull request #8746 from Roasbeef/go-1-22-3
build: update release builds and CI to Go 1.22.3
2024-05-16 17:22:53 +02:00
Oliver Gugger 9d358bc649 Merge pull request #8748 from guggero/custom-tlv-types
tlv: generate TLV types for custom ranges
2024-05-14 09:02:32 +02:00
Oliver Gugger 454f56d4a8 tlv: generate TLV types for custom ranges 2024-05-14 08:16:42 +02:00
Oliver Gugger 4256260544 Merge pull request #8729 from Chinwendu20/fn
Add new  functions to the fn package
2024-05-10 11:17:46 +02:00
Oliver Gugger 4a9ab6e538 Merge pull request #8739 from ellemouton/addInstallAll
makefile+dev.Dockerfile: add install-all command
2024-05-08 16:26:46 +02:00
Oliver Gugger c68778d2f3 Merge pull request #7364 from guggero/itest-coverage
Add test coverage for integration tests
2024-05-07 21:05:35 +02:00
Oliver Gugger f523f52ab4 Merge pull request #8732 from ellemouton/guardNewTestSqliteDB
invoices: ensure synchronous access to NewTestSqliteDB
2024-05-07 08:40:56 +02:00
Oliver Gugger b4e4e9447a Merge pull request #8731 from yyforyongyu/fix-payinvoice
cli: add `--amp` to `SendPaymentRequest` in `payinvoice`
2024-05-06 11:20:07 +02:00
Oliver Gugger 90bff71db9 Merge pull request #8716 from yyforyongyu/temp-fix-height-race
sweep: make `TxPublisher.currentHeight` atomic
2024-05-02 17:19:33 +02:00
Oliver Gugger fb632bb945 Merge pull request #8712 from djkazic/invoice-gc-noop
invoices: if there are no invoices make gc noop
2024-05-01 08:31:56 +02:00