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
This commit is contained in:
Alexander Block 2018-12-19 08:37:37 +01:00 committed by GitHub
parent 1908637228
commit 858bb52ad5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");
}