Olaoluwa Osuntokun
9079dfbd33
cmd/lncli: exit if user opts to not recover SCB files
2019-12-04 19:24:35 -08:00
Olaoluwa Osuntokun
03ee8c047a
Merge pull request #3698 from aantonop/warn_before_SCB_restore
...
Warn user before doing SCB restore
2019-12-04 19:17:30 -08:00
Joost Jager
2d19201ede
lnrpc+routerrpc+lncli: add allow_self_payments safety flag
2019-11-26 10:15:46 +01:00
Olaoluwa Osuntokun
cb2b8b4513
Merge pull request #3693 from cfromknecht/tlv-invoice
...
migrate to tlv for invoice body
2019-11-25 18:00:52 -06:00
Conner Fromknecht
76a2dfd8a6
lnrpc: remove receipt field from invoice
2019-11-22 02:23:24 -08:00
Joost Jager
cdf1aa5bc1
routing: track amt ranges in mc
2019-11-22 11:17:28 +01:00
Joost Jager
62f8cca75b
routing+routerrpc: also expose amt for success results in mc
2019-11-22 11:17:26 +01:00
Andreas M. Antonopoulos
651ca47f37
Warn user before doing SCB restore
...
SCB restore closes all open channels. We need to warn users that this is what will happen if they try to do an SCB restore.
2019-11-21 08:38:28 -05:00
Joost Jager
f28941c7e4
routing+routerrpc+lncli: enable last hop restriction for payments
2019-11-18 21:03:03 +01:00
Oliver Gugger
7470f696ae
cmd/lncli: increase gRPC max message receive size to 200MiB
2019-11-15 16:21:20 +01:00
Joost Jager
fcf81ed8ff
Merge pull request #3556 from joostjager/query-mc-prob
...
routerrpc: add queryprob rpc
2019-10-31 08:03:29 +01:00
Joost Jager
fb57255b5c
routerrpc: add mc probability query rpc
...
Probabilities are no longer returned for querymc calls. To still provide
some insight into the mission control internals, this commit adds a new
rpc that calculates a success probability estimate for a specific node
pair and amount.
2019-10-29 12:32:19 +01:00
Joost Jager
04e7c98461
routerrpc: create pair data proto message
...
With a separate proto message, it becomes possible to also return the
pair data for a single pair. This prepares for the new mc probability
querying rpc.
2019-10-29 12:32:17 +01:00
Oliver Gugger
1270a8ebae
lncli: add command for baking new macaroons
2019-10-24 10:25:38 +02:00
Joost Jager
fab13900e2
routing+routerrpc: remove probability estimates from mc state snapshot
...
Probability estimates are amount dependent. Previously we assumed an
amount, but that starts to make less sense when we make probability more
dependent on amounts in the future.
2019-10-22 15:52:36 +02:00
Wilmer Paulino
cbf7e4886a
multi: extend QueryRoutes RPC with CLTV limit field
2019-10-11 18:07:39 -04:00
Olaoluwa Osuntokun
2a3538fec8
Merge pull request #3360 from tyzbit/3357_start-time
...
rpcserver: startTime defaults to the unix epoch
2019-10-07 16:48:23 -07:00
tyzbit
be989a85ff
lncli: start_time defaults to 24 hours ago
...
Here we set start_time to 24 hours prior
if it's not provided on the CLI. The
effect of this is when you don't provide
a start_time:
CLI: -24h
RPC: Unix Epoch
2019-10-03 18:12:39 -04:00
tyzbit
8891346cb2
rpcserver: startTime defaults to the unix epoch
...
Fixes https://github.com/lightningnetwork/lnd/issues/3357 . When
start_time isn't specified, its default value is 0. This meant when
users explicitly specified a start_time of 0, we would incorrectly set
start_time to 24 hours in the past. Now, n0 means n0.
2019-10-03 18:12:21 -04:00
Joost Jager
b58dbb2d70
multi: fix canceled spelling
2019-10-03 17:27:36 +02:00
Lars Lehtonen
dade977d7b
cmd: stdlib context
2019-09-28 15:44:45 -07:00
Olaoluwa Osuntokun
18f88cbd8d
Merge pull request #3440 from joostjager/buildroute
...
routing: add build route functionality
2019-09-24 20:24:24 -07:00
Joost Jager
03d33cbd6b
lncli: update SendToRoute to also parse new route format
2019-09-24 10:00:48 +02:00
Joost Jager
6328b2e989
lncli: add BuildRoute function
2019-09-24 10:00:46 +02:00
Valentine Wallace
5aefe8bc70
lncli: allow users to update max HTLC channel policies
...
In this commit, we enable callers of UpdateChannelPolicy to
specify their desired max HTLC forwarding policy for one or
multiple channels over lncli.
2019-09-23 13:07:14 +02:00
Conner Fromknecht
7252e175dc
lncli+wtclientrpc: remove wtclientrpc build tag, compile by default
2019-09-18 17:26:15 -07:00
Joost Jager
3d7de2ad39
multi: remove dead code
2019-09-10 17:21:59 +02:00
Olaoluwa Osuntokun
c397a2ea78
Merge pull request #3438 from alrs/fix-cmd-error
...
cmd/lncli: Fix dropped error
2019-09-03 19:59:30 -07:00
Wilmer Paulino
06f544a78c
cmd/lncli: return error upon missing channel backup when parsing
2019-09-03 14:04:38 -07:00
Lars Lehtonen
686fee57ee
cmd/lncli: Fix dropped error
2019-09-03 12:29:26 -07:00
Joost Jager
ff0c5a0d5e
routing: process successes in mission control
...
This commit modifies paymentLifecycle so that it not only feeds
failures into mission control, but successes as well.
This allows for more accurate probability estimates. Previously,
the success probability for a successful pair and a pair with
no history was equal. There was no force that pushed towards
previously successful routes.
2019-08-23 09:15:41 +02:00
Olaoluwa Osuntokun
80c6759140
Merge pull request #3400 from wpaulino/lncli-getinfo-synced-to-graph
...
cmd/lncli: properly set synced_to_graph for getinfo command
2019-08-16 12:58:02 -07:00
Wilmer Paulino
51216c6e5e
cmd/lncli: properly set synced_to_graph for getinfo command
2019-08-13 17:40:18 -07:00
Joost Jager
f1769c8c8c
routing: convert to node pair based
...
Previously mission control tracked failures on a per node, per channel basis.
This commit changes this to tracking on the level of directed node pairs. The goal
of moving to this coarser-grained level is to reduce the number of required
payment attempts without compromising payment reliability.
2019-08-13 19:21:37 +02:00
Wilmer Paulino
787986283c
cmd/lncli: add watchtower client commands
2019-07-30 15:18:16 -07:00
carla
d5b662d066
cmd: Add retry for password capture in create wallet
2019-07-20 14:48:25 -04:00
Joost Jager
541e5f4af7
lncli: add use_mc flag
2019-07-18 15:49:30 +02:00
Johan T. Halseth
25375d603c
Merge pull request #3246 from tyzbit/fwdinghistory_3240
...
rpcserver: ForwardingHistory end_time defaults to time.Now()
2019-07-10 09:56:00 +02:00
tyzbit
d9179bee91
rpcserver: ForwardingHistory end_time defaults to time.Now()
...
In this commit we change the default behavior
of end_time when calling ForwardingHistory.
end_time now defaults to time.Now()
2019-07-08 18:18:35 -04:00
Wilmer Paulino
a575b5679d
Merge pull request #3271 from ottosuess/patch-3
...
trivial: typo fix (closes #3268 )
2019-07-08 15:03:35 -07:00
Otto Suess
e9abee2852
trivial: typo fix ( closes #3268 )
...
suer should be user
2019-07-04 18:02:26 +02:00
Conner Fromknecht
0451baecf5
cmd/lncli/commands: fix updatechanpolicy lowest possible fee msg
2019-07-02 16:20:53 -07:00
Conner Fromknecht
24b160b1c4
cmd/lncli/watchtower: add tower info command
2019-06-20 17:04:04 -07:00
Joost Jager
865801c881
lncli: add reset mission control command
2019-06-19 12:37:32 +02:00
Joost Jager
26b2c79159
lncli: add usage to querymc command
2019-06-19 12:37:30 +02:00
Joost Jager
ad2759dc94
lncli: assign category to SendToRoute command
2019-06-19 12:37:28 +02:00
Conner Fromknecht
1c7ad4428c
cmd/lncli/commands: add include_channels flag to getnodeinfo
2019-06-17 16:18:18 -07:00
Olaoluwa Osuntokun
4584ea0681
cmd/lncli: add new include_incomplete flag for listpayments
2019-06-13 16:05:52 -07:00
Wilmer Paulino
d41af9a65f
cmd/lncli: expose bumping fee of inputs/transactions over lncli
2019-06-11 15:06:40 -07:00
Wilmer Paulino
1d8b70eaa6
cmd/lncli: expose pending input sweeps within UtxoSweeper over lncli
2019-06-06 03:23:19 -07:00
Joost Jager
220c2becb1
lncli: unify payinvoice and sendpayment code
...
This commit prepares lncli for moving over to routerrpc payment calls.
2019-06-05 12:41:57 +02:00
Olaoluwa Osuntokun
7453dbeacc
Merge pull request #2802 from joostjager/probability
...
routing: probability based path finding
2019-06-05 11:30:55 +02:00
Olaoluwa Osuntokun
12607c9eaa
Merge pull request #990 from michael1011/master
...
added conf_target and sat_per_byte to closeallchannels
2019-06-04 08:06:46 -07:00
Joost Jager
9b71d90a6e
lncli: add querymc command
...
Adds querymc command to lncli to dump mission control state.
2019-06-04 10:00:29 +02:00
Xavi Soler
0e38c722b3
lncli: include color in getinfo response
2019-05-23 10:52:22 +02:00
Wilmer Paulino
92d780f157
cmd/lncli: properly parse channel backup within lncli create
2019-05-21 15:16:44 -07:00
Wilmer Paulino
8628019ca2
cmd/lncli: properly spend unconfirmed utxos with openchannel
2019-05-17 13:10:12 -07:00
Joost Jager
ba3fa94268
lnrpc+routing: Only accept a single route for SendToRoute
2019-05-15 11:54:46 +02:00
michael1011
bb28d3a4af
added conf_target and sat_per_byte to closeallchannels
2019-05-10 15:03:22 +02:00
Joost Jager
7a5bd29a69
lnrpc+routing: remove k shortest path finding
2019-05-07 19:54:06 +02:00
Conner Fromknecht
17b2140cb5
multi: fix spelling mistakes
2019-05-04 15:35:37 -07:00
Olaoluwa Osuntokun
76d91c702f
Merge pull request #2953 from MDrollette/remove-arg
...
cmd/lncli: remove unused time_limit flag
2019-04-17 19:38:11 -07:00
Matt Drollette
c5b597b501
cmd/lncli: remove unused time_limit flag
2019-04-14 12:09:52 -05:00
Otto Suess
2bd217a5d9
lncli: fix exportChanBackup description typo
2019-04-12 20:14:32 +02:00
Conner Fromknecht
4de7d0c561
Merge pull request #2889 from grunch/fix-verifychanbackup-help
...
Remove equal sign on verifychanbackup cmd argument
2019-04-04 15:49:22 -07:00
Francisco Calderón
4c1bd14c94
Remove equal sign on verifychanbackup cmd on multi_file argument description
2019-04-04 19:06:23 -03:00
Francisco Calderón
0e4f5c0e2f
Add a missing white space on exportchanbackup command description
2019-04-04 11:07:06 -03:00
Olaoluwa Osuntokun
1f187c0116
cmd/lncli: add new verifychanbackup command
2019-03-28 17:54:03 -07:00
Olaoluwa Osuntokun
0b8131c3be
cmd/lncli: add new exportchanbackup and restorechanbackup cli commands
...
In this commit, we add two new cli commands: exportchanbackup and
restorechanbackup. These two commands allow users to export backups
(single or multi) for one or all channels, and also restore these
backups (single or multi) from a file to attempt to recover the
channels.
Additionally, we extend the `lncli create` call to also accept these
backups so users can have a single command to restore both their
on-chain and off-chain funds.
2019-03-28 17:53:29 -07:00
Johan T. Halseth
4d8100cc9a
Merge pull request #2640 from joostjager/cltv-limit
...
routing: add cltv limit
2019-03-27 10:05:02 +01:00
Olaoluwa Osuntokun
6440f39120
Merge pull request #2794 from halseth/autopilot-query-heuristic-no-active-agent
...
autopilot: move queryHeuristic out of agent
2019-03-21 20:20:51 -07:00
Olaoluwa Osuntokun
232dd73abd
Merge pull request #2691 from cfromknecht/increase-default-recovery-window
...
cmd/lncli: increase default recovery window to 2.5k
2019-03-19 16:12:32 -07:00
Joost Jager
ec0d241905
lncli: add cltv limit
2019-03-19 10:38:09 +01:00
Johan T. Halseth
6aae6fda93
lncli/autopilot: add -ignorelocal state flag to query
2019-03-18 14:58:19 +01:00
Johan T. Halseth
a5becc2063
lncli: add estimatefee
command
2019-03-15 23:47:15 +01:00
Conner Fromknecht
32c4201edd
cmd/lncli: increase default recovery window to 2.5k
...
Increases the default window from 250 to 2.5k. Many
users have reported attempting recovery with the
default value only to find an empty wallet. This
change should help ensure that the first recovery
attempt succeeds for the majority of nodes that
have modest load. It might prudent to consider
increasing this value further in the future if
the issue persists or average node age increases.
2019-03-15 02:54:07 -07:00
Joost Jager
f6d67945dc
lncli: add settle invoice command
2019-03-15 10:09:26 +01:00
Joost Jager
22b68e5dc7
lncli: add hold invoice
2019-03-15 10:09:00 +01:00
Wilmer Paulino
3371c5fab0
Merge pull request #2680 from grunch/passwd-length-validation-on-create-wallet
...
Add password length validation condition on create wallet cli
2019-03-12 12:12:54 -07:00
Joost Jager
5b6fdbeb6f
lncli: fix command line argument parsing for sendpayment
...
This commit fixes a bug that caused the payment hash to be (re)parsed as
an int representing the final cltv delta.
2019-03-08 10:42:18 +01:00
Francisco Calderón
9e920f12c9
Add password length validation on create CLI
...
In this commit we add this validation importing
the walletunlocker.ValidatePassword function on
create wallet command.
2019-03-05 20:58:46 -03:00
Max Kaplan
9bfb8224cd
lncli: returning non 0 exit code when paying invoice fails
2019-02-18 10:33:03 -05:00
Conner Fromknecht
fd6fb80816
cmd/lncli: show all utxos in listunspent when no args passed
2019-02-11 13:02:35 -08:00
Conner Fromknecht
34e36e9daa
lnrpc+rpcserver: rename ScriptPubkey to PkScript on Utxo msg
2019-02-11 13:02:25 -08:00
Joost Jager
7c30a8c493
routing: add outgoing channel restriction
2019-02-08 23:05:56 +01:00
Joost Jager
a8baa23c2e
lncli: add cancel invoice command
2019-02-06 07:29:38 +01:00
Conner Fromknecht
4c632627ae
cmd/lncli/commands: filter txid_bytes from list_unspent
2019-02-01 18:02:02 -08:00
Conner Fromknecht
b25f1af347
cmd/lncli/types: add Utxo and OutPoint display types
2019-02-01 18:01:56 -08:00
Johan T. Halseth
5306ed5b68
lncli: add autopilot query command
...
To query the autopilot heuristics for scores.
2019-01-23 09:05:43 +01:00
Olaoluwa Osuntokun
b2c712fb67
cmd/lncli: add new --sweepall flag to sendcoins
...
In this commit, we add a new flag to the sendcoins command that allows
callers to sweep all funds out of the daemon's wallet. This CANNOT be
set at the same time that an amount is specified.
2019-01-09 15:55:27 -08:00
Joost Jager
649408003d
lnrpc: expose network name in GetInfo
...
Previously only a testnet boolean was available which
made it impossible to distinguish between regtest and
mainnet.
2019-01-08 00:17:14 +01:00
Olaoluwa Osuntokun
0453078213
cmd/lncli: increase lightning gRPC block size to 50MB
...
In this commit, we increase the gRPC block size from 4MB to 50MB.
Recently, the output of `lncli describegraph` has hit the block size cap
due to the expansion of the mainnet graph. Without this attempts to
fetch the graph returns an error of:
```
[lncli] rpc error: code = ResourceExhausted desc = grpc: received message larger than max (4246753 vs. 4194304)
```
With this commit, we give ourselves some breathing room. It's important
to note that the max message size limit is a _client side_ setting. As a
result, any developers driving `lnd` with gRPC will also need to raise
their block size limit as well if they wish to fetch the graph over
gRPC.
2018-12-25 13:23:14 -06:00
Johan T. Halseth
80ac8c1df0
lncli: add lncli autopilot commands
...
This commit adds commands 'status', 'enable' and 'disable' for
autopilot.
The commands will only be enabled for autopilotrpc builds of lncli.
2018-12-13 13:02:40 +01:00
AdamISZ
9bb2a26948
Add listunspent RPC call
...
Returns a brief json summary of each utxo found by calling
ListUnspentWitness in the wallet. The two arguments are the
minimum and maximum number of conrfirmations (0=include
unconfirmed)
2018-12-11 15:26:38 +01:00
Francisco Calderón
81a6f4c95a
fixes typo on listinvoices command
2018-12-10 12:20:20 -03:00
Xavi Soler
8db3c04773
lnrpc: reorder fields in lncli getingo output
...
Move num_inactive_channels closer to num_active_channel,
best_header_timestamp closer to block_hash/block_height and version as
first item in the list.
2018-11-20 20:35:04 +01:00
Francisco Calderón
b61f6fe886
removes duplicated default message on queryroutes command
2018-11-12 12:03:00 -03:00
Olaoluwa Osuntokun
4c0ca37174
Merge pull request #1389 from Bluetegu/noprivate-describegraph-1037
...
Add --noprivate flag to describegraph rpc to filter out private channels
2018-10-16 20:01:35 -07:00
Conner Fromknecht
97fd56cf47
cmd/lncli: display build.Version() for commit hash
2018-10-05 13:04:45 +09:00
bluetegu
2f3e2f9308
Add --include_unannounced flag to describegraph lncli command.
...
Private and public channels which weren't announced yet are returned only
if the flag is set.
Note: this changes the default output of describegraph which used to
return all channels known to node.
2018-10-04 14:54:49 -04:00