node: fix payout address setting.
This commit is contained in:
parent
1096cd0bd9
commit
d1cfcca3d9
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user