node: fix payout address setting.

This commit is contained in:
Christopher Jeffrey 2016-09-17 18:26:23 -07:00
parent 1096cd0bd9
commit d1cfcca3d9
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -254,7 +254,7 @@ Node.prototype.openWallet = function openWallet(callback) {
// Set the miner payout address if the
// programmer didn't pass one in.
if (self.miner) {
if (!self.miner.address)
if (!self.options.payoutAddress)
self.miner.address = wallet.getAddress();
}