From 128a4130224d150044703b4266ab95d7e20f60cf Mon Sep 17 00:00:00 2001 From: Wietse Wind Date: Mon, 2 Oct 2023 00:45:14 +0200 Subject: [PATCH] Rm done comments --- index.mjs | 1 - lib/onTransaction.mjs | 6 ------ 2 files changed, 7 deletions(-) diff --git a/index.mjs b/index.mjs index b7bae4d..92395be 100644 --- a/index.mjs +++ b/index.mjs @@ -17,7 +17,6 @@ process.env.NODES.split(',').map(h => h.trim()) /** * TODO: Auto disconnect if no messages for X * TODO: Generate xPOPs for matching transactions - * based on FIELDSREQUIRED="Fee,OperationLimit" */ c.send({ command: "subscribe", streams: [ diff --git a/lib/onTransaction.mjs b/lib/onTransaction.mjs index de7ce36..838d1ce 100644 --- a/lib/onTransaction.mjs +++ b/lib/onTransaction.mjs @@ -16,12 +16,6 @@ const fieldsRequired = fields.length === 1 && fields[0] === '' const hasRequiredFields = tx => fieldsRequired.map(f => Object.keys(tx).includes(f)).every(f => !!f) -/** - * TODO: FIELDSREQUIRED ENV VAR (so: decode tx) - if empty store all - * » Store transactions - * » Generate xPOP - */ - const onTransaction = async ({ networkId, transaction,