History: don't allow rebroadcasting incoming transaction

This commit is contained in:
tobtoht 2020-12-23 00:32:21 +01:00
parent 45b3f1ebde
commit 677f7df376
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -55,7 +55,7 @@ void HistoryWidget::showContextMenu(const QPoint &point) {
unconfirmed = tInfo.isFailed() || tInfo.isPending();
});
if (AppContext::txCache.contains(txid) && unconfirmed) {
if (AppContext::txCache.contains(txid) && unconfirmed && direction != TransactionInfo::Direction_In) {
menu.addAction(QIcon(":/assets/images/info.png"), "Resend transaction", this, &HistoryWidget::onResendTransaction);
}