multi: formatting and comment fixes

This commit is contained in:
Oliver Gugger committed 2022-02-10 11:02:02 +01:00
1 parent ffee7d1bcf
commit 895a2e497b
160 files changed
+159 -260

No files matched your search

+2 -1
View File
@@ -63,7 +63,7 @@ Signed base64 encoded PSBT or hex encoded raw wire TX (or path to text file): `
channelTypeAnchors = "anchors"
)
// TODO(roasbeef): change default number of confirmations
// TODO(roasbeef): change default number of confirmations.
var openChannelCommand = cli.Command{
Name: "openchannel",
Category: "Channels",
@@ -289,6 +289,7 @@ func openChannel(ctx *cli.Context) error {
_, err := client.ConnectPeer(ctxc, req)
if err != nil &&
!strings.Contains(err.Error(), "already connected") {
return err
}
}
+3 -2
View File
@@ -201,7 +201,6 @@ var sendPaymentCommand = cli.Command{
// default.
func retrieveFeeLimit(ctx *cli.Context, amt int64) (int64, error) {
switch {
case ctx.IsSet("fee_limit") && ctx.IsSet("fee_limit_percent"):
return 0, fmt.Errorf("either fee_limit or fee_limit_percent " +
"can be set, but not both")
@@ -404,6 +403,7 @@ func sendPayment(ctx *cli.Context) error {
func sendPaymentRequest(ctx *cli.Context,
req *routerrpc.SendPaymentRequest) error {
ctxc := getContext()
conn := getClientConn(ctx, false)
@@ -702,6 +702,7 @@ func formatMsat(amt int64) string {
// formatPayment formats the payment state as an ascii table.
func formatPayment(ctxc context.Context, payment *lnrpc.Payment,
aliases *aliasCache) string {
t := table.NewWriter()
// Build table header.
@@ -1521,7 +1522,7 @@ func deletePayments(ctx *cli.Context) error {
return nil
}
// ESC is the ASCII code for escape character
// ESC is the ASCII code for escape character.
const ESC = 27
// clearCode defines a terminal escape code to clear the currently line and move
-1
View File
@@ -149,7 +149,6 @@ func create(ctx *cli.Context) error {
warningLoop:
for {
fmt.Println()
fmt.Printf("WARNING: You are attempting to restore from a " +
"static channel backup (SCB) file.\nThis action will CLOSE " +