From d1cfcca3d905ec3ea5436ac3cdf30d4dadc0fb45 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 17 Sep 2016 18:26:23 -0700 Subject: [PATCH] node: fix payout address setting. --- lib/node/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node/node.js b/lib/node/node.js index 8bf9c96f..d44fe122 100644 --- a/lib/node/node.js +++ b/lib/node/node.js @@ -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(); }