minor.
This commit is contained in:
parent
e8cf4ea8be
commit
499d0c6a7e
@ -260,12 +260,15 @@ Fullnode.prototype.sendTX = function sendTX(item, wait, callback) {
|
|||||||
if (err)
|
if (err)
|
||||||
return callback(err);
|
return callback(err);
|
||||||
|
|
||||||
|
if (!self.pool.options.selfish)
|
||||||
|
item = item.toInv();
|
||||||
|
|
||||||
if (!wait) {
|
if (!wait) {
|
||||||
self.pool.broadcast(item.toInv());
|
self.pool.broadcast(item);
|
||||||
return callback();
|
return callback();
|
||||||
}
|
}
|
||||||
|
|
||||||
return self.pool.broadcast(item.toInv(), callback);
|
return self.pool.broadcast(item, callback);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -2139,6 +2139,9 @@ Pool.prototype.getIP2 = function getIP2(callback) {
|
|||||||
var request = require('./http/request');
|
var request = require('./http/request');
|
||||||
var ip;
|
var ip;
|
||||||
|
|
||||||
|
if (utils.isBrowser)
|
||||||
|
return callback(new Error('Could not find IP.'));
|
||||||
|
|
||||||
request({
|
request({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
uri: 'http://checkip.dyndns.org',
|
uri: 'http://checkip.dyndns.org',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user