prevent sending messages to self
This commit is contained in:
parent
9888bc9448
commit
2809a145e2
1 changed files with 2 additions and 0 deletions
|
|
@ -356,6 +356,8 @@ Network.prototype.send = function(dest, payload, cb) {
|
||||||
var l = dest.length;
|
var l = dest.length;
|
||||||
var i = 0;
|
var i = 0;
|
||||||
dest.forEach(function(to) {
|
dest.forEach(function(to) {
|
||||||
|
if (to === this.copayerId)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
|
||||||
//console.log('\t to ' + to);
|
//console.log('\t to ' + to);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue