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 + // } } /**