Commit Graph
484 Commits
Author SHA1 Message Date
Rafe 62dc1b5323 multi: Update Licenses to 2022 [skip ci] 2022-02-09 00:25:20 +02:00
Oliver Gugger d252653624 lncli: use amount based default routing fee 2022-02-02 17:29:52 +01:00
Oliver Gugger b77c1fb200 Merge pull request #6149 from bhandras/graph_import_rpc
lnd: add `devrpc` sub server and `devrpc.ImportGraph` to import graph dumps
2022-01-28 10:24:59 +01:00
ErikEk ef1eff1058 lnrpc: fix the existing routing fee inaccuracy
When updating the channel routing policy, we encounter an inaccurate
precision error when calculating the routing fee. The issue stems from
the way the IEEE 754 standard works.

The solution here is to add a uint64 parameter (as mentioned in the
issue) and keep the float64 fee_rate parameter but rounding the product
of the base and fee rate.
2022-01-25 15:42:57 -08:00
Andras Banki-Horvath eeea141e01 lnd: allow large GRPC messages 2022-01-24 17:43:00 +01:00
Andras Banki-Horvath 996be217b9 lncli: add (dev only) importgraph 2022-01-24 17:43:00 +01:00
Dimitris Apostolou 530a2059e5 multi: Fix typos [skip ci] 2022-01-24 12:19:02 +02:00
Andras Banki-Horvath ec046aec1b lncli: add force flag to 2022-01-19 17:18:06 +01:00
mads krogh 3821bd2202 lncli: add test for parseChanPoint 2022-01-13 14:35:04 +01:00
mads krogh 807bc0628c lncli: add chan_point flag to closechannel command 2022-01-13 14:35:00 +01:00
Joost Jager f99b472bbb lncli: add lockid parameter to releaseoutput 2022-01-03 18:21:12 +01:00
Joost Jager 0b2388bd4b lncli: add leaseoutput command 2022-01-03 18:21:10 +01:00
Torkel Rogstad 55617f153f lncli: add fish-completion
This is a new, hidden command that generates completions for Fish shell.
This can be piped into `source` or saved in a file to activate (almost)
perfect tab completion.
2021-12-13 11:07:49 +01:00
Torkel Rogstad c64e9c5286 Bump urfave/cli version
urfave/cli added functionality for generating Fish shell tab-completions
a few releases ago. We bump the dependency version to get access to
this functionality.
2021-12-13 11:07:49 +01:00
Matthew Bajorek 6ebc896f6f lncli: Add json flag to trackpayment [skip ci] 2021-12-07 14:04:27 -05:00
Olaoluwa Osuntokun 7d46836e9a cmd/lncli: remove --amp-reuse flag from lncli payinvoice
In this commit, we remove the `--amp-reuse` flag as with the latest
version of lnd that implements properly re-useable AMP invoices, this
flag is no longer needed.
2021-11-16 18:19:03 -08:00
Oliver Gugger f65c259f06 cmd/lncli: fix nil map in payment req [skip ci]
Fixes #5989.
Fixes a panic in lncli if a payment request and the --data flag is used
at the same time.
2021-11-16 13:51:05 +01:00
Olaoluwa Osuntokun e6c65f1cbd Merge pull request #5346 from joostjager/custom-messages
lnrpc+peer: custom peer messages
2021-10-18 19:07:39 -07:00
Joost Jager ade50d0b2c lnrpc: receive custom message 2021-10-15 17:08:55 +02:00
Joost Jager ae959b16ae lnrpc: send custom message 2021-10-15 17:08:53 +02:00
Oliver Gugger 78b700387c cmd/lncli+walletrpc: add createwatchonly command 2021-10-14 15:42:58 +02:00
Torkel Rogstad 4d96f31f59 lncli: take chan_id as uint64 in getchaninfo
When taking in chan_id as a int64, there are some channels that cannot
be givn to lncli because they are out of range for an int64.
2021-10-07 14:57:32 +02:00
Oliver Gugger 0b4e03f5fc multi: add golang 1.17 compatible build tags
With go 1.17 a change to the build flags was implemented:
https://go.googlesource.com/proposal/+/master/design/draft-gobuild.md

The formatter now automatically adds the forward-compatible build tag
format and the linter checks for them, so we need to include them in our
code.
2021-09-29 17:31:37 -07:00
Oliver Gugger f60a1ba0ce Merge pull request #5699 from guggero/lncli-deletepayment
lncli: add deletepayments command
2021-09-27 13:41:41 +02:00
Oliver Gugger 348405994c cmd/lncli: add deletepayments command
To give the CLI user the option to delete a single or multiple payments
in one command, we expose the DeletePayment and DeleteAllPayments
RPCs to the command line as well. Due to the similarity of the two RPCs
we combine them into a single command with multiple flags.

