diff --git a/damus/Nostr/NostrResponse.swift b/damus/Nostr/NostrResponse.swift index 84e60fb2..b821973d 100644 --- a/damus/Nostr/NostrResponse.swift +++ b/damus/Nostr/NostrResponse.swift @@ -69,10 +69,11 @@ enum NostrResponse: Decodable { throw error } self = .ok(cr) + return //ev.pow = count_hash_leading_zero_bits(ev.id) } - throw DecodingError.dataCorrupted(.init(codingPath: [], debugDescription: "expected EVENT or NOTICE, got \(typ)")) + throw DecodingError.dataCorrupted(.init(codingPath: [], debugDescription: "expected EVENT, NOTICE or OK, got \(typ)")) } }