Skip to content

Commit d4bbd1e

Browse files
authored
Merge pull request #110 from Impa10r/v5.0.3
Allow capitalized supported_assets tickers in peerlist
2 parents 0545af4 + 1038e80 commit d4bbd1e

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Versions
22

3+
## 5.0.3
4+
5+
- Allow capitalized supported_assets tickers in peerlist
6+
37
## 5.0.2
48

59
- Count only unlocked outputs as available Liquid balance

cmd/psweb/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434

3535
const (
3636
// App VERSION tag
37-
VERSION = "v5.0.2"
37+
VERSION = "v5.0.3"
3838
// Unusable BTC balance
3939
ANCHOR_RESERVE = 25_000
4040
// assume creatediscountct=1 for mainnet in elements.conf

cmd/psweb/utils.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ func timePassedAgo(t time.Time) string {
4040
}
4141

4242
// returns true if the string is present in the array of strings
43+
// searching for both lowercase and capitalized variants!
4344
func stringIsInSlice(whatToFind string, whereToSearch []string) bool {
4445
for _, s := range whereToSearch {
45-
if s == whatToFind {
46+
if s == whatToFind || strings.ToLower(s) == whatToFind {
4647
return true
4748
}
4849
}

0 commit comments

Comments
 (0)