diff --git a/src/controllers/nostr/relay.ts b/src/controllers/nostr/relay.ts index 56b6e512..f6952221 100644 --- a/src/controllers/nostr/relay.ts +++ b/src/controllers/nostr/relay.ts @@ -85,6 +85,7 @@ function connectStream(socket: WebSocket) { send(['OK', event.id, false, e.message]); } else { send(['OK', event.id, false, 'error: something went wrong']); + console.error(e); } } } diff --git a/src/pipeline/DVM.ts b/src/pipeline/DVM.ts index 8f225192..decfd0f8 100644 --- a/src/pipeline/DVM.ts +++ b/src/pipeline/DVM.ts @@ -20,11 +20,6 @@ export class DVM { static async nameRegistration(event: NostrEvent): Promise { const admin = await new AdminSigner().getPublicKey(); - - if (event.kind !== 5950 && event.pubkey !== admin) { - throw new Error('Only NIP-05 job requests are permitted'); - } - const input = event.tags.find(([name]) => name === 'i')?.[1]; const tagged = !!event.tags.find(([name, value]) => name === 'p' && value === admin);