Conner Fromknecht
c2729cbbbd
htlcswitch/hop: parse and validate AMP records
2021-04-07 12:08:33 -07:00
Conner Fromknecht
135a0a9f7f
htlcswitch/hop: make unknown required type const
...
Currently we use the AMP record type, this allows us to change it easily
as we add new known records. We also bump this to 0x0c instead of 0x0a.
2021-04-07 12:08:33 -07:00
Conner Fromknecht
82b4f11292
record/amp: use switch from 10 -> 14 for AMP TLV type
...
This is to not conflict with trampoline BOLT.
2021-04-07 12:08:33 -07:00
Conner Fromknecht
8fe4de88c1
record: convert child_index from uint16 to uint32
2021-04-07 12:08:29 -07:00
Johan T. Halseth
46c9140ac0
Merge pull request #5180 from GameXG/master2
...
lnd: fix #5179 panic: runtime error: invalid memory address or nil po…
2021-04-07 09:10:22 +02:00
GameXG
f980bc38f1
fix #5179 extractPaymentIntent null pointer
...
payIntent.paymentAddr has not been initialized.
2021-04-07 10:41:31 +08:00
Johan T. Halseth
d1c7059f14
Merge pull request #5178 from halseth/mobile-docker-prefix
...
make: pass mobile subserver prefix to docker when generating mobile RPC
2021-04-06 14:54:11 +02:00
Johan T. Halseth
173342a463
Merge pull request #5010 from halseth/walletunlocker-unify-mobile
...
[mobile] Allow state API on mobile, simplify callback mechanism
2021-04-06 13:35:03 +02:00
Johan T. Halseth
2868b22083
make: pass mobile subserver prefix to docker when generating mobile RPC
2021-04-06 12:52:27 +02:00
Johan T. Halseth
980beba985
mobile: return error in case lnd is already running
2021-04-06 11:38:37 +02:00
Johan T. Halseth
321141600e
mobile/bindings: update API for falafel v0.8.1
2021-04-06 10:49:50 +02:00
Johan T. Halseth
cf5b0b7943
mobile: include stateservice, use same listener for all services
2021-04-06 10:49:50 +02:00
Johan T. Halseth
db28e7c891
lnd: consolidate WalletUnlocker- and AdminAuthOptions
2021-04-06 10:49:45 +02:00
Johan T. Halseth
8789247bf9
print current falafel version
2021-04-06 10:45:32 +02:00
Johan T. Halseth
2338a12729
Merge pull request #5172 from hsjoberg/state-small
...
lnrpc: Change State -> state in SubscribeStateResponse
2021-04-06 10:40:04 +02:00
Jonathan Underwood
786568fa46
cert: allow cert expiry to be set in config
2021-04-05 20:23:33 -07:00
Olaoluwa Osuntokun
1ccf6ed7d4
Merge pull request #5063 from Crypt-iQ/pprof_patch_03022021
...
lnd: optionally serve pprof on localhost for better security
2021-04-05 20:20:39 -07:00
Olaoluwa Osuntokun
ca96e66b43
Merge pull request #5116 from joostjager/mc-deadlock
...
routing: fix mission control deadlock
2021-04-05 20:02:57 -07:00
Olaoluwa Osuntokun
d8ecc16eb0
Merge pull request #5047 from wpaulino/import-account-or-pubkey
...
multi: support derived public key import
2021-04-05 19:41:11 -07:00
Wilmer Paulino
983f402369
itest: add wallet import cases
2021-04-05 15:41:12 -07:00
Wilmer Paulino
cb3e179eaf
rpc: break down wallet balance by accounts
2021-04-05 15:41:12 -07:00
Wilmer Paulino
4964801c6f
lncli: add wallet import related commands
2021-04-05 15:41:11 -07:00
Wilmer Paulino
5301c7e83f
walletrpc: expose wallet import related RPCs
2021-04-05 15:41:10 -07:00
Wilmer Paulino
2d163b788b
lnwallet: expose wallet import related methods to WalletController
2021-04-05 15:41:09 -07:00
Wilmer Paulino
c7bed34bca
lncli: add account flag to wallet related commands
2021-04-05 15:41:08 -07:00
Wilmer Paulino
a7211b34c3
rpc: expose account parameter for several wallet RPCs
2021-04-05 15:41:07 -07:00
Wilmer Paulino
f91e7cde59
lnwallet: expose optional account filter for several WalletController methods
2021-04-05 15:41:06 -07:00
Wilmer Paulino
f38bf4d7fa
lnwallet: expose required account parameter for WalletController methods
2021-04-05 15:41:05 -07:00
Wilmer Paulino
a620ce3682
build: update btcd and btcwallet dependencies
2021-04-05 15:41:04 -07:00
Hampus Sjöberg
a7c43fbb03
lnrpc: Change State -> state in SubscribeStateResponse
...
This is to keep it in-line with the naming convention of the
protobuf response fields.
2021-04-05 15:26:37 +02:00
Olaoluwa Osuntokun
a329c80612
Merge pull request #5133 from wpaulino/routing-validation-cancel-deps
...
discovery+routing: cancel dependent jobs if parent validation fails
2021-04-01 18:32:58 -07:00
eugene
8b463fbc2b
lnd: optionally listen on localhost for better security
...
The --profile flag now accepts both a port and a host:port string.
If profile is set to a port, then pprof debugging information will
be served over localhost. Otherwise, we will attempt to serve pprof
information on the specified host:port (if we are allowed to listen
on it.)
We default to the safe option as if the port is connectable, anybody
can connect and see debugging information.
See: https://mmcloughlin.com/posts/your-pprof-is-showing
2021-04-01 12:14:24 -04:00
Olaoluwa Osuntokun
e7400dfb2b
Merge pull request #4933 from halseth/router-delay-zombie-pruning
...
routing: delay initial zombie prune by 30 sec
2021-03-31 13:22:36 -07:00
Olaoluwa Osuntokun
6d722662ae
Merge pull request #4704 from yyforyongyu/4308-fix-sats-vbyte
...
lnrpc+lncli: fix sat per virtual byte
2021-03-31 13:19:56 -07:00
Johan T. Halseth
1231c90a19
routing: avoid open DB transaction if no zombies to prune
...
We add a simple length check to the channels to be pruned to avoid
opening the DB if there is nothing to be done.
2021-03-30 11:04:13 +02:00
Johan T. Halseth
a0f3624303
routing: delay initial zombie prune by 30 sec
...
Since zombie pruning can be very slow on some devices (e.g. mobile) it
would stall lnd startup. Since it is not essential for pruning to be
finished for lnd to be functional, we instead delay the initial prune by
30 seconds.
Note that we could also wait for the graphPruneInterval to tick, but
since this is by default 2 hours, it is unlikely that a mobile app will
ever be open that long.
2021-03-30 11:04:13 +02:00
yyforyongyu
9d0d88ac21
lnrpc+lncli: deprecate sat_per_byte and add sat_per_vbyte
...
This commit deprecates/replaces the old field `sat_per_byte` with
`sat_per_vbyte`. While the old field suggests sat per byte, it’s
actually using sat per virtual byte. We use the Hidden param to hide all
the deprecated flags. These flags won't show up in help menu onwards,
while stay valid that can be passed from cli. Thus bash scripts
referencing these fields won't be broken.
2021-03-26 17:16:40 +08:00
yyforyongyu
2466758acd
lncli+lnrpc: update docs for sat_per_byte
...
Update the documentation for the field `sat_per_byte`. While the name
suggests it’s sat per byte, the value is actually in sat per virtual
byte.
2021-03-26 17:09:14 +08:00
Johan T. Halseth
d85d82824c
Merge pull request #5145 from Roasbeef/neutrino-filter-ver-update
...
build: update to latset version of neutrino
2021-03-26 10:01:54 +01:00
Olaoluwa Osuntokun
f4530d67cb
build: update to latset version of neutrino
...
In this commit, we update to the latest version of neutrino that
includes some GC/perf optimizations when syncing, an exposed block
cache, and also additional filter verification for downloaded filters.
2021-03-25 18:20:42 -07:00
Olaoluwa Osuntokun
fcc0dec741
cmd/lncli: add missing context import
2021-03-25 17:49:13 -07:00
Olaoluwa Osuntokun
24d1d9cb14
Merge pull request #5095 from bottlepay/wtxmgr-parameterized-lock
...
lnwallet+walletrpc: list leases and parameterize duration
2021-03-25 17:31:13 -07:00
Olaoluwa Osuntokun
b4b7f29724
Merge pull request #5102 from yyforyongyu/fix-send-cli
...
lncli+lnrpc: add payment address to sendpayment
2021-03-24 18:02:53 -07:00
Olaoluwa Osuntokun
a9afd86a5b
Merge pull request #5127 from alexbosworth/patch-15
...
rpcserver: revert target conf to previous behavior
2021-03-24 16:53:17 -07:00
Olaoluwa Osuntokun
901c192e9f
lnrpc/routerrpc: use x prefix as REST sub-path for ImportMissionControl
...
A small change to better indicate that this is a different class of RPCs
on the REST interface.
2021-03-23 16:41:00 -07:00
Olaoluwa Osuntokun
abea1146a6
Merge pull request #5120 from Roasbeef/invoice-deletion-errors
...
channeldb: return more detailed errors in DeleteInvoice
2021-03-23 16:14:23 -07:00
Olaoluwa Osuntokun
6f3e14a545
Merge pull request #5061 from carlaKC/4483-importmissioncontrol
...
routing: add mission control import rpc
2021-03-23 15:22:27 -07:00
Wilmer Paulino
393111cea9
discovery+routing: cancel dependent jobs if parent validation fails
...
Previously, we would always allow dependent jobs to be processed,
regardless of the result of its parent job's validation. This isn't
correct, as a parent job contains actions necessary to successfully
process a dependent job. A prime example of this can be found within the
AuthenticatedGossiper, where an incoming channel announcement and update
are both processed, but if the channel announcement job fails to
complete, then the gossiper is unable to properly validate the update.
This commit aims to address this by preventing the dependent jobs to
run.
2021-03-23 11:56:51 -07:00
Wilmer Paulino
e713205eea
discovery: add missing error channel sends in processNetworkAnnouncement
...
Without the error channel sends, we would block the gossip message
stream upon receiving a premature channel announcement.
2021-03-23 11:56:31 -07:00
Alex Bosworth
069de38186
itest: add support for specifying chain fee rate
2021-03-22 13:08:38 -07:00