Fixed a issue when user explicity specify the address
This commit is contained in:
parent
6f43936a76
commit
9b4b7dfac5
@ -362,14 +362,13 @@ var pool = module.exports = function pool(options, authorizeFn){
|
|||||||
});
|
});
|
||||||
|
|
||||||
_this.daemon.once('online', function(){
|
_this.daemon.once('online', function(){
|
||||||
|
if (options.address == false) {
|
||||||
if (!(options.address)) {
|
|
||||||
_this.daemon.cmd('getnewaddress', [], function(results) {
|
_this.daemon.cmd('getnewaddress', [], function(results) {
|
||||||
options.address = results[0].response;
|
options.address = results[0].response;
|
||||||
finishedCallback();
|
finishedCallback();
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
finishedCallback();
|
||||||
|
|
||||||
}).on('connectionFailed', function(error){
|
}).on('connectionFailed', function(error){
|
||||||
emitErrorLog('Failed to connect daemon(s): ' + JSON.stringify(error));
|
emitErrorLog('Failed to connect daemon(s): ' + JSON.stringify(error));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user