To make the command a bit more safe to run without arguments, we
consciously switch the logic of the RPC flag "failed_payments_only"
which is false by default into a "--include_non_failed" in the CLI which
is false by thefault. So a user running the command without knowing what
they are doing are only deleting failed payments by default, not all of
the payments.
2021-09-27 12:34:53 +02:00
Oliver Gugger 765d043cc0 mod+lncli: remove deprecated package [skip ci]
The use of golang.org/x/crypto/ssh/terminal was marked as deprecated
since that code was moved to its own repo golang.org/x/term.
With this commit we use the new package name directly, which was already
pulled in under its new name anyway.
2021-09-24 09:22:47 +02:00
Oliver Gugger 1d103f1f55 cmd/lncli: group all Mission Control cmds into own file
Having one file per sub command seems a bit too excessive and isn't
really implemented for any of the other commands. So we just group the
Mission Control commands into their own file for now.
2021-09-23 16:59:41 +02:00
Oliver Gugger 28c25d7e9c cmd/lncli: group Mission Control cmds into own category
To make the "Payments" category a bit less overloaded and to move the
Mission Control configuration commands away from the "root" category, we
create the new "Mission Control" category that we move the commands
into. We do this in a single commit so the next one where we move them
into the same file can be a pure code move without any additional
changes.
2021-09-23 16:59:41 +02:00
Oliver Gugger da418ef46b cmd/lncli: move all payment related cmds to single file
With this commit we move all commands that can be found within the
"Payments" category into its own file called cmd_payments.go. The only
exception are the Mission Control related commands which we are going to
move to their own category and file in the next commit.
2021-09-23 16:59:40 +02:00
Oliver Gugger 7b822f41df lncli: add custom caveats to bakemacaroon
With the new condition and checker in place, we can give the end user
the ability to add such a custom caveat to a baked macaroon.
There won't be an RPC counterpart for this operation since all first party
caveats currently are only added on the client side.
2021-09-20 13:05:47 +02:00
Oliver Gugger 045765111a multi: use safe copy for macaroons
Fixes #4383 by adding a new SafeCopyMacaroon function that correctly
clones all caveats and prevents modifications on the copy from affecting
the original.
2021-09-20 13:05:46 +02:00
ErikEk 46e9481e6c routing: invalid channels updatechanpolicy call 2021-09-15 10:20:49 +02:00
Turtle 38c47e86f7 lncli: Add allow external permissions option to bakemacaroons cli call 2021-09-14 16:27:02 -05:00
Oliver Gugger bb079f746b lncli: add batchopenchannel command 2021-09-03 18:39:44 +02:00
Wilmer Paulino 3299af7919 lncli: add channel type flag to openchannel command 2021-08-30 19:17:45 -07:00
Oliver Gugger bbd5980d42 lncli: add extended master root key to create command
To allow users to restore a wallet from an existing extended master root
key, we accept one of three answers when asking for an existing seed.
2021-08-24 10:37:33 +02:00
Oliver Gugger 370d056863 lncli: extract printCipherSeedWords 2021-08-24 10:37:33 +02:00
Oliver Gugger bdae6711af lncli: extract askRecoveryWindow 2021-08-24 10:37:32 +02:00
Joost Jager 925229f9df walletrpc+lncli: allow zero output psbt funding
To support the cpfp fee bump use case where no external outputs are
required.
2021-08-16 08:41:50 +02:00
Stevie Zollo 00f7534e06 docs: fix inconsistent naming of channel.backup [skip ci] 2021-08-12 00:26:53 +02:00
Olaoluwa Osuntokun 90db8de6fe Merge pull request #5460 from ErikEk/lncli-add-command-for-publishtransaction
lncli: add command for publishtransaction
2021-08-06 14:42:49 -07:00
Olaoluwa Osuntokun c235b46e66 cmd/lncli: add new option for easy AMP invoice re-use
In this commit, we add a new option (`--amp-reuse`) that allows for easy
AMP invoice re-use when using either the `sendpayment` command.
2021-08-04 19:17:48 -07:00
Olaoluwa Osuntokun 6e3b33629c cmd/lncli: always parse the pay_addr field for sendpayment
In this commit, we fix a bug that would cause attempts to re-use an AMP
invoice to fail. Without this commit, we would only attempt to parse the
payment addr if no invoice was specified, so a user manually specifying the
pubkey of the detonation. The fix is straight forward: always parse the
`pay_addr` field as the user may be attempting to re-use an AMP invoice w/o
open coding each of the sections.
2021-08-04 19:17:45 -07:00
ErikEk ace615b6e8 lncli: add lncli command for publishtransaction 2021-08-03 04:45:28 +02:00
ErikEk c8fc9b0a85 trivial: missing dots 2021-08-01 02:35:14 +02:00
Olaoluwa Osuntokun 30a0e6c745 Merge pull request #5533 from ErikEk/invoices-return-payment-address-addholdinvoice
invoices: return payment address and add index from addholdinvoice
2021-07-21 16:54:20 -07:00
ErikEk 850dee37ee invoices: return payment address from addholdinvoice 2021-07-19 17:05:03 +02:00
ErikEk 5282b54ad3 invoice: unused error check 2021-07-19 14:24:52 +02:00
ErikEk fec18f4e16 trivial-typo-walletrpc 2021-07-02 01:36:16 +02:00
Olaoluwa Osuntokun 3dc375603f Merge pull request #5441 from joostjager/cli-fix-fund-psbt
lncli: fix psbt fund parameter parsing
2021-06-30 17:56:34 -07:00