Commit Graph

100 Commits

Author SHA1 Message Date
ThomasV 1d84029173 input_script: return txin.scriptSig if available. replace txin.is_coinbase with type. fixes #2321 2017-03-21 09:08:16 +01:00
ThomasV 0a8f9d49ea add label for size in tx window. use base_unit for fee 2016-12-17 17:28:19 +01:00
neocogent eb41e23f39 Add more fee info to tx details, update tx estimated_size method. 2016-12-09 12:36:57 +07:00
ThomasV 23c8684448 qt: show both sign and broadcast buttons in tx dialog 2016-10-22 00:32:19 +02:00
ThomasV 3062a62cf9 fix #1989 2016-10-21 11:35:26 +02:00
ThomasV c934c5d55c tx window can show amount even if we are not synchronized 2016-09-28 08:45:22 +02:00
ThomasV b6393cbdf2 display 'low fee' in tx dialog 2016-06-15 13:31:24 +02:00
ThomasV 9896718f09 get_tx_info: fix types 2016-06-09 18:10:13 +02:00
ThomasV 5af7139598 kivy: handle 'verified' event 2016-06-08 12:55:42 +02:00
ThomasV 7f7aa97e2e tx dialog: fix confirmation time estimate 2016-06-08 11:22:58 +02:00
ThomasV b94a7920af factorize code used for tx dialogs 2016-06-08 11:06:51 +02:00
ThomasV f2d2d61894 add expected confirmation time to tx dialog 2016-06-07 17:12:31 +02:00
ThomasV bdb4958a34 for unconfirmed transactions, show fee sent by server 2016-06-02 11:39:18 +02:00
ThomasV 0843aaafb5 gat_wallet_delta: reverse sign of returned fee 2016-06-02 11:30:39 +02:00
ThomasV 403fbdd39e rename is_send -> is_mine 2016-06-02 10:40:16 +02:00
ThomasV bce42cb496 minor fix 2016-05-30 18:09:32 +02:00
ThomasV 1a46a795a5 detect non-final transactions, and transactions with unconfirmed inputs 2016-05-29 19:53:04 +02:00
Neil Booth 467b0c0973 tx_dialog: make a deep copy of the tx
I've confirmed this
Fixes #1690
2016-02-28 19:10:09 +09:00
ThomasV 305843999e Relicensing 2016-02-24 10:20:30 +01:00
ThomasV cc526a8734 tx dialog: don't use tx.raw 2016-02-12 15:20:34 +01:00
Neil Booth c0295c767e tx_dialog: prompt if signed but not saved
I've lost a signed TX one too many times now
2016-01-25 19:26:02 +09:00
Neil Booth 38a8385287 Remove stale comment 2016-01-23 16:52:24 +09:00
Neil Booth f92843bb10 Top level window fix for tx_dialog and h/w wallets 2016-01-23 16:06:32 +09:00
ThomasV d200b236ae replace tx.input, tx.output by methods, so that deserialize calls are encapsulated 2016-01-17 15:04:11 +01:00
Neil Booth d9a84875dc Fix prior; keep tx dialog as top-level window 2016-01-17 13:41:09 +09:00
Neil Booth d9a13a5dd1 transaction_dialog: don't override base class
Rename parent to main_window.  Make the main window our parent.
2016-01-17 13:36:40 +09:00
Neil Booth 8f91af28a5 More cleanup of WaitingDialog
Simplify its interface
2015-12-26 11:18:32 +09:00
Neil Booth 6f4d4b9a1e Modality and centring fixes for QR codes 2015-12-23 18:42:01 +09:00
Neil Booth 9484b6371f More modality fixes and cleanups 2015-12-23 18:31:36 +09:00
ThomasV 9d3162b1a1 simplify get_label 2015-12-15 12:52:30 +01:00
Neil Booth 1524fa29af Raise dialog width slightly. 2015-12-12 18:20:49 +09:00
Neil Booth 34955bd0f5 Show value if available 2015-12-12 17:52:19 +09:00
Neil Booth f3a7d3f2bf Show amount of inputs too. 2015-12-12 09:41:31 +09:00
ThomasV dfb3d7b119 show number of inputs/outputs 2015-08-18 18:35:52 +02:00
ThomasV b40f3571e8 tx window: do not always set prompt_if_unsaved 2015-08-07 18:59:50 +02:00
Neil Booth 3fbd81f8ab Improved dialog centring
Password requests from the tx dialog box are now centred on the
tx dialog.  Similarly for error messages if misentering the password.
Also, "Signing transaction..." and "Broadcasting transaction..." are
centred on the appropriate tx dialog.
Finally restore the old "Sign" button enabling / disabling, as we
can now tell if the user cancelled the password request.
2015-07-13 21:32:50 +09:00
ThomasV d3104a17b7 Revert "Improved dialog centring"
This reverts commit d41dfa394b.
2015-07-05 20:37:57 +02:00
ThomasV 383f8924d7 revert txdialog to QDialog 2015-07-05 16:55:18 +02:00
ThomasV 5c2235e54b make tx.deserialize preserve existing inputs 2015-07-04 17:33:18 +02:00
Neil Booth d41dfa394b Improved dialog centring
Password requests from the tx dialog box are now centred on the
tx dialog.  Similarly for error messages if misentering the password.
Also, "Signing transaction..." and "Broadcasting transaction..." are
centred on the appropriate tx dialog.
Finally restore the old "Sign" button enabling / disabling, as we
can now tell if the user cancelled the password request.
2015-07-04 18:25:44 +09:00
Neil Booth 15632adb40 Rename send_tx() to sign_tx()
Because it signs, and it doesn't send.
2015-07-04 16:45:08 +09:00
Neil Booth b2bfd5af1f Show the broadcast button even if broadcast.
It may not actually be broadcast or relayed for various reasons.
2015-07-04 16:37:01 +09:00
Neil Booth 3446e1fd56 Prevent garbage collection of TxDialogs
The transaction dialogs have a habit of randomly disappearing,
because of garbage collection.  This was particularly common
if you viewed the details of a tx in your history immediately
after electrum startup, or after pressing Broadcast.

