mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-21 22:54:48 +01:00
Fix typo
This commit is contained in:
@@ -85,14 +85,14 @@ func (controller *HomeController) Home(c echo.Context) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
// See original code: https://github.com/BlueWallet/LndHub/blob/master/controllers/website.js#L32
|
// See original code: https://github.com/BlueWallet/LndHub/blob/master/controllers/website.js#L32
|
||||||
maxChanCapicity := -1
|
maxChanCapacity := -1
|
||||||
for _, ch := range channels.Channels {
|
for _, ch := range channels.Channels {
|
||||||
maxChanCapicity = Max(maxChanCapicity, int(ch.Capacity))
|
maxChanCapacity = Max(maxChanCapacity, int(ch.Capacity))
|
||||||
}
|
}
|
||||||
channelSlice := []Channel{}
|
channelSlice := []Channel{}
|
||||||
for _, ch := range channels.Channels {
|
for _, ch := range channels.Channels {
|
||||||
|
|
||||||
magic := maxChanCapicity / 100
|
magic := maxChanCapacity / 100
|
||||||
channelSlice = append(channelSlice, Channel{
|
channelSlice = append(channelSlice, Channel{
|
||||||
Name: pubkeyToName[ch.RemotePubkey],
|
Name: pubkeyToName[ch.RemotePubkey],
|
||||||
RemotePubkey: ch.RemotePubkey,
|
RemotePubkey: ch.RemotePubkey,
|
||||||
|
|||||||
Reference in New Issue
Block a user