fix test 10

This commit is contained in:
Manuel Araoz 2014-08-19 15:35:14 -04:00
commit c4515d644d
2 changed files with 7 additions and 11 deletions

View file

@ -218,10 +218,7 @@ Network.prototype._onMessage = function(enc) {
}
//ensure claimed public key is actually the public key of the peer
//e.g., their public key should hash to be their peerId
if (enc.pubkey !== payload.copayerId) {
console.log(JSON.stringify(enc));
console.log(JSON.stringify(enc.pubkey));
console.log(JSON.stringify(payload.copayerId));
if (sender !== payload.copayerId) {
this._deletePeer(enc.pubkey, 'incorrect pubkey for peerId');
return;
}