nip13: crazier and more fun and hopefully slightly more performant nonce encoding.
This commit is contained in:
+1
-1
@@ -80,7 +80,7 @@ func Generate(event *nostr.Event, targetDifficulty int, timeout time.Duration) (
|
||||
start := time.Now()
|
||||
for {
|
||||
nonce++
|
||||
tag[1] = strconv.FormatUint(nonce, 10)
|
||||
tag[1] = uintToStringCrazy(nonce)
|
||||
if Difficulty(event.GetID()) >= targetDifficulty {
|
||||
return event, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user