Jack Mallers
392bb330f7
fix(log): fix the uncaught exception by calling info on log not lnd.log
7 years ago
Ben Woosley
dc29c80ad0
style(line length): Drop prettier line length from 120 to 100
Subjectively, this increases general readability, while the higher max-length
limit allows for longer strings and comments, etc.
7 years ago
Ben Woosley
4d876ae930
style(line length): Limit max length to 120, including comments, etc.
7 years ago
Ben Woosley
f87236495a
style(line length): Limit prettier line length to 120 chars
150 is a bit too long
7 years ago
Ben Woosley
d5211076fd
enhance(lnd config): Move LND settings Zap uses into the local lnd.conf
This enables easy access to all lnd settings for development, and is a step
toward relying on an external configuration file that will be accessible to
users for whom the code is not.
7 years ago
Tom Kirkpatrick
0846bcb772
style(lint): lint and format all code
7 years ago
Ben Woosley
2cebba7a57
enhance(linting): Enable the eslint:recommended rules
Among other things, this makes no-console an error rather than a warning.
https://eslint.org/docs/rules/no-console
Given that we now have a proper logging facility, good to prevent incidental
introduction in the future.
7 years ago
Ben Woosley
e2ac8729d1
enhance(logging); Output app/lnd logs to the lnd log, rather than console.log
7 years ago
Jack Mallers
42344065f4
fix(lint): fix lint errors
7 years ago
Jack Mallers
225adf6a97
fix(addInvoice): decode payreq and send all invoice data back after newly created invoice
7 years ago
Tom Kirkpatrick
6eda55de0c
fix(resources): fix up resource paths
Move rpc.proto into the resources directory along with all of the other
external resources.
Fix up the resource paths to reference external resources correctly
depending on wether the app is being run locally or from a release.
7 years ago
Ben Woosley
6d5ca1ab90
fix(lnd-proto-dup): Fix that we had redundant lnd rpc.proto files
Only one of these files was being used, and they were going out of step
relative to one another.
Put rpc.proto in the resources directory for consistency with other
vendored resources, i.e. the lnd binary
Updated the def from:
https://github.com/lightningnetwork/lnd/blob/master/lnrpc/rpc.proto
7 years ago
Tom Kirkpatrick
80dfa8c461
fix(passwords): convert password to Buffer
The wallet password is defined as `bytes` in the rpc.proto spec and we are
passing it as a string, resulting in an incorrect password being set on a
new wallet and an inability to unlock an existing wallet.
Convert the wallet password to a Buffer before passing to `initWallet` and
`unlockWallet`, which is the default data type used to represent bytes in
the node grpc client. This is sures that the password is passed correctly
to lnd.
Fix #400
7 years ago
Tom Kirkpatrick
3c4a651764
feature(lnd-config): add connection type onboarding screen
Add a new set of screens into the connection onboarding flow that
allow the user to select wether to connect to a local or remote
LND node.
Fix #326
7 years ago
Tom Kirkpatrick
1adb334146
feature(lnd-config): simplify handling of macaroons
Use grpc.credentials.combineChannelCredentials to combine the ssl
credentials with the macaroons when initializing the lnd rcp client.
This avoids the need to pass the macaroon metadata throughout the
codebase.
7 years ago
Jack Mallers
0ebfc46d60
fix(lint): fix lint errors
7 years ago
Jack Mallers
d9ed3f2c8b
fix(recovery_window): fix wallet recovery by specifying default recovery window
7 years ago
Jack Mallers
e12f6b8412
fix(proto): update lnd proto fil
7 years ago
Jack Mallers
a2e0f48bb7
feature(close-channel): wire up close channel to UI
7 years ago
Jack Mallers
00a93b3aec
fix(): small console logs and errors
7 years ago
Jack Mallers
2bb28e0bbd
fix(lint): fix linting errors
7 years ago
Jack Mallers
c1f9ec58bc
fix(grpcInit): remove old file
7 years ago
Jack Mallers
96f7a3e20b
feature(seed): style copy/enter seed pages
7 years ago
Tom Kirkpatrick
24c07af343
fix(ssl-handshake): update list of supported cipher suites
Update the list of supported cipher suites to use with openssl to
include those supported by lnd, which are defined as:
tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
See https://github.com/lightningnetwork/lnd/blob/master/lnd.go#L80-L85
We order the suites by priority, based on the recommendations provided
by SSL Labs:
See https://github.com/ssllabs/research/wiki/SSL-and-TLS-Deployment-Best-Practices#23-use-secure-cipher-suites
Fix #324
7 years ago
Jack Mallers
24ae067ad9
feature(unlockWallet): ability to unlock wallet with helpful error messages
7 years ago
Jack Mallers
91eb5e32c5
fix(on-chain): fix on chain modal to new styles
7 years ago
Jack Mallers
fade245dc4
feature(countdown): add countdown component for the countdown till the invoice expires
7 years ago
Jack Mallers
357cf4e0ef
fix(lint): fix all lint errors except a few (will fix the rest after i finish the rest of the modals)
7 years ago
Jack Mallers
90ccca7558
hotfix(builds): quick fixes for production builds
7 years ago
Jack Mallers
94b4c206a6
fix(proto): update proto files
7 years ago
Jack Mallers
9babd9b6fc
hotfix(CI fail)
7 years ago
Jack Mallers
106ea86da9
hotfix(broken import)
7 years ago
Ben Woosley
313078cfc6
fix(eslint-promise): Enable the recommended eslint-plugin-promise config
And fix related errors.
I extracted ensurePeerConnected from connectAndOpen to solve some code
duplication.
7 years ago
Ben Woosley
8e06ad5105
fix(eslint-import): Fix that eslint-plugin-import was not active
For the node import resolver, "paths" is meant to be absolute paths
for global modules.
https://github.com/benmosher/eslint-plugin-import/tree/master/resolvers/node
7 years ago
Ben Woosley
4125283587
enhance(lints): Enable currenly disabled lints
7 years ago
Ben Woosley
2e5ca3da68
fix(lints): Run eslint --fix over the currently disabled lints
7 years ago
Jack Mallers
200b8cad09
fix(contacts): force close offline contacts
7 years ago
Jack Mallers
962d79bb88
fix(lint): fix linting errors
7 years ago
Jack Mallers
4f97d1311b
fix(lint): fix lint errors
7 years ago
Jack Mallers
e994b3481d
fix(contacts): hard code 1 conf for channels
7 years ago
Jack Mallers
ff0ef1f80b
feature(contacts): close contact and close contact loading UX
7 years ago
Jack Mallers
75673ca5a9
fix(contacts): small bug fixes with contacts error and UI
7 years ago
Jack Mallers
bd2f1e7b0d
feature(contacts): loading state while adding a contact
7 years ago
Jack Mallers
1b14242e93
feature(contacts): start contacts feature
7 years ago
Jack Mallers
e793efa1ed
fix(lint): fix linting errors
7 years ago
Jack Mallers
eb913b0367
fix(lint): fix lint errors
7 years ago
Jack Mallers
c3f9ee7566
fix(contacts): hard code 1 conf for channels
7 years ago
Jack Mallers
28d52af8e6
feature(contacts): close contact and close contact loading UX
7 years ago
Jack Mallers
86f38adb77
fix(contacts): small bug fixes with contacts error and UI
7 years ago
Jack Mallers
f1911c0fa4
feature(contacts): loading state while adding a contact
7 years ago