Oliver Gugger
be36776120
Merge pull request #4251 from guggero/rest-2-subservers
...
REST saga 2/3: Add REST endpoints to all RPCs
2020-06-04 10:26:42 +02:00
Oliver Gugger
19e3dc6378
routerrpc: format proto
2020-06-04 08:50:44 +02:00
Oliver Gugger
f48b0289f5
make: check that all RPCs are defined in yaml
2020-06-04 08:50:44 +02:00
Oliver Gugger
558d63718b
rpcserver+lnrpc: register REST subservers with root server
2020-06-04 08:50:44 +02:00
Oliver Gugger
fe16be5bb8
lnrpc: extract or add REST annotations to yaml
2020-06-04 08:50:00 +02:00
Oliver Gugger
3ef41dd198
lnrpc: update grpc-gateway to v1.14.3
2020-06-04 08:43:49 +02:00
Oliver Gugger
75f916b026
log+config: remove global RootLogWriter variable
2020-05-27 09:43:59 +02:00
Oliver Gugger
70772ab99b
config+lnd+rpcserver: use log writer from cfg
2020-05-27 09:43:59 +02:00
Oliver Gugger
42ac187932
peer: fix struct alignment
...
Integers used atomically MUST be aligned properly, otherwise the
sync library will crash on purpose. Therefore non-aligned struct
members must come later.
2020-05-21 11:28:49 +02:00
Oliver Gugger
a17ddc5dd1
channeldb+htlcswitch: don't use fastsha256 in tests
...
The btcsuite/fastsha256 registers itself in the crypto package of
golang as a replacement for sha256. This causes problems in TLS1.3
connections that require the hash implementations to be serializable
and results in the "tls: internal error: failed to clone hash" error.
By removing all uses of the library we fix that error.
2020-05-20 11:07:38 +02:00
Oliver Gugger
3afaed8b5c
rpcserver: fix linter error
2020-05-20 09:12:53 +02:00
Oliver Gugger
36b90382d3
lnd+server+keychain: remove unused code
2020-05-20 09:07:21 +02:00
Oliver Gugger
08d6a61e2a
signrpc: use DigestSigner interface for signing
2020-05-20 09:06:59 +02:00
Oliver Gugger
4003f25281
signrpc: use ECDH interface for shared key generation
2020-05-20 09:06:58 +02:00
Oliver Gugger
f97e7b9951
watchtower: use ECDH interface for watchtower session
2020-05-20 09:06:57 +02:00
Oliver Gugger
535a22c590
server+brontide: use ECDH interface for brontide handshake
2020-05-20 09:06:56 +02:00
Oliver Gugger
ee74e4ba86
server+mod: use ECDH interface for sphinx router
2020-05-20 09:05:36 +02:00
Oliver Gugger
be890ef9be
lnd+server+netann: use signing interface in node signer
2020-05-20 09:05:35 +02:00
Oliver Gugger
6f702a43aa
watchtower: extend and rename SecretKeyRing
2020-05-20 09:05:15 +02:00
Oliver Gugger
b0cb110e86
watchtower: rename SessionPrivKey to SessionKeyECDH
2020-05-20 09:05:15 +02:00
Oliver Gugger
140731af00
lnd+watchtower: rename NodePrivKey to NodeKeyECDH
2020-05-20 09:05:14 +02:00
Oliver Gugger
7f1b865b53
multi: rename server's identityPriv to identityECDH
2020-05-20 09:05:14 +02:00
Oliver Gugger
cf0380ac81
keychain: add single key wrapper implementations
2020-05-20 09:04:05 +02:00
Oliver Gugger
6cf1844b0e
keychain: add new interface methods to wallet
2020-05-20 09:04:04 +02:00
Oliver Gugger
d6ba0a5b85
keychain: add new abstraction interfaces
2020-05-20 09:04:04 +02:00
Oliver Gugger
4d3bd6f178
Merge pull request #4295 from guggero/fix-queue
...
mod: update to queue/v1.0.4
2020-05-18 14:51:16 +02:00
Oliver Gugger
bd40f73be3
mod: update to queue/v1.0.4
2020-05-18 11:52:49 +02:00
Oliver Gugger
4261d3f5af
lnd: remove global cfg variable
2020-05-14 16:18:02 +02:00
Oliver Gugger
50e86f88fe
rpcserver+subrpcserver: don't use global cfg
2020-05-14 16:18:02 +02:00
Oliver Gugger
7c1304b31c
peer: don't use global cfg
2020-05-14 16:18:02 +02:00
Oliver Gugger
4343f9e9a6
server+rpcserver: don't use global cfg
2020-05-14 16:18:01 +02:00
Oliver Gugger
7e4d0aba2f
lnd+rpcserver: don't use global cfg
2020-05-14 16:18:01 +02:00
Oliver Gugger
7ce70321ac
fundingmgr+server: don't use global cfg
2020-05-14 16:18:01 +02:00
Oliver Gugger
d44f205e3f
multi: move global networkDir to cfg
2020-05-14 14:47:35 +02:00
Oliver Gugger
85d5cdfbfd
multi: move global registeredChains to cfg
2020-05-14 14:47:35 +02:00
Oliver Gugger
a7e78112b7
multi: allow external subservers to register themselves
...
With two new callbacks we allow processes that use lnd as a library
to register additional gRPC and REST subservers to the main server
instances that lnd creates.
2020-05-14 14:47:33 +02:00
Oliver Gugger
620eaa3199
lnd+cmd: move interrupt into cmd
...
If the main package is used as a library, we don't want it to
register interrupt signals itself. Rather we want to pass in the
shutdown channel manually. We do this in the cmd now.
2020-05-14 14:37:51 +02:00
Oliver Gugger
7158103d4d
lnd+config: move config parsing to cmd
...
Now that we have access to the configuration parsing outside of the
main package, we can move the actual parsing to the command line
package.
2020-05-14 14:37:51 +02:00
Oliver Gugger
3b2188d689
multi: move exported items to lncfg
2020-05-14 14:37:51 +02:00
Oliver Gugger
25f8a0804d
config: fix comment and linter errors
2020-05-14 14:37:50 +02:00
Oliver Gugger
1f3a5ce0d4
config: export CleanAndExpandPath
2020-05-14 14:37:50 +02:00
Oliver Gugger
bc3909050e
multi: rename and export logWriter as RootLogWriter
2020-05-14 14:37:50 +02:00
Oliver Gugger
a56ca0d0cf
config: export default values for config file
...
Variables related to the default configuration file location are
needed if the config parsing is happening externally. We export them
so they don't need to be copied to projects that use lnd as a library.
2020-05-14 14:37:49 +02:00
Oliver Gugger
aba29df84d
config: extract config validation
...
To allow external configuration parsing and validation, this commit
exports the function that checks a configuration for sanity.
Also because we touch the code, we need to fix all linter errors.
2020-05-14 14:37:49 +02:00
Oliver Gugger
d4d10b5c71
config: extract default config into function
...
To make it easy to extract the configuration parsing out of the main
package, the default config is exported as its own function.
2020-05-14 14:37:49 +02:00
Oliver Gugger
9ed1cd623f
config+lncfg: move config structs to lncfg, drop suffix
2020-05-14 14:37:48 +02:00
Oliver Gugger
409d2c9a90
lnd+config: export config struct and LoadConfig
...
As a preparation to be moved to the lncfg package, the main struct and
functions related to configuration are exported.
2020-05-14 13:05:01 +02:00
Oliver Gugger
e175a64540
github: remove continue-on-error
...
The continue-on-error was added to make sure the log files of the
failed itests would always be uploaded. But this has the side effect
of marking the whole job successful, even if the itest job itself
failed. The failure condition in the log file steps already solve
that, so the continue-on-error is not needed anymore.
2020-05-12 13:29:51 +02:00
Oliver Gugger
b6ab16f02a
github: add GitHub Actions configuration
2020-05-11 16:05:21 +02:00
Oliver Gugger
ce4591437b
docs: link to lnrpc README, remove json_name
2020-05-08 14:34:03 +02:00
Oliver Gugger
272598a706
lnrpc: generate gateway and swagger for all RPCs
2020-05-08 14:33:59 +02:00
Oliver Gugger
71c58c2c04
lnrpc: replace /// and /** with // and /*
2020-05-08 14:33:34 +02:00
Oliver Gugger
0800386138
lnrpc: unify proto style by moving services to top of file
2020-05-08 14:33:04 +02:00
Oliver Gugger
acd105fccb
lnrpc: split walletunlocker in own file
2020-05-08 14:31:37 +02:00
Oliver Gugger
b7ff6ab4ef
docs+javascript: add link to API documentation
2020-05-04 10:12:54 +02:00
Oliver Gugger
92abf3ed87
docs+javascript: switch to proto-loader
2020-05-04 10:12:54 +02:00
Oliver Gugger
d950b7e4b1
docs+javascript: remove broken macaroon example
2020-05-04 10:12:53 +02:00
Oliver Gugger
192bcc15b7
docs+javascript: uset let and const, fix example formatting
2020-05-04 10:12:49 +02:00
Oliver Gugger
af0bfd015a
docs+javascript: fix headings
2020-05-04 10:02:26 +02:00
Oliver Gugger
26998e13de
docs+python: add link to API documentation
2020-05-04 09:54:50 +02:00
Oliver Gugger
d1629e9cf4
docs+python: add build instructions for subserver modules
2020-05-04 09:54:15 +02:00
Oliver Gugger
0bb449c8fe
docs+python: fix headings, make numbered list
2020-05-04 09:53:40 +02:00
Oliver Gugger
2c979fc179
Merge pull request #4237 from theStack/20200501-doc-fix-tab-size-in-contrib-guidelines
...
docs: fix tab size (8 spaces) in contribution guidelines
2020-05-01 21:31:56 +02:00
Oliver Gugger
fb17e9b863
docs: add PSBT publish warning
2020-04-26 21:05:24 +02:00
Oliver Gugger
d765e73e57
lncli: add PSBT publish warning
2020-04-26 21:05:13 +02:00
Oliver Gugger
caf4cb16c4
build+make: move release script
...
Because this script is now run from the main Makefile, it is more
suitable to be located in the main scripts folder where the other
build related scripts reside.
2020-04-24 14:29:06 +02:00
Oliver Gugger
f4901d8ff9
docs: move build/release/README.md to docs/release.md
...
This readme file is better located in the docs directory as we
are going to move the release script itself as well in the next
commit.
2020-04-24 14:28:27 +02:00
Oliver Gugger
4384319b4a
travis: use make command for windows build
2020-04-21 11:28:42 +02:00
Oliver Gugger
c08ddad22e
build/README: describe how to use make release
2020-04-21 11:28:41 +02:00
Oliver Gugger
317ccb2cc9
make+build: call release script from makefile
2020-04-21 11:28:41 +02:00
Oliver Gugger
ce00f52ca2
make: add new release flags
2020-04-21 11:16:39 +02:00
Oliver Gugger
8920e20cf7
cert: define ExtendedKeyUsage as required by macOS 10.15
2020-04-17 09:22:32 +02:00
Oliver Gugger
1e3b0672d7
config+lnd+lncli: add commit back to version string
2020-04-14 15:51:44 +02:00
Oliver Gugger
ec5bfd3df7
make: move escaped double quote to fix windows build
2020-04-14 15:51:44 +02:00
Oliver Gugger
2f371556da
docs: add PSBT funding tutorial
2020-03-31 10:00:12 +02:00
Oliver Gugger
c4f20dada4
lntest: test PSBT channel funding
2020-03-31 10:00:12 +02:00
Oliver Gugger
c892227953
lncli: add PSBT to openchannel command
...
We add a new flag --psbt to the openchannel command which triggers
an interactive conversation between the command line and the user.
2020-03-31 09:17:26 +02:00
Oliver Gugger
8b05d1b61f
lncli: move openChannel command to new file
...
This is a pure code move!
2020-03-31 09:17:25 +02:00
Oliver Gugger
376a747bb2
rpcserver: implement PSBT funding flow
...
A PSBT funding flow consists of multiple steps. We add new RPC
messages that can trigger the underlying state machine to transition
to a new state. We also add new response messages that tell the
API user what the current state is.
2020-03-31 09:17:24 +02:00
Oliver Gugger
5a52420ab6
lnwallet+fundingmgr: interrupt funding flow for PSBT
...
In case the funding manager detects that a funding flow is requested
to be executed with the help of a PsbtIntent, the normal channel
negotiation with the remote peer is interrupted, as soon as the
accept_channel message was received. With the remote peer's funding
multisig key and our local key, we can derive the funding output
script and its address. This is enough to start the PSBT funding
and signing process which the user will do externally to the daemon.
2020-03-31 09:17:24 +02:00
Oliver Gugger
126f79dbb1
chanfunding: add PSBT assembler and intent
...
We add a new funding assembler and intent type that handle channel
funding through the use of a PSBT. The PsbtIntent is in itself a
simple state machine that can be stepped through the process of
assembling the required information for the funding output, verifying
a user supplied PSBT for correctness, accepting a fully signed PSBT
and then assembling the funding wire message.
2020-03-31 09:17:23 +02:00
Oliver Gugger
357f5978ad
lnrpc: add new PSBT funding step messages
2020-03-31 09:17:22 +02:00
Oliver Gugger
f97339c3e8
mod: add PSBT dependency
2020-03-31 09:17:05 +02:00
Oliver Gugger
4bc7524410
Merge pull request #4112 from guggero/bump-queue
...
mod: bump version of cert and queue packages
2020-03-24 19:24:36 +01:00
Oliver Gugger
4726c674db
Merge pull request #4110 from halseth/itest-abandonchannel-flake
...
itest: wait for file writing in wait predicate
2020-03-24 15:33:37 +01:00
Oliver Gugger
ce7970ec4a
mod: bump version of cert package
...
To fix external projects depending on lind, we need to bump the cert
package to a new version for the changes to be picked up.
2020-03-24 14:58:45 +01:00
Oliver Gugger
45a59345e7
mod: bump version of queue package
...
To fix external projects depending on lnd, we need to bump the queue
package to a new version for the changes to be picked up.
2020-03-24 14:51:08 +01:00
Oliver Gugger
81730e6444
mod: update btcwallet dependency to fix neutrino flake
2020-03-24 10:01:28 +01:00
Oliver Gugger
770c80635c
lntest: give async payments enough time to complete
2020-03-24 10:00:59 +01:00
Oliver Gugger
eb531d0449
htlcswitch: add causing error to log and err msg
2020-03-24 10:00:59 +01:00
Oliver Gugger
a101c8eeed
lntest: fix timing issue with auto reconnect
2020-03-24 10:00:58 +01:00
Oliver Gugger
95a6796778
lnwallet/btcwallet: use fast scrypt options in itest
2020-03-24 09:52:40 +01:00
Oliver Gugger
847d27f8a6
macaroons: use fast scrypt options in itest and unit tests
2020-03-24 09:52:39 +01:00
Oliver Gugger
466294ed4c
aezeed: use fast scrypt options in itest
2020-03-24 09:52:39 +01:00
Oliver Gugger
8a9b7595b7
Merge pull request #4094 from guggero/btcd-docker
...
docker: pin down btcd version
2020-03-18 10:05:21 +01:00
Oliver Gugger
f5f0b2107b
docker: pin down btcd version
...
There was a recent change merged into btcd that isn't backward
compatible with older RPC clients. To make sure our docker quick
start example still works, we need to pin down btcd to the version
that is still compatible with lnd.
2020-03-18 08:54:48 +01:00
Oliver Gugger
7917d22daf
Makefile: don't format proto
...
There are different versions of clang-format being installed on
different versions of ubuntu that apparently produce different
results when formatting the proto files. This is likely too much
of a hurdle for new contributors to also manually install the
correct version of a command line tool just to format stuff.
2020-03-11 10:17:45 +01:00
Oliver Gugger
f55860ccd8
lncli: fix windows compilation
2020-03-11 10:07:43 +01:00
Oliver Gugger
3b8dd4bd63
travis: cross-compile windows
2020-03-11 09:12:52 +01:00
Oliver Gugger
0a9dc6aeb2
Merge pull request #4042 from guggero/travis-rpc
...
travis: format, compile and verify protos
2020-03-11 09:04:21 +01:00