Skip to content

Commit

Permalink
chore: Update log message to include the CIDs of both the commit bein…
Browse files Browse the repository at this point in the history
…g anchored and the anchor commit (#1184)
  • Loading branch information
stbrody authored Feb 22, 2024
1 parent ff035d5 commit 0a62aee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions src/services/anchor-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -503,12 +503,9 @@ export class AnchorService {

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()}`
`Created anchor commit with CID ${anchorCid} for commit ${candidate.cid} of stream ${candidate.streamId}`
)
return anchor
} catch (err) {
Expand Down

0 comments on commit 0a62aee

Please sign in to comment.