Commit Graph

248 Commits

Author SHA1 Message Date
ThomasV babead68b6 trezor: don't call sign_transaction twice 2014-10-24 12:43:10 +02:00
ThomasV 956f69f3d3 trezor: raise and catch BaseException in signing 2014-10-24 10:53:09 +02:00
ThomasV 8347ad5449 fix hardware plugins with tx.error 2014-10-24 07:49:20 +02:00
Gergely Imreh 3c3d064cad Fix "Invalid Fee" issue when start with fiat in send (exchange rate plugin)
Problem:

Using the exchange rate plugin in the send dialog one can start with
entering a fiat amount, e.g. 5 USD, and the BTC amount is updated,
but no fee is calculated.

In this case can get "Invalid fee" error until the BTC amount is
touched manually and fee is calculated. This can cause confusion
when "set transaction fees manually" is disabled.

Reproducing:

* enable exchange rate plugin
* start Electrum
* in send dialog fill out any receive address
* add a value (e.g. 5) into the fiat dialog and see the BTC value filled out
* fee is not filled out, or if disabled the manual transaction fees then directly
  get "Invalid Fee" error

Expectation:

* Fees are calculated just as it would be by filling out the BTC field

Fix:

Fixed by triggering a fee setting the same way as it is done when
the BTC field is edited, by calling `textEdited.emit("")` of the relevant
`BTCAmountEdit` element. One problematic  thing is that this also triggers
a change on the fiat we just edited, and thus cursor positions need to be saved
and restored. This is not ideal, there should be a way to avoid such cascades
and trigger fee calculation directly instead of by proxy.

Editing the fiat field with these changes is more or less okay, there can be
some strange steps when the decimal point is edited, but IMHO not worse
than the BTC field when the decimal point is edited there.
2014-09-30 11:28:42 +08:00
ThomasV 10aba39d4e Merge pull request #858 from btchip/labelfix
Fix behavior when calling get_master_public_key from an external context
2014-09-21 19:23:34 +02:00
ThomasV 38fb26f1e8 Merge pull request #857 from btchip/deny_export_private_key
Do not crash when asked to export private keys
2014-09-21 19:23:06 +02:00
BTChip 7f2a360c6a Fix behavior when calling get_master_public_key from an external context 2014-09-21 00:49:36 +02:00
BTChip f296e5e5ef Do not crash when asked to export private keys 2014-09-20 14:46:26 +02:00
BTChip 94db6cc94b Fix bad initializer 2014-09-20 14:27:13 +02:00
molecular e90d567435 fix typo in btcchip second factor prompt dialog 2014-09-19 20:58:16 +02:00
ThomasV 7dd7918a30 Merge pull request #848 from btchip/firmwareupdate
Firmwareupdate
2014-09-19 16:24:00 +02:00
ThomasV 44b0fab4c0 Merge pull request #847 from btchip/tx-2fa-message
Improve 2FA message and dongle reconnection
2014-09-19 16:23:02 +02:00
BTChip 2c096f9669 Add firmware check 2014-09-19 16:02:09 +02:00
BTChip 796d52ac09 Delegate firmware update and better error message when connection to the dongle fails 2014-09-19 15:51:10 +02:00
ThomasV fd1f083958 simplify names 2014-09-19 13:48:49 +02:00
BTChip 86c0bffa3e Improve 2FA message and dongle reconnection 2014-09-19 13:39:12 +02:00
ThomasV 6cd00eb36b request history rates asynchronously 2014-09-19 13:36:30 +02:00
BTChip c6dcbcb005 Fix query fees 2014-09-18 22:11:24 +02:00
ThomasV c42038a891 cosigner: add popup window 2014-09-14 20:28:21 +02:00
ThomasV 790e0e56e2 fix init call in cosignerpool plugin 2014-09-14 20:20:08 +02:00
ThomasV 815ba4b9eb Merge branch 'master' of git://github.com/spesmilo/electrum 2014-09-14 11:48:42 +02:00
ThomasV ca6194e563 trezor: check if device is connected before asking passphrase 2014-09-14 11:48:30 +02:00
Michael Wozniak c9fab344ca Keep trezor pin dialog on top of other windows 2014-09-13 18:14:01 -04:00
ThomasV 5b84cbe9fb close_wallet 2014-09-12 19:58:59 +02:00
ThomasV 45a55e258f trezor: check device on load_wallet 2014-09-12 19:24:01 +02:00
Maran 6c5302390a Make all LabelSync calls async. 2014-09-11 13:08:35 +02:00
ThomasV 1b346b1aeb labels plugin: response must be OK before we continue 2014-09-11 08:42:10 +02:00
ThomasV a7102bee78 fix indentation 2014-09-10 23:12:28 +02:00
ThomasV 117c563182 fix utf8 encode/decode in labels plugin 2014-09-10 15:28:41 +02:00
ThomasV 410ac82667 Do not call Qt from non-Qt threads, this will segfault (give_error) 2014-09-10 10:16:07 +02:00
ThomasV 374daa25af create a PendingAccount if coins have been sent to next_account 2014-09-10 10:09:13 +02:00
ThomasV 1fb8af40c5 disable privkey export menu in trezor wallets 2014-09-09 14:30:57 +02:00
ThomasV 265d74c542 fix #825 2014-09-09 14:22:06 +02:00
ThomasV 8cfa32db5c add labelsChanged signal 2014-09-08 11:45:19 +02:00
ThomasV e4dfd3129a iv should be different from password 2014-09-08 00:54:52 +02:00
ThomasV 42bbce4cb3 labels: encrypt keys with deterministic iv 2014-09-08 00:12:34 +02:00
ThomasV 30a2a9ee51 don't encrypt keys, because it creates new items everytime 2014-09-07 23:43:41 +02:00
ThomasV 1886da7cde fix printing of unicode values 2014-09-07 23:04:04 +02:00
ThomasV 3948ef64fa labels: pull in separate thread. also fix error messages 2014-09-07 22:57:55 +02:00
ThomasV 3bbd3685d8 fix bug #787 2014-09-07 22:26:07 +02:00
Michael Wozniak a996659225 Update itbit/coindesk exchange rate api
itbit/coindesk exchange rate requires separate API calls per currency
Moved the calls to when the exchange rate plugin updates and when the
user modifies a selection instead of every time the program needs to
query the current exchange rate

This fixes an issue with slow response time in the send tab with the
exchange rate plugin turned on and set to coindesk or itbit
2014-09-05 19:58:54 -04:00
ThomasV caf4adff49 add missing @hook in exch plugin 2014-09-05 19:43:27 +02:00
ThomasV 622fb6c08b add wallet categories 2014-09-05 16:28:53 +02:00
ThomasV 9af2c20706 json sanitize labels 2014-09-05 12:12:00 +02:00
ThomasV 816495609f fix #788 2014-09-04 16:44:50 +02:00
ThomasV 1e346404dd fixes for label plugin 2014-09-04 16:37:51 +02:00
ThomasV 6101abda5d call init_qt everytime a plugin is enabled 2014-09-04 15:45:03 +02:00
ThomasV 8b78b7c480 don't duplicate code 2014-09-04 13:08:56 +02:00
GreenAddress 8d8c8cb7f9 Add GreenAddress instant verify plugin 2014-09-04 02:58:14 +02:00
ThomasV 449feddaaf raise an exception on trezor decrypt 2014-09-03 10:45:41 +02:00