mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-09-17 19:13:56 +02:00
Revert "nip13: crazier and more fun and hopefully slightly more performant nonce encoding."
This reverts commit edbbd6df44
.
This commit is contained in:
@@ -80,7 +80,7 @@ func Generate(event *nostr.Event, targetDifficulty int, timeout time.Duration) (
|
||||
start := time.Now()
|
||||
for {
|
||||
nonce++
|
||||
tag[1] = uintToStringCrazy(nonce)
|
||||
tag[1] = strconv.FormatUint(nonce, 10)
|
||||
if Difficulty(event.GetID()) >= targetDifficulty {
|
||||
return event, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user