Skip to content

Commit 85440eb

Browse files
authored
Merge pull request #211 from prusnak/typo
Fix typo and whitespace
2 parents 152373e + 5ac1f8d commit 85440eb

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<div align="center">
2-
<img alt="LNDHub.go" src="static/img/logo.png" width="400">
3-
</div>
1+
# LndHub.go
42

5-
# Wrapper for Lightning Network Daemon (lnd) ⚡
3+
![LndHub.go](static/img/logo.png)
4+
5+
Wrapper for Lightning Network Daemon (lnd) ⚡
66

77
It provides separate accounts with minimum trust for end users.
88
Live deployment at [ln.getalby.com](https://ln.getalby.com).

controllers/home.ctrl.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ func (controller *HomeController) Home(c echo.Context) error {
8585
return err
8686
}
8787
// See original code: https://github.com/BlueWallet/LndHub/blob/master/controllers/website.js#L32
88-
maxChanCapicity := -1
88+
maxChanCapacity := -1
8989
for _, ch := range channels.Channels {
90-
maxChanCapicity = Max(maxChanCapicity, int(ch.Capacity))
90+
maxChanCapacity = Max(maxChanCapacity, int(ch.Capacity))
9191
}
9292
channelSlice := []Channel{}
9393
for _, ch := range channels.Channels {
9494

95-
magic := maxChanCapicity / 100
95+
magic := maxChanCapacity / 100
9696
channelSlice = append(channelSlice, Channel{
9797
Name: pubkeyToName[ch.RemotePubkey],
9898
RemotePubkey: ch.RemotePubkey,
@@ -117,7 +117,7 @@ func (controller *HomeController) Home(c echo.Context) error {
117117
if err != nil {
118118
return err
119119
}
120-
c.Response().Header().Set(echo.HeaderCacheControl, "public, max-age=300, stale-if-error=21600") // cache for 5 minutes or if error for 6 hours max
120+
c.Response().Header().Set(echo.HeaderCacheControl, "public, max-age=300, stale-if-error=21600") // cache for 5 minutes or if error for 6 hours max
121121
return c.HTMLBlob(http.StatusOK, buf.Bytes())
122122
}
123123

docs/docs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ var SwaggerInfo = &swag.Spec{
720720
Host: "",
721721
BasePath: "/",
722722
Schemes: []string{"https", "http"},
723-
Title: "LNDhub.go",
723+
Title: "LndHub.go",
724724
Description: "Accounting wrapper for the Lightning Network providing separate accounts for end-users.",
725725
InfoInstanceName: "swagger",
726726
SwaggerTemplate: docTemplate,

docs/swagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"swagger": "2.0",
77
"info": {
88
"description": "Accounting wrapper for the Lightning Network providing separate accounts for end-users.",
9-
"title": "LNDhub.go",
9+
"title": "LndHub.go",
1010
"contact": {
1111
"name": "Alby",
1212
"url": "https://getalby.com",

docs/swagger.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ info:
180180
license:
181181
name: GNU GPLv3
182182
url: https://www.gnu.org/licenses/gpl-3.0.en.html
183-
title: LNDhub.go
183+
title: LndHub.go
184184
version: 0.9.0
185185
paths:
186186
/auth:

lib/service/invoicesubscription.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func (svc *LndhubService) createKeysendInvoice(ctx context.Context, rawInvoice *
188188
}
189189
userLoginCustomRecord := rawInvoice.Htlcs[0].CustomRecords[TLV_WALLET_ID]
190190
//Find user. Our convention here is that the TLV
191-
//record should contain the user's LNDhub login string
191+
//record should contain the user's login string
192192
//(LND already returns the decoded string so there is no need to hex-decode it)
193193
user, err := svc.FindUserByLogin(ctx, string(userLoginCustomRecord))
194194
if err != nil {

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ var indexHtml string
4242
//go:embed static/*
4343
var staticContent embed.FS
4444

45-
// @title LNDhub.go
45+
// @title LndHub.go
4646
// @version 0.9.0
4747
// @description Accounting wrapper for the Lightning Network providing separate accounts for end-users.
4848

notes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Rebuilding LndHub
22

3-
Goal of this project is to build a simple accounting system with a [LNDHub](https://github.com/BlueWallet/LndHub) compatible API that focusses on simplicity, maintainability and ease of deployment.
3+
Goal of this project is to build a simple accounting system with a [LndHub](https://github.com/BlueWallet/LndHub) compatible API that focusses on simplicity, maintainability and ease of deployment.
44

5-
[LNDHub](https://github.com/BlueWallet/LndHub) is a simple accounting system for LND. It allows users to send and receive lightning payments. Through the API people can access funds through a shared lightning node. (see overview.png diagram)
5+
[LndHub](https://github.com/BlueWallet/LndHub) is a simple accounting system for LND. It allows users to send and receive lightning payments. Through the API people can access funds through a shared lightning node. (see overview.png diagram)
66

77
Some design goals:
88

@@ -17,7 +17,7 @@ Some design goals:
1717

1818
### API endpoints
1919

20-
See [LNDHub API](https://github.com/BlueWallet/LndHub/blob/master/controllers/api.js) for enpoints and request/response signatures.
20+
See [LndHub API](https://github.com/BlueWallet/LndHub/blob/master/controllers/api.js) for enpoints and request/response signatures.
2121

2222
#### /create
2323
Create a new user account
@@ -59,4 +59,4 @@ Node information
5959

6060
### Links
6161

62-
* [LNDHub](https://github.com/BlueWallet/LndHub) - Current nodejs implementation
62+
* [LndHub](https://github.com/BlueWallet/LndHub) - Current nodejs implementation

static/img/logo.png

-5.39 KB
Loading

0 commit comments

Comments
 (0)