Other tweaks:

- Distinguish saved and broadcast.
- When signed, consider unsaved and prompt to save if not
  subsequently saved or broadcast.
- Hide broadcast button after broadcast.
- Hook into the closeEvent so closing the window with the mouse
  has the same effect as pressing the close button.
2015-07-04 12:31:31 +09:00
Roman Zeyde a0c891d73f transaction_dialog: allow plugins manipulate transaction sharing buttons 2015-06-29 17:00:31 +03:00
Neil Booth a23247634c Remove some unused vars. 2015-06-29 10:44:27 +09:00
ThomasV 9dfe8ff847 tx window: keep a single close message, and raise window after signing 2015-06-28 10:37:08 +02:00
Neil Booth c35485c1c2 Split tx dialog buttons
The "actions" (sign, broadcast, send to cosigner, verify GA instant)
go on the RHS next to the "Cancel" button.

Copy, QR code and save go on the left.
2015-06-27 11:48:27 +09:00
Neil Booth 547886d6f1 Input tx index looks better left-aligned after all 2015-06-27 11:01:42 +09:00
Neil Booth 6c25f637b9 Wrapper func to create and show a TxDialog
Add prompt_if_unsaved as explicit argument.
Tested with cosigner pool plugin.
2015-06-27 10:56:01 +09:00
Neil Booth 3d48a2d842 More tx dialog improvements
- Show Close if no action to perform, otherwise Cancel
- Add some strings for translation
- Make input hash/index constant width; previously a
  3-digit index bumped the address a whole tabstop over
  compared to the 1-digit indices
2015-06-26 20:15:51 +09:00