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
Hampus Sjöberg
ada1bc701c
signal: handle shutdown properly
...
This addresses issues related to the mobile lnd builds, where
calling `stopDaemon` and subsequently calling LndMobile's `Start`
results in crash.
2021-03-18 12:54:25 +01:00
Elle Mouton
000516ec4d
lncli: start signal interceptor in getContext
...
signal Intercept function needs to be called if the signal shutdown
channel will be listened on.
2021-03-17 22:44:45 +02:00
Oliver Gugger
05342f25b8
Merge pull request #5097 from ellemouton/lncli-interrupt-handler
...
lncli: cancel RPC context on OS interrupts
2021-03-17 10:31:08 +01:00
whythat
54c93b1b86
lncli: cancel RPC context on OS interrupts
2021-03-12 10:07:49 +02:00
Elle Mouton
9e9c48fcdd
rpc: use default if conf-target is not set
...
This commit uses the new coop-close-target-confs value as the default to
use for a nodes self initiated channel closures if the conf-target flag
for the channel closure is not set. The defaults for both these options
is 6 so this shouldnt change current behaviour.
2021-03-04 13:07:30 +02:00
Umar Bolatov
4dc5cb5a3a
Fix typo in restorechanbackup command description
2021-01-31 17:37:27 -08:00
Tom Kirkpatrick
73a5f325b6
lnrpc: ability to spend unconfirmed coins
2020-10-01 13:27:03 +01:00
Oliver Gugger
ca679e0f0e
lncli: move wallet unlocker commands into own file
...
This is a pure code move, we extract all wallet unlocker operations
(create, unlock, changepassword) into its own file.
2020-09-25 15:16:56 +02:00
yyforyongyu
469aba9282
lnd+rpcserver: allow customized timeout in ConnectPeer
2020-09-16 11:50:04 +08:00
Andras Banki-Horvath
4ffe744364
lncli: add outgoing_chanid to queryroutes
2020-09-14 11:36:06 +02:00
Oliver Gugger
d792a8ef61
lncli: use readPassword function everywhere
2020-09-07 15:55:05 +02:00
Dominik Spicher
b5fc3a0b03
cmd/lncli: fix sendcoins usage message
2020-08-20 09:44:38 +02:00
Candle
c8ad071011
lncli: remove new line from password confirmation
...
The password instruction in the same function and many other related
outputs use Printf except of Println.
2020-07-22 22:48:44 +02:00
yyforyongyu
f11da830b9
lnrpc: expose all local and remote channel constraints
2020-06-30 06:59:18 +08:00
yyforyongyu
987edc9d81
multi: add a rpc endpoint to track the recovery process
2020-06-25 15:49:54 +08:00
Jasper Rädisch
20b42ce261
cmd/lncli: add fwdinghistory support for relative times
...
- introduces new parser in `cmd/lncli/arg_parse.go`
- converts start_time and end_time flags to strings
- adds default value for end_time
2020-06-23 15:58:23 -07:00
Gabriel Comte
7a4b783fc8
lncli: Fix typos in closechannel help dialog
2020-05-25 16:32:49 +02:00
carla
52137459e4
lncli: add label flag to send many and send coins
2020-05-19 13:31:51 +02:00
carla
537dac3c62
multi: specify start and end height for ListTransactionDetails
...
Add start and end height parameters to the rpc and cli GetTransactions
endpoints. Default to returning all transactions from genesis to tip,
including unconfirmed transactions to maintain backwards compatibility.
2020-05-05 21:10:06 +02:00
Olaoluwa Osuntokun
7e6f3ece23
Merge pull request #3960 from bitromortac/listpayments-pagination
...
channeldb+lnrpc+lncli: listpayments pagination support
2020-04-07 17:06:37 -07:00
bitromortac
4593cfa6c6
lncli: modify listpayments to use queried payments and update cli docs
2020-04-07 07:03:51 +02:00
Conner Fromknecht
4aceaba1be
cmd/lncli: move invoice commands to cmd_invoice.go
2020-04-06 14:23:21 -07:00
Joost Jager
6b649eeb10
lncli: remove unused type chain
2020-03-31 22:05:00 +02:00
Joost Jager
dead6a772a
lncli: use routerrpc for payments
2020-03-31 21:41:28 +02:00
Joost Jager
f060da3971
lncli: move payment commands to separate file
2020-03-31 21:41: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
Andras Banki-Horvath
5a4d595e53
lncli: group graph queries under Graph category
...
This commit moves DescribeGraph, GetNodeInfo and GetChanInfo under the
Graph category.
2020-03-27 13:56:10 +01:00
Andras Banki-Horvath
7e50997bb4
lnrpc: add betweenness centrality to GetNodeMetrics (new RPC call)
...
This commit extends the RPC interface with GetNodeMetrics will contain
all graph node metrics in the future. Currently only holds betweennes
centrality per node.
2020-03-27 13:56:08 +01:00
carla
4c48d0361d
lnrpc+lncli: display peer errors in listpeers
...
This change adds a set of errors to the peer struct returned by list
peers. A latest error boolean is added to allow for more succinct
default lncli responses.
2020-03-17 08:22:50 +02:00
Oliver Gugger
f55860ccd8
lncli: fix windows compilation
2020-03-11 10:07:43 +01:00
Oliver Gugger
ed8924c6c5
lncli: allow unlock with password from stdin
2020-03-10 14:29:45 +01:00
Oliver Gugger
e435cd5fc6
lncli: use original snake_case names for JSON serializing
...
Because we now use printRespJSON everywhere where we print RPC
responses as JSON, we can simply instruct the jsonpb marshaler to
use the original snake_case name specified in the proto file for
the JSON field names and not the default camelCase.
2020-03-07 11:22:36 +01:00
Conner Fromknecht
11532df5f3
cmd/lncli: add --peer flag to list channels
...
This commit adds a flag to listchannels that filters by remote pubkey.
2020-03-05 20:44:18 -08:00
bitromortac
926d4ba52e
lncli: change listinvoices reversed flag to paginate-forwards
...
This commit renames the `reversed` pagination flag to
`paginate-forwards`, which is off by default. In order to
access older invoices one can set the paginate-forwards flag,
which is more intuitive than setting the reversed flag to false.
2020-02-25 11:33:55 +01:00
Conner Fromknecht
51dbdd3b38
multi: rename key_send, key-send and key send to keysend
2020-01-16 18:37:16 -08:00
Conner Fromknecht
51306f4ecd
lncli: fix sendcoins docs, allow base58 or bech32 addrs
2020-01-15 05:01:42 -08:00
Joost Jager
d978b55701
lncli: add custom data payment flag
2020-01-14 13:01:45 +01:00
Conner Fromknecht
b3f2a94c3b
lncli: improve last_hop help message
...
Clarifies that last_hop is not the destination, but the penultimate node
in the path, i.e. the last intermediary.
2020-01-09 17:57:52 -08:00
Joost Jager
b1206f67c2
lncli: send key
...
Extend lncli with a flag that indicates the intention to send
a spontaneous payment. lncli will generate a preimage/hash combination
and send the preimage as a custom record to the recipient.
2019-12-23 21:51:23 +01:00
Joost Jager
15eedd2b1a
lncli: remove debug send
...
Debug send has been removed some time ago. This is a left over.
2019-12-23 21:51:13 +01:00
Conner Fromknecht
153cd58c97
lnrpc+lncli: reorder getinfo and use printRespJSON
2019-12-20 01:05:27 -08:00
Conner Fromknecht
8f5d78c875
build+lncli: default to hex encoding for byte slices
...
This commit swaps out golang/protobuf/jsonpb for a custom variant that
by default prints byte slices as hex, which is more useful for our
setting. Some existing wrapper structs are removed as they can now be
printed directly with the new jsonpb.
!!! NOTE !!!
This commit introduces a breaking change to lncli listinvoices since
payment hashes and preimages will now be printed in hex instead of
base64.
2019-12-20 01:05:08 -08:00
carla
6eab2a06dd
lnrpc+lncli: add feature bits to GetInfo
2019-12-17 23:21:14 +02:00
carla
c27d60b6d1
lncli: add option upfront shutdown to openchannel
2019-12-17 23:18:33 +02:00
Joost Jager
b6eb3a69ba
routing+lnrpc+lncli: allow setting min htlc policy
2019-12-11 00:17:08 +01:00
carla
ef4d9334b7
lncli: Add optional delivery address to close channel
...
This commit is adapted from @Bluetegu's original
pull request #1462 .
2019-12-10 09:13:00 +02:00
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
Conner Fromknecht
76a2dfd8a6
lnrpc: remove receipt field from invoice
2019-11-22 02:23:24 -08: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
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
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
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
Wilmer Paulino
51216c6e5e
cmd/lncli: properly set synced_to_graph for getinfo command
2019-08-13 17:40:18 -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
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
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
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
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
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
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