Oliver Gugger
e319fb888e
Merge pull request #6547 from Crypt-iQ/boltfix_05-22
...
channeldb: copy value from boltdb's Get instead of using it directly
2022-05-17 19:43:03 +02:00
Oliver Gugger
04fb034259
Merge pull request #6535 from ErikEk/config-rpccookie-path
...
config: fix path to bitcoind/litecoind rpccookie and config
2022-05-16 16:06:04 +02:00
Oliver Gugger
6b57e92a37
Merge pull request #6529 from guggero/constrainmacaroon
...
lncli: add constrainmacaroon command
2022-05-16 15:57:52 +02:00
Oliver Gugger
4b313a54f8
Merge pull request #6536 from ErikEk/cookie-missing-error-msg-fix
...
config: error msg for missing bitcoind cookie file
2022-05-16 13:49:04 +02:00
Oliver Gugger
c647d32cf7
Merge pull request #6540 from yyforyongyu/6537-fix-push-amount
...
rpcserver: fix wrong unit used in PushAmountSat
2022-05-16 13:48:02 +02:00
Oliver Gugger
8f94aac00a
docs: add release notes
2022-05-13 13:41:10 +02:00
Oliver Gugger
968393975b
cmd/lncli: add constrainmacaroon command
2022-05-13 13:41:10 +02:00
Oliver Gugger
f4e1f60e4d
cmd/lncli: extract macaroon caveat flags
...
As a preparation for re-using the macaroon caveat/constraints CLI flags,
we extract the parsing and adding of those constraints into its own
function.
2022-05-13 13:38:53 +02:00
Oliver Gugger
5e411ac5f3
docs: add release notes
2022-05-12 12:49:15 +02:00
Oliver Gugger
51a480129b
walletunlocker+keychain+config_builder: use new aezeed version
2022-05-12 12:49:14 +02:00
Oliver Gugger
daa5966119
aezeed: make seed generation fully deterministic
...
This commit fixes a TODO to make the seed generation fully deterministic
by providing the option to pass in a custom randomness source.
2022-05-12 12:49:14 +02:00
Oliver Gugger
63e28a27b8
aezeed: re-encode salt correctly
2022-05-12 12:49:14 +02:00
Oliver Gugger
f67776375f
aezeed: re-format test cases, use require
2022-05-12 12:49:13 +02:00
Oliver Gugger
a02112464a
aezeed: remove unnecessary casts
2022-05-12 12:47:07 +02:00
Oliver Gugger
83f1c2c9b6
aezeed: fix typos and formatting
2022-05-12 12:47:06 +02:00
Oliver Gugger
5240fa9983
docs: add release notes
2022-05-12 10:28:14 +02:00
Oliver Gugger
cb3cb4c8ab
cmd/lncli: add pk script and value to JSON
2022-05-12 10:24:42 +02:00
Oliver Gugger
70103a1838
multi: return more information in list of leased outputs
...
With this commit we return the additional information the wallet now
provides about locked/leased outputs.
2022-05-12 10:24:40 +02:00
Oliver Gugger
a25d5255fb
walletrpc: add pkScript and value to UTXO lease
2022-05-12 10:24:39 +02:00
Oliver Gugger
d716b721be
mod: bump to latest btcwallet dependency
...
This commit bumps the btcwallet version to the latest master branch that
contains the fixes to add Taproot related fields to a PSBT in the
FundPsbt method.
2022-05-12 10:24:38 +02:00
Oliver Gugger
8086ff447e
Merge pull request #6464 from kaloudis/mobile-build-subservers
...
Mobile builds: expose main sub-servers by default
2022-05-11 19:57:49 +02:00
Oliver Gugger
c2adb03e38
Merge pull request #6450 from guggero/taproot-psbt
...
taproot: add PSBT signing support for Taproot, fix remote signing Taproot support
2022-05-11 11:16:51 +02:00
Oliver Gugger
8dbf78fbb6
Merge pull request #6523 from Roasbeef/hop-hints-opt-in
...
cmd/lncli: make hop hint inclusion opt-in for addinvoice
2022-05-11 10:08:30 +02:00
Oliver Gugger
9f4f0e94f5
multi: avoid direct use of dcrec/secp256k1 library
...
Because the original dcrec secp256k1 library that is used for the
Schnorr signature primitives uses different hash algorithms than the
btcd secp256k1 library. Therefore pulling in the wrong library can lead
to weird and unexpected errors. We try to make it harder to make the
mistake by not using the library directly in lnd in the first place.
Note that it is still indirectly needed by the btcd secp256k1 library,
therefore the module dependency is still expected to be there, just
moved to the indirect section.
2022-05-11 10:07:52 +02:00
Oliver Gugger
cc6e864639
docs: add release notes
2022-05-11 10:07:52 +02:00
Oliver Gugger
6c495c1bbe
itest: add Taproot PSBT signing tests
2022-05-11 10:07:51 +02:00
Oliver Gugger
fe30b9e987
itest: refactor PSBT signing itest
2022-05-11 10:07:51 +02:00
Oliver Gugger
d1a151010a
lntest+rpcwallet: support remote p2tr script spend signing
2022-05-11 10:07:51 +02:00
Oliver Gugger
7f4e977073
lntest+rpcwallet: support remote p2tr key spend signing
2022-05-11 10:07:50 +02:00
Oliver Gugger
35dd2d25ea
btcwallet: support taproot script signing in PSBT
2022-05-11 10:07:50 +02:00
Oliver Gugger
0f32a4456d
btcwallet: support taproot key spend signing in PSBT
2022-05-11 10:07:50 +02:00
Oliver Gugger
e4aa32fdf7
btcwallet: prepare for supporting new signing methods
2022-05-11 10:07:49 +02:00
Oliver Gugger
0e098ed9da
mod: update to btcd/btcutil/psbt v1.1.4
2022-05-11 10:07:49 +02:00
Oliver Gugger
99cda74f6a
input: define new signing method constants
2022-05-11 10:07:48 +02:00
Oliver Gugger
5395a0fe6b
rpcwallet: attempt to locate UTXO information in prev output fetcher
...
Since we might now be given a whole list of UTXOs in the PrevOutputs
field of the SignOutputRaw RPC, the previous output fetcher might
contain the information we require for the remote signing case. So
instead of failing if our wallet doesn't know each input that's being
spent, we fall back to the UTXO information contained in the previous
outputs.
2022-05-11 10:07:48 +02:00
Oliver Gugger
0051e39078
Merge pull request #6345 from ellemouton/bitcoind-rpc-polling
...
multi: bitcoind rpc polling option
2022-05-11 10:04:37 +02:00
Oliver Gugger
ddeccf8fcc
Merge pull request #6521 from guggero/p2tr-open-channel
...
chanfunding: properly support p2tr inputs in funding TX
2022-05-10 21:33:15 +02:00
Oliver Gugger
066fe07de5
docs: add release notes
2022-05-10 20:35:28 +02:00
Oliver Gugger
4fd43b4afe
itest: add new funding test with all input types
2022-05-10 20:35:28 +02:00
Oliver Gugger
fd7fe2ae5a
itest: use SendCoinsUnconfirmed in funding test
2022-05-10 18:39:45 +02:00
Oliver Gugger
e27a9fec66
lntest: rename sendCoins to SendCoinsOfType
2022-05-10 18:31:18 +02:00
Oliver Gugger
18cf06ddd1
chanfunding: fix sighash type for p2tr inputs
...
This commit fixes the default sighash type for p2tr channel funding
transaction inputs.
2022-05-10 18:13:00 +02:00
Oliver Gugger
631b2af818
btcwallet: support p2tr input info type detection
2022-05-10 18:03:29 +02:00
Oliver Gugger
8980471d57
chanfunding: support p2tr input fee calculation
...
With this commit we support fee calculation in coin selection for p2tr
inputs. We assume that coins in our UTXO selection are only BIP0086
coins. Any other input types with different spend paths won't be
selected by the wallet assembler.
2022-05-10 18:01:14 +02:00
Oliver Gugger
10f7213998
Merge pull request #6472 from tvolk131/document_confirmation_height
...
Document that `confirmation_height` is unset
2022-05-09 10:55:31 +02:00
Oliver Gugger
5d8fba6810
Merge pull request #6502 from bhandras/musig-fix
...
signer: fix crash in `MuSig2Combine` when the final signature isn't ready
2022-05-06 13:24:27 +02:00
Oliver Gugger
a4b486c58c
Merge pull request #6486 from sangaman/install-tags
...
docs/INSTALL.md: add list of build tags
2022-05-06 10:20:27 +02:00
Oliver Gugger
f8dd032de5
Merge pull request #6465 from Roasbeef/bitcoind23
...
build: update CI to build against bitcoind 23
2022-05-05 13:24:50 +02:00
Oliver Gugger
bdd1c5c4e1
Merge pull request #6423 from tvolk131/fix_typos
...
Typo fixes and code cleanup
2022-05-05 09:42:39 +02:00
Oliver Gugger
48695dd801
Merge pull request #6495 from guggero/musig2-session-cleanup
...
MuSig2: Add session cleanup RPC
2022-05-04 21:30:52 +02:00
Oliver Gugger
17e0f990ac
docs: add release notes
2022-05-04 19:23:59 +02:00
Oliver Gugger
52e42fc107
lnrpc+itest: implement MuSig2Cleanup RPC
2022-05-04 19:23:58 +02:00
Oliver Gugger
7e11f64650
rpcwallet: only shut down on RPC error
2022-05-04 19:23:58 +02:00
Oliver Gugger
95ff670c0e
multi: add MuSig2Cleanup method to MuSig2 signer
2022-05-04 19:23:58 +02:00
Oliver Gugger
771d77d875
signrpc: add MuSig2Cleanup RPC
2022-05-04 19:23:57 +02:00
Oliver Gugger
05fd4f9e0e
Merge pull request #6463 from guggero/num-payments
...
ListPayments: add new optional count_total_payments flag
2022-05-03 16:23:58 +02:00
Oliver Gugger
cd21918c5d
Merge pull request #6483 from ErikEk/remove-zmq-check
...
zmq: remove port checker
2022-05-03 09:51:59 +02:00
Oliver Gugger
68fad0cd53
Merge pull request #6478 from bufo24/master
...
fix typo comment for scanInvoicesOnStart function
2022-05-03 09:51:32 +02:00
Oliver Gugger
bf03d112a9
docs: add release notes
2022-05-02 12:32:07 +02:00
Oliver Gugger
ab6e1012e4
cmd/lncli: add --count_total_payments flag
2022-05-02 12:32:07 +02:00
Oliver Gugger
a44e56b51a
lnrpc: add new request/response fields for payment count
2022-05-02 12:32:06 +02:00
Oliver Gugger
c42330d9c5
channeldb: add CountTotal option to payment query
2022-05-02 12:32:06 +02:00
Oliver Gugger
63f02c2bd8
Merge pull request #6250 from Crypt-iQ/resolutionmsg_handoff
...
htlcswitch+lntest: create resolutionStore to persist ResolutionMsg
2022-05-02 10:17:05 +02:00
Oliver Gugger
aca22998bc
Merge pull request #6481 from torkelrogstad/2022-04-30-chain-notifier
...
chainrpc: clarify documentation
2022-05-02 09:34:15 +02:00
Oliver Gugger
9bbee09497
Merge pull request #6361 from guggero/musig2
...
Musig2: add new MuSig2 RPC methods to `signrpc`
2022-04-29 12:55:52 +02:00
Oliver Gugger
93e069f3bd
docs: add MuSig2 doc and release notes
2022-04-29 11:42:47 +02:00
Oliver Gugger
63e93ae572
itest: add taproot SignOutputRaw Bip86 signing test
2022-04-29 11:42:46 +02:00
Oliver Gugger
3ba6421d5c
itest: add MuSig2 end-to-end tests
2022-04-29 11:42:43 +02:00
Oliver Gugger
e31aab5af6
multi: fix inclusion proof size
...
The inclusion proof field in the TapscriptPartialReveal function was
incorrect. An inclusion proof can be zero or more elements of 32-byte
slices. So an empty inclusion proof can be valid too for a tree that
only consists of a single leaf.
2022-04-29 11:41:09 +02:00
Oliver Gugger
f7275c7fc4
multi: implement MuSig2 RPCs and remote signing
2022-04-29 11:41:09 +02:00
Oliver Gugger
8fc99fba00
input+btcwallet: add MuSig2 signing operations
...
With this commit we add the high-level MuSig2 signing methods to the
btcwallet which will later be exposed through an RPC interface.
2022-04-29 11:41:08 +02:00
Oliver Gugger
fee2b28d1b
itest: refactor taproot test
2022-04-29 11:41:05 +02:00
Oliver Gugger
dfac94bf9b
tools+lint: fix linter for Go 1.18
2022-04-29 09:34:14 +02:00
Oliver Gugger
be704b09b2
mod: bump btcec to MuSig2 version, require go 1.17
2022-04-29 09:34:02 +02:00
Oliver Gugger
0845c4daeb
Merge pull request #6454 from bottlepay/require-interceptor-info
...
rpcserver: expose interceptor required flag on info call
2022-04-25 12:11:29 +02:00
Oliver Gugger
3d7d9361f8
Merge pull request #6422 from hieblmi/lncli-socks-proxy
...
#4939 Add socks proxy support to lncli
2022-04-20 18:58:09 +02:00
Oliver Gugger
b6c5603e00
Merge pull request #5157 from orbitalturtle/addPeer-flag
...
lnd: Adds addpeer flag
2022-04-20 10:03:21 +02:00
Oliver Gugger
51a7566248
Merge pull request #6354 from guggero/fix-unit-tests
...
chainview: fix unit test timeout
2022-04-19 13:08:43 +02:00
Oliver Gugger
3f757e56a7
docs: add release notes
2022-04-19 11:13:21 +02:00
Oliver Gugger
1c0b4fd1de
chainview: increase connection timeout in test
...
The unit test sometimes fails with a connection timeout when trying to
connect to the reorg mining node. We attempt to make things more robust
by doubling both the number of retries as well as the retry timeout
itself.
2022-04-19 11:12:50 +02:00
Oliver Gugger
2195c71407
chainview: fix formatting
2022-04-19 11:12:49 +02:00
Oliver Gugger
b08df8437e
Merge pull request #6428 from guggero/psbt-1-1-3
...
mod+docs: bump btcutil/psbt library to v1.1.3
2022-04-19 10:55:25 +02:00
Oliver Gugger
b6e1d2ae41
mod+docs: bump btcutil/psbt library to v1.1.3
...
Fixes #6386 .
Bumps the btcutil/psbt library to the latest version v1.1.3 that fixes
an issue with de-serializing a PSBT that contains an unsigned
transaction with no inputs.
2022-04-19 09:45:38 +02:00
Oliver Gugger
044286ae2c
Merge pull request #6024 from lightningriders/timepref
...
routing: add time preference parameter
2022-04-13 22:17:02 +02:00
Oliver Gugger
f37ebb68ea
docs: add release notes
2022-04-13 14:01:59 +02:00
Oliver Gugger
70c01e5bf1
mod: bump btcwallet to p2tr unused addr fix
2022-04-13 14:01:59 +02:00
Oliver Gugger
4bdc3c9a5b
Merge pull request #6407 from guggero/multi-fixes
...
signrpc: fix panic with missing UTXO information when signing Taproot output
2022-04-12 19:43:51 +02:00
Oliver Gugger
9281e7a692
docs: add release notes
2022-04-12 19:30:13 +02:00
Oliver Gugger
1e72d6737d
lnrpc+itest: fix panic with missing UTXO info
...
Fixes #6396 .
This commit fixes a panic that occurred when trying to sign for a
Taproot output without specifying the full UTXO information for each
input. Instead of panicking an error is now returned.
2022-04-12 19:30:12 +02:00
Oliver Gugger
2a069b8b4e
rpcserver: copy success variable of channel close update
...
Seems this was forgotten in a refactor a while back.
2022-04-12 19:30:11 +02:00
Oliver Gugger
1ad667908e
Merge pull request #6393 from hitanshu-mehta/fix-typo
...
Docs: fix typos in sample-lnd.conf and chanfitness/chanevent.go
2022-04-12 18:34:44 +02:00
Oliver Gugger
8047f2388e
Merge pull request #6212 from bottlepay/interceptor-check
...
htlcswitch: interceptor expiry check
2022-04-12 09:55:55 +02:00
Oliver Gugger
e13e5f874f
cmd/lncli: fix linter issues after contributor PR [skip ci]
2022-04-11 18:02:42 +02:00
Oliver Gugger
65dc3ef8a6
Merge pull request #6349 from gabbyprecious/unlock-error-message#2529
...
change changepassword and unlock error message
2022-04-11 17:05:33 +02:00
Oliver Gugger
8109c9ccf1
Merge pull request #6392 from C-Otto/fix-typo
...
rpcperms: fix typo
2022-04-04 23:47:55 +02:00
Oliver Gugger
0f858958f9
Merge pull request #6373 from hsjoberg/macos-makefile
...
mobile: Add macos and apple Makefile tasks
2022-04-01 12:35:57 +02:00
Oliver Gugger
359ef6a821
Merge pull request #6376 from ellemouton/useTCPResolverForAllInterfacesAddr
...
lncfg: normal TCP resolution for the all-interfaces IP
2022-03-31 14:46:38 +02:00
Oliver Gugger
8072b20d54
Merge pull request #6380 from guggero/websocket-proxy-race-fix
...
lnrpc: fix websocket proxy data race
2022-03-30 18:13:55 +02:00
Oliver Gugger
de9d3096c0
docs: add release notes
2022-03-30 17:03:45 +02:00
Oliver Gugger
40358d406d
lnrpc: fix websocket proxy data race
...
Was discovered in a race unit test in lightning node connect that uses
the websocket proxy to connect to the hashmail server on the client
side.
By not shadowing the err variable we end up reading and writing to the
same variable from two different goroutines, which causes the data race.
2022-03-30 17:03:30 +02:00