Commit Graph

694 Commits

Author SHA1 Message Date
yyforyongyu
a8f5a09dea
sweep: don't give up an input based on number of attempts
This commit removes the logic where we remove an input when it's been
published more than 10 times. This is needed as in our future fee
bumper, we might start with a low fee and rebroadcast the same input for
hundred of blocks.
2024-04-19 21:33:23 +08:00
Oliver Gugger
648fb22f63
multi: wrap all errors 2024-04-11 15:04:03 +02:00
Mohamed Awnallah
a0b0e7aa62
lncli: add coin selection strategy option to on-chain rpc commands
In this commit we add coin selection strategy option to the
following on-chain rpc commands `fundpsbt`, `fundtemplatepsbt`,
`batchopenchannel`, `estimatefee`, `sendcoins`, and `sendmany`.
2024-04-01 19:08:19 +02:00
Joost Jager
763787e08c routing+lnrpc: add inbound fee policy update 2024-03-31 16:49:19 +02:00
Carla Kirk-Cohen
421433039b
lnrpc: rename proportional fee rate on lnrpc
This field is incorrectly suffixed as "msat", when it is actually
interpreted as the proportional fee rate. This is the value that we
should be using because the sender will calculate proportional fees
accordingly. This is a breaking change to the RPC, but on an
experimental and unreleased API.
2024-03-27 09:39:01 -04:00
Oliver Gugger
0bc3d29413
Merge pull request #8496 from aakselrod/locks-to-leases
multi: replace `LockOutpoint` with `LeaseOutput`
2024-03-18 03:34:56 -06:00
Mohamed Awnallah
158b802f49
lncli+makefile: generate man pages automatically for lncli and lnd 2024-03-13 21:18:23 +02:00
Alex Akselrod
4d2ab7423f
multi: move 3 vars from walletrpc+lncfg to chanfunding
This commit moves the constants LndInternalLockID and
DefaultLockDuration from the walletrpc package to the chanfunding
package, moves DefaultReservationTimeout from lncfg to chanfunding,
and also updates the lncli package with the new location.
2024-03-13 09:50:16 -07:00
Oliver Gugger
92ae54d7ae
cmd/lncli: add confirmation promt to closeallchannels
To make sure users don't accidentally close all channels, we ask before
running this potentially very destructive command.
2024-03-07 09:12:12 +01:00
Slyghtning
814e1a79a6
lncli: add estimateroutefee command 2024-03-05 09:24:27 +01:00
ffranr
b308895583
lncli: unit test makes use of error wrapping during comparison
This commit modifies a unit test such that it inspects a wrapped error
rather than comparing errors by string.
2024-02-27 17:08:01 +00:00
ffranr
cd566eb097
multi: fix fmt.Errorf error wrapping
Refactor fmt.Errorf usage to correctly wrap errors instead of using
non-wrapping format verbs.
2024-02-27 11:13:40 +00:00
Oliver Gugger
f333581d6c
cmd/lncli: add 'wallet psbt fundtemplate' command
This commit adds a new sub command to the wallet that allows using the
new funding option from a template.
Creating a new command is way easier for the user to understand than
adding multiple flags that are only valid in certain combinations.
2024-02-26 11:05:19 +01:00
Elle Mouton
5d16491c13
lnrpc+lncli: add TerminateSession command 2024-02-20 14:44:38 +02:00
Elle Mouton
26432359ad
lnrpc+lncli: add DeactivateTower to rpc 2024-02-20 14:44:11 +02:00
Andras Banki-Horvath
7725a57055
walletkit: add startheight parameter to ListSweeps
By default ListSweeps will list all sweeps known to the wallet. Over
time this may become expensive to call and callers may not be interested
in the full history. This commit adds a `startheight` parameter to the
`ListSweeps` RPC call. This parameter can be used to fetch sweeps only
from a specified start block height or only unconfirmed ones if it is
set to -1.
2024-02-01 21:02:24 +01:00
Jesse de Wit
ef3aa84c10
lncli: add include_raw_tx flag to pendingchannels 2024-01-29 14:16:51 +01:00
Keagan McClelland
804dabb4ea lnd: make closechannel send an instant empty update when no_wait set
We do things this way to keep behavior consistent across REST, gRPC
and CLI consistent. This was done to not alter the way we handle
Recv calls from the streams.
2024-01-23 12:25:01 -08:00
Elle Mouton
3cb194c45e
lnrpc+lncli: update wtclientrpc for taproot towers 2024-01-19 15:33:06 +02:00
Yong
54329a338e
Merge pull request #8387 from ziggie1984/buildroute-use-lnd-default
buildroute use lnd default
2024-01-18 18:53:46 +08:00
Yong
1bc1295fc0
Merge pull request #8350 from ziggie1984/rename-bumpclosefee
Minor improvements in the lncli api regarding channel closures.
2024-01-17 00:41:29 +08:00
ziggie
4db5b2266f
lncli: remove default cltv delta for buildroute.
Now the default of the lnd backend is used instead of providing
the default value via the caller of the buildroute rpc cmd.
2024-01-16 14:10:22 +01:00
Oliver Gugger
0da35edc48
cmd/lncli: add flags for more info to encryptdebugpackage
This commit adds three optional command line flags to the
encryptdebugpackage: --peers, --onchain and --channels.
Each of them adds the output of extra commands to the encrypted debug
package.
2024-01-09 12:43:42 +01:00
Oliver Gugger
d4f49cb04b
cmd/lncli: add {encrypt,decrypt}debugpackage commands 2024-01-09 12:40:39 +01:00
Oliver Gugger
375bc6950c
cmd/lncli: add new getdebuginfo command 2024-01-09 12:32:37 +01:00
Oliver Gugger
2b54774721
Merge pull request #8339 from mani2310/mani2310-Wrong-documentation-on-lncli
Wrong documentation on lncli
2024-01-09 08:29:06 +01:00
ziggie
1bdc7ce165
lncli: add max_fee_rate to closechannel cmd. 2024-01-09 01:19:10 +01:00
ziggie
7481ed0a43
walletrpc-lncli: add new bumpforceclosefee cmd.
Replace (hide) the old bumpclosefee cmd with the new
bumpforceclosefee cmd to avoid confusion which closing
transactions can be bumped.
2024-01-09 01:15:43 +01:00
Manisha
034bb5b51e Wrong documentation on lncli
Signed-off-by: Manisha <manisha2133@gmail.com>
2024-01-03 21:57:25 +05:30
Thabokani
b8d2fc3816
kvdb+cmd: fix typos 2024-01-03 12:06:32 +08:00
Oliver Gugger
0df507eca0
Merge pull request #8261 from markettes/lncli-multiple-outgoing-channels
Enable multiple outgoing channel ids in payments
2023-12-18 11:38:46 +01:00
Marcos
72a56f56b4
lncli: enable multiple outgoing channel ids in payments 2023-12-18 10:27:03 +01:00
ziggie
7c09cc3326
lncli: add new removetx cmd.
This new command calls the new rpc endpoint RemoveTransaction.
2023-12-12 14:18:17 +01:00
ErikEk
f0bc6d804c rpc: add gettransaction endpoint to walletrpc sub-server 2023-12-10 22:14:12 +01:00
Marcos
7445782db6
lncli: show balance for sweepall 2023-12-04 10:46:54 +01:00
Keagan McClelland
dae80f5db7 lnrpc: add top level command doc tags to enable lncli api doc generation 2023-11-20 14:44:30 -07:00
Jonathan Harvey-Buschel
c20e4871cd
chainrpc+lncli: expose GetBlockHeader + add to CLI 2023-10-27 11:05:27 -04:00
Carla Kirk-Cohen
32ea77b96b lncli: add blinded route cli flags to query routes
Note: This commit can be dropped before merge, it's mostly added
to make the PR easier to manually test against other
implementations that have bolt 12 invoices implemented already!
2023-10-06 16:38:33 -07:00
Elle Mouton
1211e7eb7b multi: use "bitcoin" chain name constant
Make use of the `bitcoinChainName` constant instead of re-writing the
"bitcoin" string.
2023-10-06 16:34:47 -07:00
Elle Mouton
a7e723e570 lncli: remove chain option from profile 2023-10-06 16:34:47 -07:00
yyforyongyu
17a0a8de06 cmd+lntest: use the new rpc field Payment_INITIATED 2023-10-06 16:34:47 -07:00
Oliver Gugger
7ef11e8ae4
cmd/lncli: fix linter complaint by running make fmt 2023-10-05 22:47:02 +02:00
Kilian
682827c7af
lncli: fix description of connect/disconnect peer 2023-10-05 18:13:32 +02:00
Olaoluwa Osuntokun
6dc43ad253
cmd/lncli: add new taproot channel type for openchannel 2023-08-22 16:32:33 -07:00
Slyghtning
ab117a0ed4
typos: fix updatechanpolicy typos 2023-08-11 17:04:36 +02:00
Slyghtning
2c3420679d
lncli: add account to WalletBalance command 2023-07-28 22:24:55 +02:00
Slyghtning
f0579cc509
lncli: add flag utxos for openchannel 2023-07-24 13:07:01 +02:00
Torakushi
77d3f00c3b
walletrpc+btcwallet: no custom account with various key scopes
Currently, a user can create a custom account with various key scopes.
This is not a desired behaviour.
2023-06-14 09:58:53 +02:00
zx9r
3a5d67a16b
cmd/lncli: add confirmation to sendcoins 2023-06-13 11:58:34 +02:00
MG-ng
63b32b9e4a
cmd/lncli: add description for payinvoice command 2023-06-13 11:58:34 +02:00
Aljaz Ceru
d3a5307fc0
cmd/lncli: fix inconsistent argument naming in queryRoutes 2023-06-13 11:58:34 +02:00
gabbyprecious
4ea24c0820
cmd/lncli: add unused flag to newAddr command 2023-06-13 11:58:33 +02:00
gcaracuel
12e7c24520
lncli: Global flags to accept ENV vars overrides. 2023-05-22 17:13:18 +02:00
shaurya947
373e445cdc
lncli: add optional memo flag to openchannel cmd
This commit simply adds a new memo flag to the openchannel command.
Memo could be any note-to-self kind of useful information to go
along with the channel. The value isn't used yet, will be in the
next commit.
2023-05-18 12:51:18 -04:00
Oliver Gugger
f9436ec05d
mod+cmd/lncli: use google.golang.org/protobuf package 2023-05-11 22:51:16 +02:00
Carla Kirk-Cohen
ad6ccb415f
lncli: fix typo in updatenodeannouncement 2023-05-04 10:42:37 -04:00
Olaoluwa Osuntokun
591ff120b6
Merge pull request #6903 from hieblmi/fundmax-flag
funding: add `fundmax` flag to `OpenChannelRequest`
2023-04-06 10:57:29 -07:00
Olaoluwa Osuntokun
2596a33529
Merge pull request #7575 from lightningnetwork/0-16-1-staging
lnd: merge the 0.16.1 staging branch into master
2023-04-05 16:48:25 -07:00
Slyghtning
b9bded33d1 lncli: fundmax flag for openchannel 2023-04-05 23:09:12 +02:00
ardevd
ddc4bc6b32 lncli: backup/verify/restore single channel from file
author ardevd <edvard.holst@gmail.com> 1676983861 +0100
committer ardevd <ardevd@users.noreply.github.com> 1677705118 +0100

