forked from Ailur/burgernotes-server
Fixed typo in hashcash
This commit is contained in:
parent
1ae5222e33
commit
7d33099334
2
main.go
2
main.go
|
@ -403,7 +403,7 @@ func main() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
pow := hashcash.New(20, 16, "I love burgernotes!")
|
pow := hashcash.New(20, 16, "I love Burgernotes!")
|
||||||
ok = pow.Check(stamp)
|
ok = pow.Check(stamp)
|
||||||
if !ok {
|
if !ok {
|
||||||
c.JSON(400, gin.H{"error": "Invalid hashcash stamp"})
|
c.JSON(400, gin.H{"error": "Invalid hashcash stamp"})
|
||||||
|
|
Loading…
Reference in New Issue