This commit is contained in:
Christopher Jeffrey 2016-05-23 06:01:52 -07:00
parent e8cf4ea8be
commit 499d0c6a7e
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 8 additions and 2 deletions

View File

@ -260,12 +260,15 @@ Fullnode.prototype.sendTX = function sendTX(item, wait, callback) {
if (err)
return callback(err);
if (!self.pool.options.selfish)
item = item.toInv();
if (!wait) {
self.pool.broadcast(item.toInv());
self.pool.broadcast(item);
return callback();
}
return self.pool.broadcast(item.toInv(), callback);
return self.pool.broadcast(item, callback);
});
};

View File

@ -2139,6 +2139,9 @@ Pool.prototype.getIP2 = function getIP2(callback) {
var request = require('./http/request');
var ip;
if (utils.isBrowser)
return callback(new Error('Could not find IP.'));
request({
method: 'GET',
uri: 'http://checkip.dyndns.org',