Oliver Gugger
17014b592e
Merge pull request #6730 from Roasbeef/notifier-optional-block
...
chainntfns: add new option for conf notifications to send block
2022-08-10 13:52:49 +02:00
Oliver Gugger
6060e05d7c
Merge pull request #6736 from bitromortac/2207-independent-cookie
...
config: allow independent rpccookie config
2022-08-08 13:33:49 +02:00
Oliver Gugger
7e225f6aa5
Merge pull request #6806 from data-retriever/fixed-typo
...
Fixed typo
2022-08-08 08:58:08 +02:00
Oliver Gugger
e86a69b815
Merge pull request #6748 from Kixunil/patch-3
...
doc: Deprecation reason of `settled` on `Invoice`
2022-08-02 12:38:08 +02:00
Oliver Gugger
87f4f03fca
Merge pull request #6763 from theborakompanioni/patch-2
...
fix: go version in ARMv6 section of INSTALL.md
2022-07-25 19:22:38 +02:00
Oliver Gugger
2d093ac183
Merge pull request #6741 from morehouse/fix_sign_psbt
...
itest: fix sign_psbt failure
2022-07-22 15:27:12 +02:00
Oliver Gugger
0ac421907a
Merge pull request #6739 from ellemouton/indexOutOfRange
...
rpcperms: re-init mw lookup map after removal of one
2022-07-19 16:59:45 +02:00
Oliver Gugger
f7b7442680
Merge pull request #6545 from yyforyongyu/5746-sendtoroute
...
routing: enable skipping failing payments upon temporary error
2022-07-15 14:34:56 +02:00
Oliver Gugger
e6b25309bd
Merge pull request #6731 from guggero/linter-upgrade
...
tools: upgrade linter version to v1.46.2
2022-07-15 11:25:25 +02:00
Oliver Gugger
af97b8f877
Merge pull request #6722 from guggero/sign-schnorr-tweaked
...
signrpc: add Schnorr signatures to sign and verify message
2022-07-14 14:51:47 +02:00
Oliver Gugger
1e02d8910f
Merge pull request #6718 from hieblmi/chan-point-for-updatechanstatus
...
lncli: chan_point option for abandonchannel
2022-07-14 10:32:40 +02:00
Oliver Gugger
9d568cc119
Merge pull request #6630 from guggero/rpc-middleware-replace-request
...
RPC middleware: allow replacing request messages and response errors too
2022-07-14 10:24:19 +02:00
Oliver Gugger
f649c6fd47
docs: update release notes
2022-07-14 09:36:50 +02:00
Oliver Gugger
9774db614b
itest: add integration test for error interception
2022-07-14 09:36:50 +02:00
Oliver Gugger
e1efb39177
itest: add integration test for request replacement
2022-07-14 09:36:50 +02:00
Oliver Gugger
b1d8767a0c
rpcperms: intercept errors too
2022-07-14 09:36:50 +02:00
Oliver Gugger
502542da60
lnrpc: add is_error to intercept message
2022-07-14 09:36:48 +02:00
Oliver Gugger
d604055ccc
lnrpc: describe request replacement in API docs
...
This commit updates the comments in the proto file to mention the new
behavior of also being able to replace request messages.
2022-07-14 09:36:36 +02:00
Oliver Gugger
86c64abfe6
rpcperms: allow requests to be replaced as well
...
With this commit we allow a replacement message to be sent by the
middleware for a request type as well as the response type. This allows
an incoming RPC request to be modified before it is forwarded to lnd.
2022-07-14 09:36:36 +02:00
Oliver Gugger
dc32ca61f8
rpcperms: add replaceProtoMsg
...
Because of the way the gRPC Receive() method is designed, we need a way
to replace a proto message with the content of another one without
replacing the original instance itself (e.g. overwrite all values in the
existing struct instance).
2022-07-14 09:36:36 +02:00
Oliver Gugger
66258ee7b5
lnrpc: enable RPC middleware in REST WebSockets
...
If we don't flag the /v1/middleware call as request streaming, it can't
be used properly with REST WebSockets because the proxy would close the
connection after the first request message.
2022-07-14 09:36:36 +02:00
Oliver Gugger
b0d85c41a5
docs: add release notes
2022-07-14 09:33:50 +02:00
Oliver Gugger
850330a34e
multi: fix linter issues
...
Fix some issues found by the new nonamedreturn rule and rename some
nolint comment to the new rule name.
2022-07-14 09:30:53 +02:00
Oliver Gugger
da75619245
golangci: disable new exhauststruct rule
...
A new linter rule was added in the latest version that wants all fields
in a struct to be declared, even if the default value is used. Because
that would mean a large diff for us, we disable the rule for now.
2022-07-14 09:29:34 +02:00
Oliver Gugger
7d7ab4da3a
tools: upgrade linter to latest version
2022-07-14 09:29:16 +02:00
Oliver Gugger
47822fada6
Merge pull request #6724 from ellemouton/ignorepair
...
lncli: add ignore_pair flag to queryroutes
2022-07-13 13:51:49 +02:00
Oliver Gugger
d365babe25
docs: add release notes
2022-07-08 16:08:22 +02:00
Oliver Gugger
989648b7ec
itest: fix timeout in sign_psbt test
2022-07-08 16:08:21 +02:00
Oliver Gugger
9fd9234d86
lnwallet: don't create BIP044 key scope by default
...
With a change in #6379 we made sure that all default scopes are added to
the the wallet. Unfortunately this included the BIP044 key scope that
our wallet doesn't really use. This breaks the remote signing setup
because we don't export the account of the BIP044 scope and therefore
run into an issue on the watch-only side when attempting to create the
wallet.
2022-07-08 14:32:03 +02:00
Oliver Gugger
6980a18ab1
Merge pull request #6712 from Roasbeef/itest-keep-failed-payments
...
lntest: keep all failed payments by default for HarnessNode
2022-07-08 14:31:37 +02:00
Oliver Gugger
713c996d20
Merge pull request #6709 from ellemouton/guaranteeRPCInterceptorOrder
...
rpcperms: guarantee execution order of interceptors
2022-07-08 12:27:08 +02:00
Oliver Gugger
947639bb60
Merge pull request #6705 from hieblmi/chan-point-for-updatechanstatus
...
lncli: chan_point option for updatechanstatus
2022-07-06 17:34:38 +02:00
Oliver Gugger
738241d5fa
Merge pull request #6681 from guggero/editor-helpers
...
Add settings files for most common editors
2022-07-06 13:35:28 +02:00
Oliver Gugger
b9d8c701eb
Merge pull request #6659 from ErikEk/trivial-typo
...
typo: trivial
2022-07-06 13:34:19 +02:00
Oliver Gugger
2b9787b43a
docs: add release notes
2022-07-06 13:33:02 +02:00
Oliver Gugger
37578a6b6d
routing: fix formatting
...
This commit fixes a formatting issue in the router. The commit is in
this PR to demonstrate how the .editorconfig settings also affect the
way GitHub displays the code diff.
2022-07-06 13:33:02 +02:00
Oliver Gugger
f268786a87
docs: extract formatting rules
2022-07-06 13:33:02 +02:00
Oliver Gugger
2681c02afd
.editorconfig: add editor settings for most editors
...
This should automatically set the tab size to 8 spaces and add a visual
guide (ruler) at 80 characters in GoLand, GitHub and a few other
editors.
2022-07-06 13:33:02 +02:00
Oliver Gugger
d20140e393
.vscode: add editor settings for VS Code
2022-07-06 10:25:19 +02:00
Oliver Gugger
ed2a126541
Merge pull request #6698 from hieblmi/fix-batchopenchannel-help-text
...
Fix batchopenchannel help text
2022-07-05 21:05:55 +02:00
Oliver Gugger
341fde723b
Merge pull request #6636 from tvolk131/migrate_assert_to_require
...
Migrate assert.NoError to require.NoError
2022-07-05 19:16:41 +02:00
Oliver Gugger
4cb68e4de3
Merge pull request #6588 from C-Otto/peer-logging
...
peer: add pubkey to log messages
2022-07-05 09:36:26 +02:00
Oliver Gugger
8970e309dc
Merge pull request #6438 from tvolk131/delete_failed_payments
...
Delete failed payment attempts for successfully settled payments
2022-07-04 10:27:34 +02:00
Oliver Gugger
e6277986fd
Merge pull request #6685 from guggero/release-notes-fix
...
Release notes: Move 0.15.1 item, remove duplicate headings, fix formatting
2022-07-01 10:05:23 +02:00
Oliver Gugger
9656994c3b
docs: fix formatting and phrasing [skip ci]
2022-07-01 10:04:08 +02:00
Oliver Gugger
120fbc6758
docs: remove duplicate headings
2022-07-01 10:03:41 +02:00
Oliver Gugger
8e5ff6d1a6
docs: move 0.15.1 release notes item
2022-07-01 10:01:55 +02:00
Oliver Gugger
3af42eede9
Merge pull request #6687 from guggero/sign-psbt-np2wkh
...
walletrpc: Fix SignPsbt for NP2WKH inputs
2022-06-30 12:18:12 +02:00
Oliver Gugger
719fd584f9
docs: add release notes
2022-06-30 10:27:39 +02:00
Oliver Gugger
bb3cec6b12
itest: add test for FundPsbt->SignPsbt|FinalizePsbt flow
2022-06-30 10:27:39 +02:00
Oliver Gugger
63ec849605
lnwallet: fix bug in SignPsbt with np2wkh addresses
...
Fixes #6626 .
If either of the two fields FinalScriptSig or FinalScriptWitness is set
on an input of a PSBT then that results in most of the fields of that
input not to be serialized in the packet anymore, since the input is
considered to be complete.
But because a signer isn't supposed to set any of the Final* fields,
this was wrong from the beginning. Only the finalizer will set those
fields.
2022-06-30 10:27:39 +02:00
Oliver Gugger
9d339f0fe2
Merge pull request #6680 from guggero/compute-input-script
...
Taproot: Fix p2tr support in `ComputeInputScript`
2022-06-30 10:11:11 +02:00
Oliver Gugger
cac09098e1
docs: add release notes
2022-06-29 18:29:28 +02:00
Oliver Gugger
825ff22eec
itest: add itest for p2tr via ComputeInputScript
2022-06-29 18:29:00 +02:00
Oliver Gugger
6ee4c533f4
itest: fix incorrect naming
2022-06-29 18:29:00 +02:00
Oliver Gugger
21f69192be
itest: rename too specific variables
2022-06-29 18:29:00 +02:00
Oliver Gugger
7bd19d5cdf
signer: fix comment about p2tr in ComputeInputScript
2022-06-29 18:28:59 +02:00
Oliver Gugger
b8f1541800
signrpc: fix p2tr support in ComputeInputScript
2022-06-29 18:28:59 +02:00
Oliver Gugger
c51671ea85
Merge pull request #6682 from ErikEk/urfave-upgrade
...
dep: update urfave/cli package
2022-06-28 21:37:29 +02:00
Oliver Gugger
1ea8ea6c9e
Merge pull request #6592 from priyanshiiit/walletreserve
...
lnrpc+lncli: adds required wallet reserve rpc & cli
2022-06-28 20:59:55 +02:00
Oliver Gugger
778c7287b0
Merge pull request #6673 from yyforyongyu/6661-data-race
...
channeldb: fix data race in TestSerializeHTLCEntries
2022-06-28 16:01:20 +02:00
Oliver Gugger
b60c640cbe
doc: add release notes
2022-06-27 18:30:10 +02:00
Oliver Gugger
64b3c97b9f
.gitignore: add release build directory to ignore list
...
Fixes #6672 .
A new metadata tag called build.vcs.modified was added in Go 1.18.x that
indicates whether there were any untracked files present during the
build or not.
Because the `make release` command creates a directory in which the
output packages are created, and because that directory was not added
to git and also not ignored by it, the build.vcs.modified flag was
different to the docker build which resulted in a different digest of
the resulting binary.
2022-06-27 18:29:50 +02:00
Oliver Gugger
0df880139f
Merge pull request #6321 from priyanshiiit/walletrpc
...
lnrpc+lnwallet: add previous_outpoints to listchaintxns
2022-06-27 18:15:32 +02:00
Oliver Gugger
a00964febb
Merge pull request #6559 from ErikEk/doc-subscribe-invoice-rest
...
doc: subscribe/cancel/lookup invoices rest
2022-06-27 12:12:13 +02:00
Oliver Gugger
8451d6155f
Merge pull request #6504 from tvolk131/fatalf_to_require
...
Move simple t.Fatalf test assertions to require.NoError
2022-06-17 19:52:07 +02:00
Oliver Gugger
daaeab1479
Merge pull request #6647 from guggero/empty-graph
...
bugfix: avoid panic with empty graph
2022-06-16 14:21:51 +02:00
Oliver Gugger
5aacc251de
docs: add release notes
2022-06-16 10:13:33 +02:00
Oliver Gugger
ed40eddafd
autopilot: return early for empty graph
...
This fixes an issue where the diameter calculation would crash if the
graph is empty.
2022-06-16 10:10:27 +02:00
Oliver Gugger
9e6f0ef46b
Merge pull request #6644 from guggero/connect-peer-request-comment
...
lnrpc: fix comment and formatting in ConnectPeerRequest [skip ci]
2022-06-15 09:57:34 +02:00
Oliver Gugger
c492f367cd
lnrpc: fix comment and formatting in ConnectPeerRequest [skip ci]
...
Fixes #6643 .
2022-06-14 22:09:51 +02:00
Oliver Gugger
06710604fe
Merge pull request #6641 from priyanshiiit/invoice_params
...
lnrpc: improves invoice documentation
2022-06-14 17:11:28 +02:00
Oliver Gugger
593962b788
Merge pull request #6635 from petertodd/2022-fix-missing-p2tr-help
...
Add p2tr to supported address help message
2022-06-13 09:53:49 +02:00
Oliver Gugger
427702dbe6
rpcwallet: use PSBT prev out fetcher
2022-06-10 22:03:45 +02:00
Oliver Gugger
a3e4db60cd
sweep: allow sweeper to sweep P2TR inputs
2022-06-10 22:03:41 +02:00
Oliver Gugger
36d6656d0d
walletrpc: add p2tr to NextAddr and BumpFee RPCs
2022-06-10 14:03:46 +02:00
Oliver Gugger
9dea4f3b5e
Merge pull request #6628 from bhandras/bhandras_key_update
...
keys: update key for bhandras
2022-06-09 12:21:30 +02:00
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