Commit Graph
100 Commits
Author SHA1 Message Date
Oliver Gugger ed511bb37f Merge pull request #6146 from yyforyongyu/add-closing-txid
rpcserver: add closing txid in PendingChannels' WaitingCloseChannel
2022-01-12 13:23:16 +01:00
Oliver Gugger 2560e2c69f Merge pull request #6142 from sangaman/externalhosts-desc
docs: clarify --externalhosts usage
2022-01-12 11:57:16 +01:00
Oliver Gugger d3faef5691 Merge pull request #6080 from guggero/pr-consolidation
multi: consolidate trivial PRs that are stuck on CI pipeline steps
2022-01-11 16:04:40 +01:00
Oliver Gugger 1795c1f686 docs: add release notes 2022-01-11 14:08:20 +01:00
Oliver Gugger 617be6f994 Merge pull request #6140 from bottlepay/fix-duplicate-close
htlcswitch: fix duplicate close
2022-01-11 11:08:30 +01:00
Oliver Gugger f788f9286e Merge pull request #6088 from arshbot/export-backend-credentials
Export backend credentials
2022-01-11 11:02:37 +01:00
Oliver Gugger 5282c9acf9 docs: update remote signing doc and release notes 2022-01-06 14:35:26 +01:00
Oliver Gugger bab807a57d multi: add migrate-wallet-to-watch-only flag
To enable converting an existing wallet with private key material into a
watch-only wallet on first startup with remote signing enabled, we add a
new flag. Since the conversion is a destructive process, this shouldn't
happen automatically just because remote signing is enabled.
2022-01-06 14:35:26 +01:00
Oliver Gugger afc53d1c52 lnwallet: initialize first 255 accounts
This fixes lightninglabs/loop#437 by adding all accounts that are used
in liquidity products such as Loop or Pool. Since both of these products
use key families below 255, we can get by with that number.
The alternative to creating way too many accounts (which increases the
default wallet size by ~250kB) would be to hard code the exact accounts
used by Loop (99) and Pool (210). But that sounds like a bad idea given
that there could always be more accounts being added to those (or other)
products. By making sure the first 255 accounts exist, we have a lot
more flexibility in those products for choosing key families.
2022-01-06 14:35:26 +01:00
Oliver Gugger 0bdac59a8c multi: add nochainbackend option 2022-01-06 14:35:25 +01:00
Oliver Gugger da59c1fa62 multi: add health check for remote signer 2022-01-06 14:35:25 +01:00
Oliver Gugger 9601a9ab84 multi: make remote signer RPC timeout configurable 2022-01-06 14:35:25 +01:00
Oliver Gugger f3cd383d1f rpcwallet: add critical log to remote signer errors 2022-01-06 14:35:24 +01:00
Oliver Gugger 3d353a9879 config_builder+rpcwallet: simplify RPC signing
With the remote signing instance now not needing to know anything about
addresses or current derivation indices, we don't need to forward any
such calls to that instance and can simplify the RPCKeyRing
considerably.
2022-01-06 14:35:24 +01:00
Oliver Gugger 8994d86a1d walletrpc+itest: add SignPsbt RPC 2022-01-06 14:35:07 +01:00
Oliver Gugger d135b638f6 btcwallet: add SignPsbt 2022-01-06 13:24:32 +01:00
Oliver Gugger c24763b3da lnd+lnwallet: add logger for btcwallet+rpcwallet 2022-01-06 13:24:32 +01:00
Oliver Gugger b54279dd87 lnwallet: add derivation and prev TX to UTXO 2022-01-06 13:24:31 +01:00
Oliver Gugger 167a1f2b79 btcwallet: add method for deriving key from BIP32 path 2022-01-06 13:24:31 +01:00
Oliver Gugger ca5d5023e3 btcwallet: move PSBT related methods to own file
This is a pure code move commit to extract the FundPsbt and FinalizePsbt
methods into their own file.
2022-01-06 13:24:31 +01:00
Oliver Gugger 8c77829c46 lnwallet+lntest+mod: bump btcwallet to export ScriptForOutput 2022-01-06 13:24:30 +01:00
Oliver Gugger 1902ad724e signrpc: remove incomplete sentence and TODO
We use SignOutputRaw which expects a witness script being set, even for
P2WKH. There is a special case in SignOutputRaw for the case where the
script is a p2wkh script, then the input script is reconstructed
correctly for the sighash.
2022-01-06 13:24:30 +01:00
Oliver Gugger 9da8333a6e multi: fix formatting 2022-01-06 13:24:30 +01:00
Oliver Gugger d039822184 docs: add release notes 2022-01-06 12:58:29 +01:00
Oliver Gugger 5401b12402 lntest: export base node config for re-use 2022-01-06 12:58:27 +01:00
Oliver Gugger 8c3f2eaba0 lntest: export ListenerFormat constant 2022-01-06 12:57:27 +01:00
Oliver Gugger 5afe7852b5 lntest: fix colliding variable name
The variable name "bytes" collides with an imported package name, so we
rename it to avoid shadowing.
2022-01-06 12:57:27 +01:00
Oliver Gugger 61bffa70f9 Merge pull request #6052 from yyforyongyu/itest-2-refactor-1
itest: prepare itest for major refactor
2022-01-06 10:26:20 +01:00
Oliver Gugger 10d876ae98 itest: fix RPC middleware itest 2022-01-06 15:01:02 +08:00
Oliver Gugger 39c6236054 Merge pull request #6124 from C-Otto/force-close-logging
contractcourt: use "info" log level for messages leading to force-closes
2022-01-05 09:52:23 +01:00
Oliver Gugger 604aefe650 Merge pull request #6113 from kaganovych/improvement/mobile_and_android_docs
Edited mobile documentation for mobile developers [skip ci]
2022-01-04 19:48:45 +01:00
Oliver Gugger 774c541453 Merge pull request #6116 from bottlepay/pg-max-conns
itest: increase pg database connection limit
2022-01-04 10:00:24 +01:00
Oliver Gugger 71ecc8a299 Merge pull request #5964 from bottlepay/leaseoutput
lncli: add leaseoutput command
2022-01-03 18:41:26 +01:00
Oliver Gugger 9d6701be2b Merge pull request #6082 from yyforyongyu/6000-peer-conn
peer: fix competing connections to the same peer
2022-01-03 13:28:45 +01:00
Oliver Gugger c2c96d907c Merge pull request #6053 from yyforyongyu/itest-fix-invoice-registry
invoice: fix inactive client not cleaned from invoice registry
2022-01-03 13:21:01 +01:00
Oliver Gugger 2aad76aea9 Merge pull request #6105 from liviu-ln/master
make: don't optimize debug binaries
2022-01-03 12:35:24 +01:00
Oliver Gugger 5d9b59ac5a Merge pull request #6108 from bottlepay/pg-fix
kvdb/postgres: fix context cancellation
2021-12-22 15:44:51 +01:00
Oliver Gugger 088970e7e8 Merge pull request #6096 from Kixunil/clarify-systemd-log-message
(trivial) signal: clarify the log message about systemd
2021-12-20 13:44:02 +01:00
Oliver Gugger f7e40d82f6 Merge pull request #6085 from schjonhaug/improvements-to-mobile-instructions
docs: Improvements to mobile instructions [skip ci]
2021-12-20 12:46:35 +01:00
Oliver Gugger 3e57d1d416 Merge pull request #6093 from ellemouton/botControls
docs: add review bot commands to guidelines [skip ci]
2021-12-16 12:41:50 +01:00
Oliver Gugger 6d59a2c807 Merge pull request #5931 from yyforyongyu/5924-remote-balance
rpcserver: add remote balance for pending force close
2021-12-14 10:02:23 +01:00
Oliver Gugger 22607a1c53 Merge pull request #6084 from guggero/backend-readonly
channeldb: allow to be used read-only in external tools
2021-12-13 14:06:27 +01:00
Oliver Gugger c0e1bfc26f docs: add release notes 2021-12-13 12:33:48 +01:00
Oliver Gugger b147d589c1 channeldb: add NoMigration mode
In case the channeldb package is used as a library in external tools, it
can be useful to allow read-only access to a DB. This allows such a
tool to access a DB even if not all migrations were executed, which can
be useful for recovery purposes.
To make it possible to even start the DB with a read-only backend, we
need to disable the automatic migration step.
2021-12-13 12:31:49 +01:00
Oliver Gugger a8f75e0221 Merge pull request #4177 from torkelrogstad/2020-04-11-lncli-complete
Add auto-generated Fish shell lncli-completions
2021-12-13 12:22:44 +01:00
Oliver Gugger 2aef091367 Merge pull request #5952 from jblachly/key-import-docs
Docs: fix language ambiguity in key import
2021-12-13 11:00:25 +01:00
Oliver Gugger 485ec0f697 Merge pull request #5710 from ErikEk/zmq-healthcheck
config: misconfigured bitcoind zmq
2021-12-10 12:54:15 +01:00
Oliver Gugger 2de8571ab3 Merge pull request #6073 from mattbajorek/5518-clarify-invalid-config-timeout-constraints
netann: clarify invalid config timeout constraints [skip ci]
2021-12-10 12:52:29 +01:00
Oliver Gugger 66a669d8e9 Merge pull request #5854 from LN-Zap/upstream/RPCTransaction
Adds helper function lnrpc.RPCTransaction to create a single lnrpc.Transaction and refactors lnrpc.RPCTransactionDetails
2021-12-10 12:45:17 +01:00
Oliver Gugger 1ccd03784b Merge pull request #5539 from Kixunil/no-psbt-midstep-enforce-new-reserved-value
Do not enforce new reserved value in PSBT midstep
2021-12-10 12:33:05 +01:00
Oliver Gugger 94bbad3fd1 Merge pull request #6071 from sputn1ck/fix-error-msgs
routerrpc: fix wrong error messages
2021-12-09 10:54:22 +01:00
Oliver Gugger 71b23a2c54 Merge pull request #5971 from yyforyongyu/add-chan-status
rpcserver: expose ChanStatusFlags in pending close
2021-12-08 12:23:07 +01:00
Oliver Gugger 099d5b8286 Merge pull request #6060 from mattbajorek/bugfix/lncli-trackpayment-json
lncli: Add json flag to trackpayment
2021-12-07 21:15:38 +01:00
Oliver Gugger c75c3bd847 Merge pull request #5756 from yyforyongyu/itest-1-run-ctx
itest: refactor context management inside harness node and net
2021-12-07 13:14:27 +01:00
Oliver Gugger 17babfdd8e Merge pull request #6050 from arshbot/export-BitcoindBackendConfig-attributes
lntest: export attributes of type BitcoindBackendConfig
2021-12-07 11:36:24 +01:00
Oliver Gugger ed3e597598 Merge pull request #5953 from yyforyongyu/add-contribution-checklist
docs: add skip ci to PR checklist [skip ci]
2021-12-02 10:46:37 +01:00
Oliver Gugger 8d3fec35fe Merge pull request #6033 from sangaman/example-systemd-service
docs: add example systemd service file
2021-12-01 15:14:32 +01:00
Oliver Gugger f1824687eb Merge pull request #6035 from guggero/tools-go-mod
Cleanup makefile by pinning tools in go.mod
2021-11-30 10:48:38 +01:00
Oliver Gugger 43158b6b59 mod+tools+Makefile: use go install to fetch dependencies
Instead of hard coding a commit to use for a binary tool that we use
during the build process, we now only use "go install" to install the
binaries and the golang builtin versioning system to pin the exact
version/commit we want to use in go.mod.
2021-11-30 09:35:25 +01:00
Oliver Gugger 44266f3889 GitHub+Makefile: remove travis goals 2021-11-29 12:52:26 +01:00
Oliver Gugger 8facc6f07e docs+Makefile: remove goveralls
We use a GitHub Action for sending the coverage to coveralls.io and
don't need the goveralls binary anymore.
2021-11-29 12:49:29 +01:00
Oliver Gugger 03a038c769 Merge pull request #5888 from BhaagBoseDK/patch-1
payments-expiration-grace-period needs time unit
2021-11-29 09:55:30 +01:00
Oliver Gugger 6042004eda build: bump version to v0.14.1-beta 2021-11-24 23:00:35 +01:00
Oliver Gugger 53342b4794 Merge pull request #6026 from guggero/issue-rebase
Rebase bugfix PRs, prepare for minor release
2021-11-24 18:22:38 +01:00
Oliver Gugger ee015a1d6e docs: add release notes for channel negotiation 2021-11-24 17:51:44 +01:00
Oliver Gugger 328e3361ff funding: don't fail flow on channel type 2021-11-24 17:51:44 +01:00
Oliver Gugger 6ee7913662 funding: don't negotiate on known types 2021-11-24 17:51:44 +01:00
Oliver Gugger 80720cb63f Merge pull request #6021 from greywolve/fix-link-test-hint
htlcswitch: fix hint in link tests [skip ci]
2021-11-23 18:18:46 +01:00
Oliver Gugger 9d012e8bab Merge pull request #6016 from guggero/tor-watchtower
tor+healthcheck: fix healthcheck for multiple services
2021-11-23 15:06:24 +01:00
Oliver Gugger 1fbe9061ef Merge pull request #6015 from guggero/submodule-check
GitHub: use go version that understands retract directive
2021-11-23 11:56:20 +01:00
Oliver Gugger 5155ebc405 tor+healthcheck: fix healthcheck for multiple services
Fixes #6013.
This commit fixes the Tor healthcheck that would previously fail if
there were multiple hidden service registered.
In the controller, we only need to know that our service is contained in
the list of active services. But we can't do a string equality check
since there might be multiple services, comma separated.
2021-11-23 09:53:36 +01:00
Oliver Gugger ca0266d31b Merge pull request #6012 from nayuta-ueno/chk-error-db
channeldb: check fetchOpenChannel() error
2021-11-23 09:51:56 +01:00
Oliver Gugger 260094cf07 GitHub: use go version that understands retract directive
As is customary with new GitHub actions, they don't work on first
attempt if you don't test them *sigh*