Write to the specified file if the user specifies a chan_point for
backup and also specifies an output file to write the backup to.

Fixes #7436
2023-03-25 15:30:38 +01:00
Eval EXEC
e4a6a0f26f
lncli: add testcase for parseTimeLockDelta
Signed-off-by: Eval EXEC <execvy@gmail.com>
2023-03-23 21:34:12 +08:00
Eval EXEC
cbcbddfe29
rpcserver: add time_lock_delta overflow check 2023-03-23 21:34:12 +08:00
bitromortac
a3e46dae9f
multi: mark bimodal estimator experimental 2023-03-23 11:12:10 +01:00
Elle Mouton
957df98777
lncli: add new exclude-exhausted-sessions option 2023-03-20 20:14:02 +02:00
Oliver Gugger
1a3be78471
cmd/lncli: add --num_confs to wallet psbt fund command 2023-03-13 12:45:58 +01:00
Olaoluwa Osuntokun
251802d796
Merge pull request #7444 from bitromortac/2302-capacity-config
routing: configurable capacity fraction for apriori probability
2023-03-02 18:39:01 -08:00
Oliver Gugger
04376b3b23
cmd/lncli: add --stateless_init to createwatchonly command 2023-02-27 21:59:45 +01:00
bitromortac
fce88e8b5d
lncli+routerrpc: dynamic capacity fraction config
Enable setting and getting of the apriori capacity fraction in lncli and
in the router rpc.
2023-02-24 15:28:55 +01:00
Slyghtning
9d048ecd6a lncli: add flag skip_peer_alias_lookup to listchannels 2023-02-24 10:49:11 +01:00
Oliver Gugger
ccb00741df
Merge pull request #7324 from hieblmi/openchannel-fix-line-length
lncli: fix line length issues
2023-02-17 09:30:00 +01:00
Oliver Gugger
93b7821df3
Merge pull request #7408 from carlaKC/bugfix-updatenodeanncli
bugfix/trivial: fix update node announcement feature bit add /remove
2023-02-16 21:40:36 +01:00
Slyghtning
9e8ee618e3 lncli: fix line length issues 2023-02-16 19:41:30 +01:00
Oliver Gugger
38dc67e1ef
Merge pull request #6815 from bitromortac/2205-bimodal
pathfinding: probability for bimodal distribution
2023-02-15 14:19:32 +01:00
Carla Kirk-Cohen
3cc8e81121
lncli/bugfix: use int64slice for update node announcement features
As is, we'll never get any add/remove features because the flag is
set as an int 64 slice but accessed as an int slice (which has no
value, and the cli doesn't fail if the flag doesn't exist).
2023-02-14 15:53:56 -05:00
bitromortac
2ccdfb1151
lncli+routerrpc: adapt mc api to dynamic estimator
The active probability estimator can be switched dynamically using the
`Set/GetMissionControl` API, maintaining backward compatibility. The
lncli commands `setmccfg` and `getmccfg` are updated around this
functionality. Note that deprecated configuration parameters were
removed from the commands.
2023-02-14 13:34:25 +01:00
Torakushi
b3cbab4482
lncli: possibility to define an address type for changes in FundPsbt
With this commit, we can define an address type for default/imported
accounts in FundPsbt using '—change_type' flag. The value for this
flag can only be 'p2tr' at the moment. If not specified, we will use
P2WKH addresses for change outputs. Custom accounts don’t support
this flag as they have a unique scope.
2023-02-08 12:35:47 +01:00
ziggie
5edf64f4c5
lncli: add sign/verify message with an address
adds the functionality in the lncli walletkit to sign and verify a
message with a single address. Signing works only with lnd default
wallet account. Verifying signature on messages with external addresses
is also supported.
2023-01-24 09:23:47 +01:00
Oliver Gugger
d960fcd68a
multi: remove gomnd disable directives 2023-01-17 19:43:26 +01:00
Elle Mouton
097b4fae68
lncli+docs: skip gomnd check in switch statement 2023-01-16 09:55:07 +02:00
sputn1ck
9f8fa3d8ed
lncli: more descriptive htlc failure case
This commit clarifies the htlc failure case in the lncli payment
command, by using the cardinal number as well as 'hop' in the
failure message.

