Skip to content

Commit

Permalink
feat: tracer to track delivered message if duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Dec 14, 2022
1 parent 23d49be commit a249d0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,7 @@ export class GossipSub extends EventEmitter<GossipsubEvents> implements PubSub<G
case MessageStatus.duplicate:
// Report the duplicate
this.score.duplicateMessage(from.toString(), validationResult.msgIdStr, rpcMsg.topic)
this.gossipTracer.deliverMessage(validationResult.msgIdStr)
this.mcache.observeDuplicate(validationResult.msgIdStr, from.toString())
return

Expand Down

0 comments on commit a249d0e

Please sign in to comment.