@@ -2139,7 +2139,7 @@ export class GossipSub extends EventEmitter<GossipsubEvents> implements PubSub<G
2139
2139
*
2140
2140
* This should only be called once per message.
2141
2141
*/
2142
- reportMessageValidationResult ( msgId : MsgIdStr , propagationSource : PeerId , acceptance : TopicValidatorResult ) : void {
2142
+ reportMessageValidationResult ( msgId : MsgIdStr , propagationSource : PeerIdStr , acceptance : TopicValidatorResult ) : void {
2143
2143
let cacheEntry : MessageCacheRecord | null
2144
2144
2145
2145
if ( acceptance === TopicValidatorResult . Accept ) {
@@ -2148,9 +2148,9 @@ export class GossipSub extends EventEmitter<GossipsubEvents> implements PubSub<G
2148
2148
if ( cacheEntry != null ) {
2149
2149
const { message : rawMsg , originatingPeers } = cacheEntry
2150
2150
// message is fully validated inform peer_score
2151
- this . score . deliverMessage ( propagationSource . toString ( ) , msgId , rawMsg . topic )
2151
+ this . score . deliverMessage ( propagationSource , msgId , rawMsg . topic )
2152
2152
2153
- this . forwardMessage ( msgId , cacheEntry . message , propagationSource . toString ( ) , originatingPeers )
2153
+ this . forwardMessage ( msgId , cacheEntry . message , propagationSource , originatingPeers )
2154
2154
}
2155
2155
// else, Message not in cache. Ignoring forwarding
2156
2156
}
@@ -2165,7 +2165,7 @@ export class GossipSub extends EventEmitter<GossipsubEvents> implements PubSub<G
2165
2165
2166
2166
// Tell peer_score about reject
2167
2167
// Reject the original source, and any duplicates we've seen from other peers.
2168
- this . score . rejectMessage ( propagationSource . toString ( ) , msgId , rawMsg . topic , rejectReason )
2168
+ this . score . rejectMessage ( propagationSource , msgId , rawMsg . topic , rejectReason )
2169
2169
for ( const peer of originatingPeers ) {
2170
2170
this . score . rejectMessage ( peer , msgId , rawMsg . topic , rejectReason )
2171
2171
}
0 commit comments