Oliver Gugger
834371c995
make: use Golang build and module cache for linter
...
This commit gives the linter container access to the local machine's
build and module cache, drastically decreasing the run time of
subsequent linter runs (no difference on first run with this change).
2024-03-06 13:38:51 +01:00
Oliver Gugger
10a6861bc9
build: bump version to v0.17.99
...
In this commit, we bump the version of the master branch to v0.17.99.
This reflects the fact that master will be a super set of all the minor
releases until v0.18, and will also include changes towards v0.18.
2024-03-01 10:29:04 +01:00
Oliver Gugger
48a3d56335
Merge pull request #8503 from ffranr/fix-err-wrap
...
Correct `fmt.Errorf` error wrapping instances
2024-02-27 12:20:16 -06:00
Oliver Gugger
c307d1eeda
docs: document fundtemplate sub command, add release notes
2024-02-26 11:06:26 +01:00
Oliver Gugger
6dea39c23a
itest: add new test for FundPsbt with coin selection
2024-02-26 11:06:22 +01:00
Oliver Gugger
f333581d6c
cmd/lncli: add 'wallet psbt fundtemplate' command
...
This commit adds a new sub command to the wallet that allows using the
new funding option from a template.
Creating a new command is way easier for the user to understand than
adding multiple flags that are only valid in certain combinations.
2024-02-26 11:05:19 +01:00
Oliver Gugger
54fa5805c2
lnwallet+lnrpc: add address index to ListAddresses
...
For the itest in the next commit we'll need to be able to fetch the
input information for an address over RPC. The only piece missing is the
address' index, which we add in this commit. Everything else should be
derivable from the ListAddresses and ListAccounts calls.
2024-02-26 11:05:19 +01:00
Oliver Gugger
fb20cd598e
lnwallet+lnrpc: add derivation info for P2TR change addrs
...
In some situations (for example in Taproot Assets), we need to be able
to prove that an address is a bare BIP-0086 address that doesn't commit
to any script. We can do that by providing the BIP-0032 derivation info
and internal key.
2024-02-26 11:05:18 +01:00
Oliver Gugger
094fdbfa72
walletrpc: implement third PSBT funding option
...
And now we finally implement the new funding option: Allowing coin
selection with pre-defined inputs and outputs.
2024-02-23 08:58:10 +01:00
Oliver Gugger
0f6c25a773
walletrpc: add PsbtCoinSelect option to FundPsbt
2024-02-23 08:58:10 +01:00
Oliver Gugger
446152e1a5
walletrpc: refactor to prepare for third funding option
...
In the following commits we'll add a new, third, funding option for
funding PSBTs: It will allow users to specify pre-selected inputs but
still request the wallet to perform coin selection up to the total
output sum amount.
2024-02-23 08:58:10 +01:00
Oliver Gugger
17645cd196
multi: add DecorateInputs to WalletController interface
...
This commit adds the new DecorateInputs method of the base wallet to the
WalletController interface.
2024-02-23 08:58:10 +01:00
Oliver Gugger
90c2926fdf
input: add AddOutput method to TxWeightEstimator
...
This commit adds a helper method to estimate the weight of an output by
the given pkScript.
2024-02-23 08:58:10 +01:00
Oliver Gugger
6773d6a6f6
btcwallet: add EstimateInputWeight helper function
...
This is a helper function that we will need to accurately determine the
weight of inputs specified in a PSBT.
Due to the nature of P2WSH and script-spend P2TR inputs, we can only
accurately estimate their weights if the full witness is already known.
So this helper function rejects inputs that use a script spend path but
don't fully specify the complete witness stack.
2024-02-23 08:58:09 +01:00
Oliver Gugger
7aa3662ea2
chanfunding: export change amount calculation
...
We want to re-use the logic that determines what change amount is left
over depending on whether we add or don't add a change output to a
transaction, respecting the change output's dust limit.
2024-02-23 08:58:09 +01:00
Oliver Gugger
2619c03d7d
chanfunding: allow using existing change output
...
We'll want to be able to tell the coin selection algorithm that we
intend to add any change to an existing output instead of assuming that
a change output is always created.
If we add any left over change to an existing output, we can skip the
dust amount check as we assume the selected existing output already has
a non-dust amount requested (responsibility of the caller to assert).
2024-02-23 08:58:09 +01:00
Oliver Gugger
4c82fb6cbb
chanfunding: make coin selection generic
...
Before this commit the coin selection logic in the chanfunding package
would always assume that there is a P2WSH funding output and potentially
a P2TR change output. But because we want to re-use the coin selection
for things other than just channel funding, we make the logic more
generic by allowing us to specify both the existing weight of the
transaction (the already known, static parts of the TX) as well as the
type of the potential change output we would use.
2024-02-23 08:58:09 +01:00
Oliver Gugger
9bdddbcc56
mod+chanfunding: use coin selection strategy for channel funding
...
The wallet assembler is now aware of the node config level coin
selection strategy, so we can use it when creating new channels.
2024-02-23 08:58:09 +01:00
Oliver Gugger
f7198c4105
walletrpc+subserver_config: add coin selection strategy
...
With this commit we also add the config-level coin selection strategy to
the wallet RPC server.
2024-02-23 08:58:09 +01:00
Oliver Gugger
cbc11dac8f
multi: add coin selection strategy to channel funding
...
With this commit we prepare for the lnwallet channel funding logic to be
aware of the config-level coin selection strategy by adding it to the
wallet config.
2024-02-23 08:58:07 +01:00
Oliver Gugger
e53f7c1018
Merge pull request #8494 from yyforyongyu/update-fn
...
gomod: bump `fn` version to `v1.0.2`
2024-02-21 02:09:57 -06:00
Oliver Gugger
a3bf2c70e5
Merge pull request #8486 from joaothallis/fix/link-typo
...
docs: fix typo and links
2024-02-19 02:43:11 -06:00
Oliver Gugger
f008a97082
Merge pull request #8479 from tdb3/master
...
lnrpc: Clarify payment_addr and payment_secret
2024-02-14 03:49:47 -06:00
Oliver Gugger
4855faf162
Merge pull request #8471 from morehouse/codeowners
...
.github: add morehouse to CODEOWNERS
2024-02-12 02:24:22 -06:00
Oliver Gugger
17f5798726
Merge pull request #8466 from weiliy/docs-fix-mining-address
...
docs: preserve MINING_ADDRESS across docker-compose sessions
2024-02-08 02:41:20 -06:00
Oliver Gugger
4584f7e39c
Merge pull request #8457 from mohamedawnallah/lnddir-option-overwrite-docs
...
docs: mention that `--lnddir` option overwrites all other directory options [skip ci]
2024-02-05 03:36:05 -06:00
Oliver Gugger
e9bc9ad510
Merge pull request #8456 from Roasbeef/record-zero-fn
...
tlv: add new Zero method on RecordT
2024-02-05 02:48:38 -06:00
Oliver Gugger
ca5f23a647
Merge pull request #7372 from bhandras/listsweeps-range
...
walletrpc: add `startheight` parameter to the `ListSweeps` RPC
2024-02-02 02:03:16 -06:00
Oliver Gugger
c517d4ccd9
Merge pull request #8427 from yyforyongyu/fix-rpc-docs
...
trivial: fix docs on `ListPaymentsRequest`
2024-01-29 06:26:17 -06:00
Oliver Gugger
1e5ff5fa27
Merge pull request #8438 from guggero/fix-sendpayment-api-docs
...
routerrpc: make use of fee limit obvious in SendPaymentV2
2024-01-29 06:16:51 -06:00
Oliver Gugger
eb08a6f004
routerrpc: make use of fee limit obvious in SendPaymentV2
2024-01-29 13:45:14 +02:00
Oliver Gugger
e31d159893
Merge pull request #8401 from yyforyongyu/update-btcd-ver
...
gomod: fix `btcd` mempool leak fix and `GetBlock` heap escape
2024-01-23 11:42:09 -06:00
Oliver Gugger
d7796b464e
Merge pull request #8377 from ellemouton/towerTestFlakeFix
...
wtclient: ensure correct disk mode for overflow queue
2024-01-23 09:47:27 -06:00
Oliver Gugger
7d03b43ddf
Merge pull request #8314 from mohamedawnallah/add-auto-protolinter
...
[CI]: Install protolint to enforce the protobuf style guide rules in the CI
2024-01-23 03:25:55 -06:00
Oliver Gugger
e1259cd3c7
Merge pull request #8411 from guggero/make-help
...
Makefile: add `make help` command that describes goals
2024-01-22 03:59:41 -06:00
Oliver Gugger
35fa053144
Merge pull request #8413 from ellemouton/add-0-17-4-release-notes
...
docs: add template for 0.17.4
2024-01-22 03:58:16 -06:00
Oliver Gugger
f35a3718ec
Makefile: add make help command that describes goals
...
This commit adds a description to each make goal that is printed when
`make help` is run.
Idea borrowed from btcsuite/btcd#2107 .
2024-01-22 10:31:48 +02:00
Oliver Gugger
2b83ea309a
Merge pull request #8407 from mohamedawnallah/fix-typo-channel.go
...
fix: fix typo "(cltv_expiry" to "(cltv_expiry)" in `channeldb/channel.go` [skip ci]
2024-01-22 00:46:06 -06:00
Oliver Gugger
cc18ec4f55
Merge pull request #8354 from mohamedawnallah/add-bitcoind-docker-image-compose-setup
...
docker: setup `bitcoind` docker image in the `docker-compose.yml` file
2024-01-22 00:43:26 -06:00
Oliver Gugger
24a79c78ed
Merge pull request #8403 from ellemouton/towerInterfaceGotcha
...
config: pass tower manager pointer in to PopulateDependencies
2024-01-19 07:59:30 -06:00
Oliver Gugger
c0e3ae6adc
Merge pull request #8399 from yyforyongyu/add-signing-key
...
scripts: add gpg key for yyforyongyu [skip ci]
2024-01-19 07:15:25 -06:00
Oliver Gugger
ba4021cad9
Merge pull request #8388 from morehouse/fix_fuzz_payload
...
htlcswitch: update fuzzPayload for route blinding
2024-01-18 09:31:22 -06:00
Oliver Gugger
4315e80e07
Merge pull request #8394 from cristiantroy/master
...
fix: typos [skip ci]
2024-01-18 08:52:10 -06:00
Oliver Gugger
dda5c4515e
Merge pull request #8279 from Crypt-iQ/p2tr_weight
...
sweep: use p2tr output as change weight
2024-01-18 02:11:35 -06:00
Oliver Gugger
76ae3e457b
Merge pull request #8382 from ellemouton/bumpTlv
...
go.mod: update TLV package tag
2024-01-15 16:24:50 +01:00
Oliver Gugger
a2986f96da
Merge pull request #8373 from hieblmi/fix-funding-logs
...
funding: fix funding flow log
2024-01-15 09:24:50 +01:00
Oliver Gugger
cc5fcb8135
Merge pull request #8375 from ProofOfKeags/chore/typo-fix
...
lnrpc: fix typo in rpc docs
2024-01-12 18:56:46 +01:00
Oliver Gugger
2ae6b586e3
Merge pull request #8361 from calvinrzachman/remote-signer-itest
...
lntest: standby test nodes in remote signing configuration
2024-01-11 16:57:08 +01:00
Oliver Gugger
9afe1b72dc
Merge pull request #8188 from guggero/debug-rpcs
...
rpcserver+lncli: add ability to create encrypted debug information package
2024-01-09 16:28:03 +01:00
Oliver Gugger
ad34f80c85
docs: add release notes
2024-01-09 12:43:44 +01:00
Oliver Gugger
0da35edc48
cmd/lncli: add flags for more info to encryptdebugpackage
...
This commit adds three optional command line flags to the
encryptdebugpackage: --peers, --onchain and --channels.
Each of them adds the output of extra commands to the encrypted debug
package.
2024-01-09 12:43:42 +01:00
Oliver Gugger
d4f49cb04b
cmd/lncli: add {encrypt,decrypt}debugpackage commands
2024-01-09 12:40:39 +01:00
Oliver Gugger
b6abede4a3
lnencrypt: add ECDHEncryptor
...
With this commit we add a new way to encrypt and decrypt a sensitive
payload: By using Diffie-Hellman over a local and remote key to derive
at a shared secret key.
2024-01-09 12:32:38 +01:00
Oliver Gugger
375bc6950c
cmd/lncli: add new getdebuginfo command
2024-01-09 12:32:37 +01:00
Oliver Gugger
8a2c3a3d85
lnrpc+rpcserver: add new GetDebugInfo RPC method
2024-01-09 12:32:37 +01:00
Oliver Gugger
becbe7085d
config: create helper for dumping config
...
With this commit we add a new helper function that recursively turns the
runtime configuration into a flat key/value map that is human-readable,
using the dot notation for nested values that is also used in the config
file or command line flags.
2024-01-09 12:32:01 +01:00
Oliver Gugger
2b54774721
Merge pull request #8339 from mani2310/mani2310-Wrong-documentation-on-lncli
...
Wrong documentation on lncli
2024-01-09 08:29:06 +01:00
Oliver Gugger
7cb53020ee
Merge pull request #8346 from yyforyongyu/remove-error-return
...
routing+routerrpc: remove redudant error check
2024-01-08 17:41:32 +01:00
Oliver Gugger
8d0abc01c1
Merge pull request #8353 from mohamedawnallah/fix-typo-code-formatting-rules
...
docs: fix typo "paren" to "parenthesis" in `code_formatting_rules.md` [skip ci]
2024-01-08 15:51:32 +01:00
Oliver Gugger
708bd05df3
Merge pull request #8342 from guggero/js-doc-fix
...
docs: update Node.JS example
2024-01-04 10:57:39 +01:00
Oliver Gugger
0bf857d8e1
Merge pull request #8341 from threewebcode/patch-3
...
fix: remove duplicate words [skip ci]
2024-01-04 10:37:47 +01:00
Oliver Gugger
3a7e564582
docs: update Node.JS example
...
Fixes #8333 by not using the outdated `bytebuffer` library anymore.
2024-01-04 09:13:59 +01:00
Oliver Gugger
319a5dab5c
Merge pull request #8325 from Thabokani/master
...
chore: fix typos [skip ci]
2024-01-04 09:01:58 +01:00
Oliver Gugger
82e2b4010b
Merge pull request #8320 from threewebcode/patch-2
...
fix: correct the typo [skip ci]
2024-01-03 14:07:41 +01:00
Oliver Gugger
4d8fa349ca
Merge pull request #8303 from AtomicInnovation321/master
...
docs: fix typos
2023-12-21 17:31:59 +01:00
Oliver Gugger
30348baedc
Merge pull request #8296 from threewebcode/patch-1
...
fix: rectify the typos in the docs
2023-12-20 09:47:14 +01:00
Oliver Gugger
0df507eca0
Merge pull request #8261 from markettes/lncli-multiple-outgoing-channels
...
Enable multiple outgoing channel ids in payments
2023-12-18 11:38:46 +01:00
Oliver Gugger
f2d48c328b
Merge pull request #7800 from ziggie1984/neutrino-remove-sweeptx
...
neutrino remove sweeptx
2023-12-12 17:48:12 +01:00
Oliver Gugger
0ec9ac7070
Merge pull request #7654 from ErikEk/listchaintxns-add-txhash
...
rpc: add gettx command to walletrpc
2023-12-11 10:08:42 +01:00
Oliver Gugger
ad88396a34
Merge pull request #8097 from markettes/fix-amount-field
...
Fix amount field
2023-12-04 12:19:07 +01:00
Oliver Gugger
27319315bb
Merge pull request #8220 from yyforyongyu/enhance-logging-switch
...
multi: fix loopvar and enhance logging around channel reestablishment
2023-11-28 17:48:02 +01:00
Oliver Gugger
9ce543fb05
Merge pull request #8209 from vuittont60/master
...
docs: fix typos [skip ci]
2023-11-27 23:54:17 +01:00
Oliver Gugger
db0b612734
Merge pull request #8224 from yyforyongyu/fix-musig2-session
...
input: fix `fatal error: concurrent map writes`
2023-11-27 23:40:53 +01:00
Oliver Gugger
3b7cda9e8d
Merge pull request #8111 from jharveyb/chainkit_add_getblockheader
...
chainkit: expose getblockheader
2023-10-27 18:35:05 +02:00
Oliver Gugger
7d2e0ae3e4
Merge pull request #8116 from lightningnetwork/dependabot/go_modules/google.golang.org/grpc-1.56.3
...
build(deps): bump google.golang.org/grpc from 1.53.0 to 1.56.3
2023-10-26 14:06:09 +02:00
Oliver Gugger
e6fde8bd0c
GitHub: bump pinned versions in CI check
2023-10-26 10:25:35 +02:00
Oliver Gugger
06020578c9
Merge pull request #8115 from lightningnetwork/dependabot/go_modules/kvdb/google.golang.org/grpc-1.56.3
...
build(deps): bump google.golang.org/grpc from 1.53.0 to 1.56.3 in /kvdb
2023-10-26 09:19:02 +02:00
Oliver Gugger
ebbf078d6d
Merge pull request #8014 from Roasbeef/go-loop-exp
...
build: prep for Go 1.22 by using GOEXPERIMENT=loopvar for tests
2023-10-25 15:36:52 +02:00
Oliver Gugger
15f4213793
Merge pull request #7828 from ProofOfKeags/pong-enforcement
...
multi: pong enforcement
2023-10-19 21:50:08 +02:00
Oliver Gugger
e1fb1e484a
Merge pull request #7967 from morehouse/fuzz_onion
...
htlcswitch: fuzz onion encoding/decoding
2023-10-19 15:30:03 +00:00
Oliver Gugger
812f4d9242
Merge pull request #8081 from bhandras/invoicedb-refactor
...
invoices: refactor `InvoiceDB` to eliminate `ScanInvoices`
2023-10-19 09:27:54 +00:00
Oliver Gugger
91d910872d
Merge pull request #7715 from bshramin/http-client-timeout
...
lntest: set ReadHeaderTimeout for http client
2023-10-17 19:33:39 +00:00
Oliver Gugger
82838e4a62
Merge pull request #8090 from ziggie1984/add-additional-log-chan-closure
...
Add more information when a co-op close is failing.
2023-10-17 10:27:21 +00:00
Oliver Gugger
b0bb853f77
Merge pull request #8092 from yyforyongyu/fix-peer-unit-test
...
multi: fix peer unit test and disable `paralleltest`
2023-10-17 10:18:27 +00:00
Oliver Gugger
e8d865aba5
Merge pull request #7824 from yyforyongyu/sweeper-unit-test
...
input+sweep: make sure input with no fee rate is not added to cluster
2023-10-17 06:36:21 +00:00
Oliver Gugger
a6f044b748
Merge pull request #8057 from Chinwendu20/tlv-bool
...
tlv: Added bool to primitive
2023-10-16 15:23:48 +00:00
Oliver Gugger
d6c7200bb4
Merge pull request #8086 from lightningnetwork/dependabot/go_modules/tor/golang.org/x/net-0.17.0
...
build(deps): bump golang.org/x/net from 0.10.0 to 0.17.0 in /tor
2023-10-16 11:00:19 +00:00
Oliver Gugger
55c5a33f6f
Merge pull request #8087 from lightningnetwork/dependabot/go_modules/kvdb/golang.org/x/net-0.17.0
...
build(deps): bump golang.org/x/net from 0.10.0 to 0.17.0 in /kvdb
2023-10-16 10:59:59 +00:00
Oliver Gugger
abb1e3463f
scripts: kill lnd on windows to access log files ( #8076 )
...
For some reason lnd doesn't properly shut down on some windows itests,
and the process still running makes it impossible to access its log
files.
So for the Windows integration test, we attempt to kill the whole
process tree once the process indicates it is done.
2023-10-10 16:15:41 +02:00
Oliver Gugger
dce4bb16be
Merge pull request #8063 from guggero/fix-linter
...
cmd/lncli: fix linter complaint by running make fmt
2023-10-06 13:14:17 +00:00
Oliver Gugger
7ef11e8ae4
cmd/lncli: fix linter complaint by running make fmt
2023-10-05 22:47:02 +02:00
Oliver Gugger
31ba616b1c
Merge pull request #7925 from Crypt-iQ/funding_maturity
...
funding: wait for coinbase maturity before sending channel_ready
2023-10-05 15:26:30 +00:00
Oliver Gugger
563d6d5427
Merge pull request #7970 from bartoli/master
...
Fix missing space in message
2023-10-05 15:20:14 +00:00
Oliver Gugger
529dc203a5
Merge pull request #8017 from Rooke/master
...
trivial: Fix spelling errors
2023-10-05 08:42:08 +00:00
Oliver Gugger
3ffd59a8c9
Merge pull request #7998 from bota87/master
...
sample-lnd.conf: fix typo
2023-10-05 08:06:31 +00:00
Oliver Gugger
3b0d918ea4
GitHub: fix link in release template
...
Fixes #8055 .
This PR fixes a broken link in the release page template.
2023-10-04 09:36:51 +02:00
Oliver Gugger
d16e7a5eef
itest: add itest for externally funded taproot chans
2023-09-26 21:45:17 +02:00
Oliver Gugger
d94ae3f509
lnrpc+rpcserver: add musig2 to ChanPointShim
2023-09-26 21:45:17 +02:00
Oliver Gugger
ebf98c6d51
chanacceptor: add simple taproot channels
2023-09-26 21:45:16 +02:00
Oliver Gugger
3821baa0c8
Merge pull request #8024 from Roasbeef/htlc-resolver-c-queue
...
contractcourt: modify the incoming contest resolver to use concurrent…
2023-09-26 16:03:10 +00:00