[skip ci]
2023-01-12 17:58:15 +01:00
bruwbird
380eb4af83
lncli: fix addinvoice expiry flag comment 2023-01-12 09:17:12 +09:00
Oliver Gugger
3ffd3b2018
Merge pull request #7176 from b-ryan/fix-bumpfee-doc
Fix bumpfee command doc, incorrect reference to pendingsweeps
2023-01-03 11:22:52 +01:00
bitromortac
2d7fda2a41
routerrpc: mark QueryProbability deprecated
We deprecate `QueryProbability`, as it displays the same information as
`QueryMissionControl` less the probability. `QueryRoutes` still contains
the total probability of a route.
2022-12-12 13:23:31 +01:00
ffranr
bab526f655
cmd: add chain subcommand
Chain subcommand includes the commands: getblock, getbestblock, and getblockhash.

This commit removes conflicting neutrino cli commands.
2022-12-07 14:50:15 +00:00
yyforyongyu
57b7eb7814
cli: update listinvoices and listpayments to use the date filter 2022-12-05 20:04:47 +08:00
Oliver Gugger
e7170ef819
Merge pull request #7135 from st4rgut24/revise-addinvoice-help-text
revise help text for addinvoice lncli command
2022-11-18 18:43:58 +01:00
Buck Ryan
d4eb7f2e66 Fix bumpfee command doc, incorrect reference to pendingsweeps
[skip ci]
2022-11-18 09:51:38 -05:00
Antoni Spaanderman
ed112681f5
lncli: Allow lncli to read binary PSBTs from a file
BIP 174 states that PSBTs can be encoded in 2 formats:
- plain text as base64
- in a file as binary

