Skip to content

Commit

Permalink
UI: Fix for pending transactions not updating trade or tx history
Browse files Browse the repository at this point in the history
PendingAdd not called until sent dialog acknowledged, but signal for BTC balance change fires immediately thus the tx is not yet in the pending map & doesn't get added to history
  • Loading branch information
zathras-crypto committed May 20, 2015
1 parent 6503b60 commit c171e02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/qt/metadexdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,8 @@ void MetaDExDialog::sendTrade(bool sell)
if (!autoCommit) {
PopulateSimpleDialog(rawHex, "Raw Hex (auto commit is disabled)", "Raw transaction hex");
} else {
PopulateTXSentDialog(txid.GetHex());
PendingAdd(txid, strFromAddress, "", MSC_TYPE_METADEX, propertyIdSell, amountSell, propertyIdDes, amountDes, 1);
PopulateTXSentDialog(txid.GetHex());
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/qt/sendmpdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ void SendMPDialog::sendMPTransaction()
if (!autoCommit) {
PopulateSimpleDialog(rawHex, "Raw Hex (auto commit is disabled)", "Raw transaction hex");
} else {
PopulateTXSentDialog(txid.GetHex());
PendingAdd(txid, fromAddress.ToString(), refAddress.ToString(), MSC_TYPE_SIMPLE_SEND, propertyId, sendAmount);
PopulateTXSentDialog(txid.GetHex());
}
}
clearFields();
Expand Down

0 comments on commit c171e02

Please sign in to comment.