Skip to content

Commit

Permalink
Fix coinstake address display
Browse files Browse the repository at this point in the history
  • Loading branch information
timemarkovqtum committed Apr 15, 2024
1 parent 59cfe17 commit a8c86c0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/qt/coincontroldialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ void CoinControlDialog::updateView()
// address
CTxDestination outputAddress;
QString sAddress = "";
if(ExtractDestination(out.txout.scriptPubKey, outputAddress))
if(ExtractDestination(out.txout.scriptPubKey, outputAddress, nullptr, true))
{
sAddress = QString::fromStdString(EncodeDestination(outputAddress));

Expand Down
2 changes: 1 addition & 1 deletion src/qt/paymentserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const QString BITCOIN_IPC_PREFIX("qtum:");
//
static QString ipcServerName()
{
QString name("QtumQt");
QString name("QtumQt");

// Append a simple hash of the datadir
// Note that gArgs.GetDataDirNet() returns a different path
Expand Down
2 changes: 1 addition & 1 deletion src/qt/transactionrecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const interface
bool involvesWatchAddress = false;
isminetype fAllFromMe = ISMINE_SPENDABLE;
bool any_from_me = false;
if (wtx.is_coinbase) {
if (wtx.is_coinbase || wtx.is_coinstake) {
fAllFromMe = ISMINE_NO;
} else {
for (const isminetype mine : wtx.txin_is_mine)
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/interfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ WalletTx MakeWalletTx(CWallet& wallet, const CWalletTx& wtx)
result.txout_is_mine.emplace_back(wallet.IsMine(txout));
result.txout_is_change.push_back(OutputIsChange(wallet, txout));
result.txout_address.emplace_back();
result.txout_address_is_mine.emplace_back(ExtractDestination(txout.scriptPubKey, result.txout_address.back()) ?
result.txout_address_is_mine.emplace_back(ExtractDestination(txout.scriptPubKey, result.txout_address.back(), nullptr, true) ?
wallet.IsMine(result.txout_address.back()) :
ISMINE_NO);
}
Expand Down

0 comments on commit a8c86c0

Please sign in to comment.