From 858bb52ad53ba547393eee9d0477aadfbb835eca Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Wed, 19 Dec 2018 08:37:37 +0100 Subject: [PATCH] Show correct operator payee address in DIP3 MN list GUI (#2563) * Show correct operator payee address in DIP3 MN list GUI * Rename dest to operatorDest --- src/qt/masternodelist.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qt/masternodelist.cpp b/src/qt/masternodelist.cpp index 3fc20c6ba..fba28e421 100644 --- a/src/qt/masternodelist.cpp +++ b/src/qt/masternodelist.cpp @@ -466,9 +466,9 @@ void MasternodeList::updateDIP3List() operatorRewardStr += QString::number(dmn->nOperatorReward / 100.0, 'f', 2) + "%"; if (dmn->pdmnState->scriptOperatorPayout != CScript()) { - CTxDestination dest; - if (ExtractDestination(dmn->pdmnState->scriptOperatorPayout, dest)) { - operatorRewardStr += tr(" to %1").arg(QString::fromStdString(CBitcoinAddress(payeeDest).ToString())); + CTxDestination operatorDest; + if (ExtractDestination(dmn->pdmnState->scriptOperatorPayout, operatorDest)) { + operatorRewardStr += tr(" to %1").arg(QString::fromStdString(CBitcoinAddress(operatorDest).ToString())); } else { operatorRewardStr += tr(" to UNKNOWN"); }