We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d8972e0 + e528069 commit 263bf4aCopy full SHA for 263bf4a
1 file changed
src/components/P2P/index.ts
@@ -668,7 +668,7 @@ export class OceanP2P extends EventEmitter {
668
const connection = await this._libp2p.dial(multiaddrs, options)
669
if (connection.remotePeer.toString() !== peerId.toString()) {
670
response.status.httpStatus = 404
671
- response.status.error = `Invalid peer on the other side: ${peerId}`
+ response.status.error = `Invalid peer on the other side: ${connection.remotePeer.toString()}`
672
P2P_LOGGER.error(response.status.error)
673
return response
674
}
0 commit comments