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(){
|
||||
|
||||
if (!(options.address)) {
|
||||
if (options.address == false) {
|
||||
_this.daemon.cmd('getnewaddress', [], function(results) {
|
||||
options.address = results[0].response;
|
||||
finishedCallback();
|
||||
})
|
||||
}
|
||||
|
||||
finishedCallback();
|
||||
|
||||
}).on('connectionFailed', function(error){
|
||||
emitErrorLog('Failed to connect daemon(s): ' + JSON.stringify(error));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user