prevent sending messages to self

This commit is contained in:
Matias Alejo Garcia 2014-08-28 18:43:20 -03:00
parent 9888bc9448
commit 2809a145e2
1 changed files with 2 additions and 0 deletions

View File

@ -356,6 +356,8 @@ Network.prototype.send = function(dest, payload, cb) {
var l = dest.length;
var i = 0;
dest.forEach(function(to) {
if (to === this.copayerId)
continue;
//console.log('\t to ' + to);