|
@ -142,7 +142,7 @@ class HistoryList(MyTreeWidget): |
|
|
height, conf, timestamp = self.wallet.get_tx_height(tx_hash) |
|
|
height, conf, timestamp = self.wallet.get_tx_height(tx_hash) |
|
|
tx = self.wallet.transactions.get(tx_hash) |
|
|
tx = self.wallet.transactions.get(tx_hash) |
|
|
is_relevant, is_mine, v, fee = self.wallet.get_wallet_delta(tx) |
|
|
is_relevant, is_mine, v, fee = self.wallet.get_wallet_delta(tx) |
|
|
rbf = is_mine and height <=0 and tx and not tx.is_final() |
|
|
is_unconfirmed = height <= 0 |
|
|
menu = QMenu() |
|
|
menu = QMenu() |
|
|
|
|
|
|
|
|
menu.addAction(_("Copy %s")%column_title, lambda: self.parent.app.clipboard().setText(column_data)) |
|
|
menu.addAction(_("Copy %s")%column_title, lambda: self.parent.app.clipboard().setText(column_data)) |
|
@ -150,8 +150,14 @@ class HistoryList(MyTreeWidget): |
|
|
menu.addAction(_("Edit %s")%column_title, lambda: self.editItem(item, column)) |
|
|
menu.addAction(_("Edit %s")%column_title, lambda: self.editItem(item, column)) |
|
|
|
|
|
|
|
|
menu.addAction(_("Details"), lambda: self.parent.show_transaction(tx)) |
|
|
menu.addAction(_("Details"), lambda: self.parent.show_transaction(tx)) |
|
|
if rbf: |
|
|
if is_unconfirmed and tx: |
|
|
menu.addAction(_("Increase fee"), lambda: self.parent.bump_fee_dialog(tx)) |
|
|
rbf = is_mine and not tx.is_final() |
|
|
|
|
|
if rbf: |
|
|
|
|
|
menu.addAction(_("Increase fee"), lambda: self.parent.bump_fee_dialog(tx)) |
|
|
|
|
|
else: |
|
|
|
|
|
child_tx = self.wallet.cpfp(tx, 0) |
|
|
|
|
|
if child_tx: |
|
|
|
|
|
menu.addAction(_("Child pays for parent"), lambda: self.parent.cpfp(tx, child_tx)) |
|
|
if tx_URL: |
|
|
if tx_URL: |
|
|
menu.addAction(_("View on block explorer"), lambda: webbrowser.open(tx_URL)) |
|
|
menu.addAction(_("View on block explorer"), lambda: webbrowser.open(tx_URL)) |
|
|
menu.exec_(self.viewport().mapToGlobal(position)) |
|
|
menu.exec_(self.viewport().mapToGlobal(position)) |
|
|