Skip to content

Commit

Permalink
correctly show op_return outputs in multisig dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
backpacker69 committed Mar 15, 2019
1 parent 211a111 commit dd353c8
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/qt/multisigdialog.cpp
Expand Up @@ -331,13 +331,21 @@ void MultisigDialog::on_transaction_textChanged()
index = -1;
BOOST_FOREACH(const CTxOut& txout, tx.vout)
{
CScript scriptPubKey = txout.scriptPubKey;
CTxDestination addr;
ExtractDestination(scriptPubKey, addr);
CBitcoinAddress address(addr);
SendCoinsRecipient recipient;
recipient.address = QString(address.ToString().c_str());
recipient.amount = txout.nValue;
if(txout.nValue > 0)
{
CScript scriptPubKey = txout.scriptPubKey;
CTxDestination addr;
ExtractDestination(scriptPubKey, addr);
CBitcoinAddress address(addr);
recipient.address = QString(address.ToString().c_str());
recipient.amount = txout.nValue;
}
else
{
recipient.address = QString(txout.scriptPubKey.ToString().c_str());
recipient.amount = 0;
}
addOutput();
index++;
SendCoinsEntry *entry = qobject_cast<SendCoinsEntry *>(ui->outputs->itemAt(index)->widget());
Expand Down

0 comments on commit dd353c8

Please sign in to comment.