Commit Graph
100 Commits
Author SHA1 Message Date
Oliver Gugger 7dfe4018ce multi: use btcd's btcec/v2 and btcutil modules
This commit was previously split into the following parts to ease
review:
 - 2d746f68: replace imports
 - 4008f0fd: use ecdsa.Signature
 - 849e33d1: remove btcec.S256()
 - b8f6ebbd: use v2 library correctly
 - fa80bca9: bump go modules
2022-03-09 19:02:37 +01:00
Oliver Gugger 8ee9fc837b Merge pull request #6136 from bhandras/forall_etcd
etcd: add ForAll to speed up graph operations
2022-03-07 16:44:43 +01:00
Oliver Gugger 1d3d70b0ab Merge pull request #6066 from bitromortac/2111-graph-diameter
autopilot+lnrpc: add graph diameter calculation to getnetworkinfo
2022-03-07 14:18:36 +01:00
Oliver Gugger 72aec1722b Merge pull request #6300 from 3nprob/docker-custom-source
docker: add git_url build-arg
2022-03-05 11:42:41 +01:00
Oliver Gugger e7505c3e6b Merge pull request #6284 from guggero/tlv-1.0.1
mod: bump tlv version to v1.0.1 [skip ci]
2022-02-22 09:16:39 +01:00
Oliver Gugger 0db2c6a244 Merge pull request #6289 from yyforyongyu/fix-fee-service-panic
itest: check feeService against nil upon shutdown [skip ci]
2022-02-22 09:12:19 +01:00
Oliver Gugger b4b524903c mod: bump tlv version to v1.0.1 [skip ci]
Apparently we already pushed a tag named tlv/v1.0.0 a while ago (which
points to a commit not in master)...
We need to bump the version of the tag to v1.0.1 since we cannot replace
old tags (without causing a lot of caching problems).
2022-02-21 15:30:07 +01:00
Oliver Gugger 4df7dbdc58 Merge pull request #6283 from guggero/tlv-module
mod+tlv: refactor tlv package into its own submodule
2022-02-21 15:24:52 +01:00
Oliver Gugger d9b657ccb6 docs: update release notes 2022-02-21 13:49:30 +01:00
Oliver Gugger 96b960455f mod+tlv: make tlv its own submodule 2022-02-21 13:49:30 +01:00
Oliver Gugger 67f5957c5e tlv+watchtower: move bench test
The benchmark tests import both the tlv and watchtower packages. To make
it possible to extract the tlv package into its own submodule, this test
is better located in the watchtower package.
2022-02-21 13:48:31 +01:00
Oliver Gugger 3ed8b90c21 Merge pull request #6280 from guggero/remove-halseth
Remove expired or soon to expire PGP keys from signing script
2022-02-21 12:54:30 +01:00
Oliver Gugger a6282ab08e scripts: remove expiring key for cfromknecht [skip ci]
The user cfromknecht isn't an active contributor anymore and the key
will expire in less than two weeks.
2022-02-21 10:26:48 +01:00
Oliver Gugger d46e9d2d29 scripts: remove expired key for halseth
Fixes #6272.
The user halseth isn't an active contributor anymore and the key
expired.
2022-02-21 10:21:54 +01:00
Oliver Gugger 0aa0831619 Merge pull request #6270 from guggero/enable-whitespace-linter
ci: enable whitespace linter
2022-02-15 18:21:04 +01:00
Oliver Gugger eb366a64e6 docs: add release notes 2022-02-15 18:13:03 +01:00
Oliver Gugger 13f187046b multi: fix issues reported by whitespace linter 2022-02-15 16:26:08 +01:00
Oliver Gugger 8d83778314 tools+golangci-lint: enable fixed version of whitespace linter 2022-02-15 11:16:19 +01:00
Oliver Gugger 2891dc7399 Merge pull request #6248 from guggero/lint-dockerize
make+tools: dockerize linting [skip ci]
2022-02-11 10:10:56 +01:00
Oliver Gugger 09406f613a make+tools: dockerize linting 2022-02-10 16:03:00 +01:00
Oliver Gugger 28ea2736a0 Merge pull request #6244 from guggero/linter-upgrade
Move tools dependencies into submodule, upgrade `golangci-lint`
2022-02-10 15:11:20 +01:00
Oliver Gugger 67eae60bcc docs: add release notes 2022-02-10 11:04:54 +01:00
Oliver Gugger 895a2e497b multi: formatting and comment fixes 2022-02-10 11:02:02 +01:00
Oliver Gugger ffee7d1bcf multi: fix newly detected linter issues 2022-02-10 11:02:02 +01:00
Oliver Gugger 369627901f lint+tools: bump version of golangci-lint 2022-02-10 11:02:01 +01:00
Oliver Gugger dfdc2bff8b multi: run gosimports 2022-02-10 11:02:01 +01:00
Oliver Gugger d1b512ff92 mod+make: replace goimports with gosimports 2022-02-10 11:02:00 +01:00
Oliver Gugger 3107c807a9 Merge pull request #6239 from BTCparadigm/UpdateLicenses
multi: Update licenses to 2022 [skip ci]
2022-02-09 14:31:45 +01:00
Oliver Gugger 0bef42e93c Merge pull request #6233 from guggero/sign-psbt-utxo-error-message
rpcwallet: disallow empty UTXO pk script [skip ci]
2022-02-08 09:39:09 +01:00
Oliver Gugger 75016a176c rpcwallet: disallow empty UTXO pk script [skip ci]
If we're signing for an UTXO that isn't known to the wallet, then the
UTXO's pk script _must_ be set in the sign descriptor. Otherwise we run
into a generic PSBT serialization error when running in a remote signing
setup.
2022-02-03 17:34:14 +01:00
Oliver Gugger 04bbbea9a7 Merge pull request #6228 from guggero/contribution-guidelines
docs: rewrite and regroup formatting rules [skip ci]
2022-02-03 10:02:02 +01:00
Oliver Gugger 84c8c18a9e docs: update release notes 2022-02-02 17:29:55 +01:00
Oliver Gugger d252653624 lncli: use amount based default routing fee 2022-02-02 17:29:52 +01:00
Oliver Gugger 30367d50c7 Merge pull request #6229 from Neil-LL/patch-1
Tiny Formatting Change
2022-02-02 15:48:04 +01:00
Oliver Gugger b667f7a89c docs: rewrite and regroup formatting rules [skip ci] 2022-02-02 15:11:43 +01:00
Oliver Gugger 3c324ad058 docs: remove protobuf compilation section from guidelines
Since we're now enforcing the formatting of the protobuf files through a
CI step, this explicit mention in the docs is no longer needed.
2022-02-02 15:10:24 +01:00
Oliver Gugger d22f543906 lnrpc: use amount based default routing fee 2022-02-02 14:24:53 +01:00
Oliver Gugger bfa1cf17b9 lnwallet: introduce default routing fee calculation 2022-02-02 14:24:52 +01:00
Oliver Gugger 4a6e4d283e Merge pull request #6222 from positiveblue/code-guidelines
docs: add guidelines for func declarations [skip ci]
2022-02-01 17:43:16 +01:00
Oliver Gugger 60625b6c1a Merge pull request #6213 from blakejakopovic/master
docs: fixed typos in mobile readme
2022-01-31 15:16:59 +01:00
Oliver Gugger 91f93f161d Merge pull request #6218 from guggero/dev-rpc-fix
devrpc: remove lncli API docs tag [skip ci]
2022-01-31 13:35:05 +01:00
Oliver Gugger a5849bb189 devrpc: remove lncli API docs tag [skip ci]
The API doc generator failed after merging #6149 because of the `lncli
importgraph` tag in the proto file.
We could also fix the API doc generator by adding the "dev" build tag,
but not including any dev only features in the API docs is probably the
preferred path.
2022-01-31 13:05:27 +01:00
Oliver Gugger 8d40c8904e Merge pull request #6207 from lightningnetwork/ci-rpc-check
makefile: fail rpc-check after finding any changes
2022-01-31 11:15:35 +01:00
Oliver Gugger 9e0f7e73db Merge pull request #6211 from carlaKC/github-prtemplate
github: simplify PR template and add more sections
2022-01-28 10:46:22 +01:00
Oliver Gugger b77c1fb200 Merge pull request #6149 from bhandras/graph_import_rpc
lnd: add `devrpc` sub server and `devrpc.ImportGraph` to import graph dumps
2022-01-28 10:24:59 +01:00
Oliver Gugger 065412b948 Merge pull request #6182 from carlaKC/454-loop-hophintsrefactor
invoicerpc: refactor SelectHopHints to allow external use
2022-01-28 09:44:29 +01:00
Oliver Gugger 8d3d8580f9 Merge pull request #6197 from carlaKC/itest-policy-ensureconnected
lntest/test: ensure nodes connected before disconnecting
2022-01-27 13:20:13 +01:00
Oliver Gugger 0dae2d47f2 Merge pull request #6202 from guggero/itest-lnddir
lntest: set --lnddir instead of --datadir
2022-01-26 16:12:29 +01:00
Oliver Gugger cc1f91b4d3 docs: add release notes 2022-01-26 11:38:44 +01:00
Oliver Gugger bc3319a7d2 lntest: set --lnddir instead of --datadir
If we only set the --datadir flag then lnd will create empty directories
(for letsencrypt and watchtower client) in the default user's home .lnd
directory and will also pick up a config file from there if one exists.
To instruct lnd to only act within the temp itest directory, we need to
use the --lnddir flag instead.
Using the --lnddir flag also overwrites the TLS cert/key path and the
log dir, so we don't need to explicitly set those anymore.
But we need to make sure the node's variables point to the correct
default files/directories.
2022-01-26 11:37:10 +01:00
Oliver Gugger f0e2a20d67 Merge pull request #6181 from schjonhaug/general-improvements-to-mobile-instructions
General improvements to mobile instructions
2022-01-24 16:52:52 +01:00
Oliver Gugger 1482e5e20a Merge pull request #6156 from rex4539/typos
multi: Fix typos
2022-01-24 13:24:49 +01:00
Oliver Gugger bf4b47caa9 Merge pull request #6194 from zdebra/master
itest: fix documentation for LookupNodeByPub [skip ci]
2022-01-24 10:14:31 +01:00
Oliver Gugger f50950640f Merge pull request #6188 from yyforyongyu/timeout-7z
github: add timeout when zipping log files
2022-01-21 12:28:21 +01:00
Oliver Gugger 717c7c59a0 Merge pull request #6183 from guggero/github-daily-docker-build
GitHub: fix daily docker build
2022-01-20 21:17:57 +01:00
Oliver Gugger 6680d27d6f Merge pull request #6184 from carlaKC/healthcheck-nochainbackend
server: disable chain health check if we're running without backend
2022-01-20 15:18:24 +01:00
Oliver Gugger 5ead5ec4b6 GitHub: fix daily docker build 2022-01-20 10:27:42 +01:00
Oliver Gugger ddaba02558 Merge pull request #6178 from BTCparadigm/GitIgnore
Ignore .vs/ folder
2022-01-20 09:34:20 +01:00
Oliver Gugger 431ef6c4c3 Merge pull request #6160 from guggero/docker-nightly-build
github: add schedule for nightly docker build
2022-01-18 13:11:14 +01:00
Oliver Gugger 264b3b00cd github: add schedule for daily build 2022-01-18 12:46:27 +01:00
Oliver Gugger 3ff849d15b Merge pull request #6167 from madskrogh/pendingchannels-private-status
lnrpc: add Private field to PendingChannelsResponse
2022-01-18 10:48:00 +01:00
Oliver Gugger f84825e441 Merge pull request #6152 from madskrogh/closechannel-with-point
lncli: closechannel chan_point flag
2022-01-17 10:29:46 +01:00
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