mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-08-27 06:01:24 +02:00
tests run (but not pass) and fine-tuning (specially tag filters) on filter_easyjson.go
This commit is contained in:
@@ -64,7 +64,7 @@ func Generate(event *nostr.Event, targetDifficulty int, timeout time.Duration) (
|
||||
for {
|
||||
nonce++
|
||||
tag[1] = strconv.FormatUint(nonce, 10)
|
||||
event.CreatedAt = time.Now()
|
||||
event.CreatedAt = nostr.Now()
|
||||
if Difficulty(event.GetID()) >= targetDifficulty {
|
||||
return event, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user