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) + "%"; operatorRewardStr += QString::number(dmn->nOperatorReward / 100.0, 'f', 2) + "%";
if (dmn->pdmnState->scriptOperatorPayout != CScript()) { if (dmn->pdmnState->scriptOperatorPayout != CScript()) {
CTxDestination dest; CTxDestination operatorDest;
if (ExtractDestination(dmn->pdmnState->scriptOperatorPayout, dest)) { if (ExtractDestination(dmn->pdmnState->scriptOperatorPayout, operatorDest)) {
operatorRewardStr += tr(" to %1").arg(QString::fromStdString(CBitcoinAddress(payeeDest).ToString())); operatorRewardStr += tr(" to %1").arg(QString::fromStdString(CBitcoinAddress(operatorDest).ToString()));
} else { } else {
operatorRewardStr += tr(" to UNKNOWN"); operatorRewardStr += tr(" to UNKNOWN");
} }