With this change, lncli will also try to read a PSBT as binary
2022-11-17 12:41:46 +01:00
Anton Kovalenko
2700c97d2b cmd/lncli/walletrpc_active.go: avoid nested getContext [skip ci]
Pass down a context from bumpCloseFee to getWaitingCloseCommitments,
to avoid another call to getContext that used to fail with "intercept
already active"
2022-11-17 12:37:15 +03:00
Tugay Emin
3f2079fa39
lncli: strip prefix from pay_req flag 2022-11-15 18:13:29 +02:00
alpeb-btc
eefe1c816e
lnrpc+cmd: clarify docs about addinvoice no-amount hop hints
Add additional comment to `lnclic addinvoice`'s `--private` flag warning
about including a large number of private channel hints when using zero
ammounts.

Also added a comment to the `private` field in the `Invoice` proto
message.
2022-11-12 05:01:10 -05:00
st4rgut24
8d6d1564c0 cli: revise help text for addinvoice lncli command [skip ci] 2022-11-11 14:31:04 -08:00
Slyghtning
46b8de35ac lnrpc+lncli: rename skip_peer_alias_lookup to reflect opt-in behavior 2022-10-27 07:11:19 -04:00
Slyghtning
2db62c18a1 lncli: add flag skip_peer_alias_lookup to fwdinghistory
A new flag skip_peer_alias_lookup is introduced that communicates to the
server if the peer alias lookup per forwarding event should be skipped
in order to improve performance.
2022-10-18 11:08:03 -04:00
Oliver Gugger
d2d3cf3408
Merge pull request #6956 from ellemouton/configureChanReserve
multi: configurable remote chan reserve
2022-10-13 15:39:40 +02:00
Roei Erez
c2ad6444a7
lncli: add remote reserve flag to openchannel 2022-10-07 14:57:05 +02:00
Oliver Gugger
828ce07ca5
cmd/lncli: add p2tr address type to account import 2022-10-03 13:22:32 +02:00
Slyghtning
2a90b2439a lncli: channel fee parameter for openchannel 2022-09-29 08:21:09 -04:00
Elle Mouton
96021fe85b
cmd+docs: fix cap out of range error in profile command
If `lncli profile remove` is called when there are no existing profiles,
it will cause a "cap out of range" panic. So in this commit, a length
check is added to avoid this.
2022-08-31 15:34:39 +02:00
Joost Jager
fe8a1f2f36
lncli: fix sendpayment arg parsing 2022-08-25 13:24:19 +02:00