From 56dce1e995391e48b364faf0ce2cfaa71f1b3827 Mon Sep 17 00:00:00 2001 From: stephhuynh18 Date: Wed, 13 Dec 2023 07:52:27 -0800 Subject: [PATCH] Comment out ipfs storing of proof and commit --- src/services/anchor-service.ts | 38 ++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/src/services/anchor-service.ts b/src/services/anchor-service.ts index 247728642..7efd1fc1d 100644 --- a/src/services/anchor-service.ts +++ b/src/services/anchor-service.ts @@ -497,24 +497,26 @@ export class AnchorService { cid: anchorCid, } - try { - await this.ipfsService.storeRecord(ipfsAnchorCommit) - logger.debug( - `Stored anchor commit for ${candidate.cid} of stream ${candidate.streamId} on IPFS` - ) - await this.ipfsService.publishAnchorCommit(anchorCid, candidate.streamId) - logger.debug( - `Created anchor commit with CID ${anchorCid.toString()} for stream ${candidate.streamId.toString()}` - ) - return anchor - } catch (err) { - const msg = `Error publishing anchor commit of commit ${ - candidate.cid - } for stream ${candidate.streamId.toString()}: ${err}` - logger.err(msg) - Metrics.count(METRIC_NAMES.ERROR_IPFS, 1) - return anchor - } + return anchor + + // try { + // await this.ipfsService.storeRecord(ipfsAnchorCommit) + // logger.debug( + // `Stored anchor commit for ${candidate.cid} of stream ${candidate.streamId} on IPFS` + // ) + // await this.ipfsService.publishAnchorCommit(anchorCid, candidate.streamId) + // logger.debug( + // `Created anchor commit with CID ${anchorCid.toString()} for stream ${candidate.streamId.toString()}` + // ) + // return anchor + // } catch (err) { + // const msg = `Error publishing anchor commit of commit ${ + // candidate.cid + // } for stream ${candidate.streamId.toString()}: ${err}` + // logger.err(msg) + // Metrics.count(METRIC_NAMES.ERROR_IPFS, 1) + // return anchor + // } } /**