Skip to content

Commit

Permalink
Merge pull request #96 from Impa10r/v1.7.5
Browse files Browse the repository at this point in the history
v1.7.5
  • Loading branch information
Impa10r authored Dec 28, 2024
2 parents 749ba15 + f969af3 commit d178798
Show file tree
Hide file tree
Showing 9 changed files with 475 additions and 279 deletions.
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"buildFlags": "-tags lnd",
"program": "${workspaceFolder}/cmd/psweb/",
"showLog": false,
"envFile": "${workspaceFolder}/.env",
//"envFile": "${workspaceFolder}/.env",
//"args": ["-datadir", "/home/vlad/.peerswap_t4"]
"args": ["-datadir", "/home/vlad/.peerswap2"]
//"args": ["-datadir", "/home/vlad/.peerswap2"]
},
// sudo bash -c 'echo 0 > /proc/sys/kernel/yama/ptrace_scope'
// go install -tags cln -gcflags 'all=-N -l' ./cmd/psweb
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Versions

## 1.7.5

- CLN: allow -developer flag
- Refactor to use thread-safe maps

## 1.7.4

- Bump Go version to v1.22.2
Expand Down
2 changes: 1 addition & 1 deletion cmd/psweb/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ func afHandler(w http.ResponseWriter, r *http.Request) {
}

daysNoFlow := 999
ts, ok := ln.LastForwardTS[ch.ChannelId]
ts, ok := ln.LastForwardTS.Read(ch.ChannelId)
if ok {
daysNoFlow = int(currentTime.Sub(time.Unix(ts, 0)).Hours() / 24)
}
Expand Down
Loading

0 comments on commit d178798

Please sign in to comment.