We need to use a more recent version of golang than is pre-installed to
avoid the "unknown directive: retract" error message.
2021-11-23 09:32:14 +01:00
Oliver Gugger fd22aab52e Merge pull request #5999 from guggero/kvdb-update
mod: bump version of kvdb submodule
2021-11-23 09:16:13 +01:00
Oliver Gugger e95ee4162a Merge pull request #5961 from jyturley/fix-5937
kvdb/bolt_compact: have log message take account space multiplier
2021-11-23 09:06:45 +01:00
Oliver Gugger 55edd1b260 scripts+GitHub: check submodule version bump 2021-11-22 14:40:28 +01:00
Oliver Gugger 74cc9e14a7 Merge pull request #5998 from guggero/release-notes-fix
docs: fix release notes for 0.14.0 release
2021-11-19 08:06:35 +01:00
Oliver Gugger dc517d89c4 mod: bump version of kvdb submodule
PR #5992 was merged without a bump in the kvdb version which results in
an error when trying to pull in lnd 0.14.0-beta as a library in other
projects.

We'll need to push the kvdb/v1.2.1 tag _after_ merging this PR.
2021-11-18 12:42:32 +01:00
Oliver Gugger 03adf5c626 docs: fix formatting [skip ci] 2021-11-18 09:46:30 +01:00
Oliver Gugger f65c259f06 cmd/lncli: fix nil map in payment req [skip ci]
Fixes #5989.
Fixes a panic in lncli if a payment request and the --data flag is used
at the same time.
2021-11-16 13:51:05 +01:00
Oliver Gugger 842221aab2 config: move directory creation to after path fixes
Fixes #5927.
This commit moves the code that attempts to create parent directories to
the correct place _after_ we've adjusted all path values to point to the
correct places. Before this commit the macaroon and tor paths would
point to their default locations, even if the --lnddir flag was
specified.
2021-11-08 22:39:41 +01:00
Oliver Gugger 35b4382f7a docs: update release notes 2021-11-08 22:39:41 +01:00
Oliver Gugger 41c579fd09 multi: run go fmt with go 1.17 2021-11-08 22:39:41 +01:00
Oliver Gugger 602d2065eb lnd: make sure error is logged to file
Fixes #5936.
This commit makes sure every error that causes the Main() function to
return is logged to the log file in addition to being printed to stderr.
2021-11-08 15:15:27 +01:00
Oliver Gugger 338afef862 lnd: standardize printing to stdout
With this commit we standardize the error messages in the config parsing
section of the main package. We only print to stdout/stderr in a single
place and also make sure the same error is printed to the log (which
might or might not yet be initialized at that point).
2021-11-08 15:12:56 +01:00
Oliver Gugger 87a49b17cc docs: add release notes 2021-11-08 15:03:00 +01:00
Oliver Gugger 54a25146f4 rpcperms: add unique request ID
This commit adds a unique request ID that is the same for each gRPC
request and response intercept message or each request/response message
of a gRPC stream.
2021-11-08 15:01:26 +01:00
Oliver Gugger 9a28a4a9ff lnrpc+rpcperms+lntest: add unique MW message ID
This commit adds a new unique intercept message ID that is different for
each message sent to an RPC middleware. This will allow us to re-purpose
the existing request ID field into its original intention, which was to
have a unique ID for a full gRPC request/response pair or gRPC stream as
a whole.
2021-11-08 15:00:29 +01:00
Oliver Gugger 54584aabb6 Merge pull request #5930 from guggero/no-seed-backup-macaroon
config_builder: always send admin macaroon
2021-11-05 11:54:36 +01:00
Oliver Gugger 77e457a48e docs: update release notes 2021-11-05 10:50:07 +01:00
Oliver Gugger 08b196e236 config_builder: always send admin mac on chan 2021-11-05 10:49:37 +01:00
Oliver Gugger 87c5b76e4d lnd: simplify listener creation 2021-11-05 10:49:37 +01:00
Oliver Gugger eb2be7c7c0 lntest: count unconfirmed balance as well
It looks like in some cases (apparently mostly on Windows) a previous
sub test sometimes leaves some unconfirmed balance in the wallet. That
balance is confirmed in the next test when new coins are sent to the
wallet.
2021-11-02 20:36:45 +01:00
Oliver Gugger 066a83315e docs: update release notes 2021-11-02 20:36:43 +01:00
Oliver Gugger 2a6f128a43 itest: wait for channel to be properly closed
It looks like in some cases a channel is still being closed while we
already try to create a sweep output. In that case the pending closed
channel is still counted as anchor channel and a reserve output is
created. To make sure that doesn't happen, we make sure there are no
pending or open channels of any kind around before we create the sweep
transaction.
2021-11-02 20:36:27 +01:00
Oliver Gugger 2ca3eea3f7 itest: fix REST WebSocket ping/pong itest
This commit fixes a flake in the REST itest that was caused by an
invoice being created before the actual subscription client was
registered.
2021-11-02 20:36:26 +01:00
Oliver Gugger 32101db873 Merge pull request #5916 from blastshielddown/docs_5899
lnrpc: add public key detail to signrpc KeyDescriptor [skip ci]
2021-11-02 15:03:14 +01:00
Oliver Gugger 919b31a67b Merge pull request #5896 from schjonhaug/instructions-for-creating-swift-protoc-definitions
Added instructions on how to build proto definitions for Swift
2021-11-02 15:02:39 +01:00
Oliver Gugger 97786c72fc Merge pull request #5878 from halseth/filter-ascii-bbolt-name
kvdb/bolt_compact: filter out non-ASCII from bucket name before printing
2021-11-02 10:22:46 +01:00
Oliver Gugger e399814aea Merge pull request #5550 from bottlepay/postgres-run-channeldb
kvdb: run channeldb test suite on postgres
2021-11-02 10:21:12 +01:00