Commit graph

3591 commits

Author SHA1 Message Date
Gustavo
396eabc623 removed scam exchange 2020-07-17 16:23:15 -03:00
Gustavo
edef0cd4b6 fix biscoint ticker path 2020-07-17 15:30:48 -03:00
Gustavo
a073ea6050 more price sources 2020-07-17 15:27:36 -03:00
Benoit Verret
c8a4c11a78 Remove __main__ from console.py
The Python console isn't meant to run as a standalone.
2020-07-17 13:59:55 -04:00
SomberNight
52f8aafb60
kivy: fix fx history rates defaults.
In kivy, if the user enabled fx rates but did not touch the fx history settings,
the GUI would show that history rates are enabled but in fact they would be disabled:
the GUI called fx.get_history_config(default=True) when displaying the checkbox,
but exchange_rate.py would not fetch history rates.
(it would only get fixed if the user touched the fx history checkbox)

Note: FxThread.run() calls fx.show_history(), which calls fx.get_history_config() without arguments.
2020-07-16 01:00:51 +02:00
SomberNight
a1baf860b6
wallet.set_up_to_date: (trivial) reduce log spam 2020-07-15 23:50:26 +02:00
SomberNight
67a5f2e09a
kivy: fix fiat balance str if there are channels
btc and fiat balance was not consistent
2020-07-15 23:48:45 +02:00
Akshay Arora
2b394f5f93
Size the wizard instantly, do not wait.
Fixes a UI issue in kivy Install Wizzard.
The Choices UI was displayed in a small vertical line for a split second, before being resized to correct size.
This fixes that by ensuring resizing is done before next frame is displayed https://kivy.org/doc/stable/api-kivy.clock.html#schedule-before-frame .
2020-07-15 22:57:24 +05:30
Marko Bencun
061305cd97
bitbox02: add fingerprint to label
See comment in commit.
2020-07-15 15:41:27 +02:00
Marko Bencun
c0ad40b562
bitbox02: implement label()
So the device can be identified more easily in dialogs.
2020-07-15 15:41:27 +02:00
Marko Bencun
5457abfab5
bitbox02: drop unused wizard argument 2020-07-15 15:41:25 +02:00
Marko Bencun
106688ea54
bitbox02: implement get_soft_device_id so multisig runs more smoothly
Without it, if you have say a 1-of-2 multisig with two BitBox02s, you
would run into trouble if the first keystore would try to match to the
wrong inserted BitBox02 (wrong order, or the first one is not
inserted, etc. ).

With the soft device id, the device manager can figure it on its own
which keystore belongs to which connected bb02.
2020-07-15 15:41:09 +02:00
Johann Bauer
bf2c99ad89
Remove servers which are offline 2020-07-15 08:47:45 +02:00
Benoit Verret
db5d5183d7 Keep current input when clearing Python console
Ctrl+L should clear the whole console except the current line like
a standard Python console.
2020-07-14 12:00:54 -04:00
Benoit Verret
c5577b0271 Clean console.py
Remove a nonessential line and fix a typo.
2020-07-14 09:24:34 -04:00
ThomasV
999eaa778e prepare release 4.0.2 2020-07-08 08:25:49 +02:00
ThomasV
3442dcc461
Merge pull request #6350 from SomberNight/202007_walletdb_convert_version_32
invoices: rm old corrupted non-bip70 invoices
2020-07-08 08:19:31 +02:00
SomberNight
c66c54a254
android: handle on-chain/lightning URI on app open
fixes #6352
2020-07-08 04:16:30 +02:00
SomberNight
1c9a6f5770
qt wizard: fix scanning qr code when restoring from xpub
fixes #6342
2020-07-08 01:51:14 +02:00
SomberNight
4961020e01
wallet: handle exception when deleting last addr from imported wallet
fixes #6347
2020-07-08 01:28:20 +02:00
SomberNight
a6b83edec9
qt lightning dialog: fix min size
fixes #6344
2020-07-08 01:23:50 +02:00
SomberNight
35dad3c10e
qt history list: only offer "View Invoice" if still have invoice
fixes: #6343
2020-07-08 01:19:23 +02:00
SomberNight
307403a02c
invoices: rm old corrupted non-bip70 invoices
fixes #6345
2020-07-08 00:57:23 +02:00
SomberNight
9b3f165212
qt channels tab: implement filtering items
fixes #6330
2020-07-07 23:33:57 +02:00
ThomasV
9700e6112b fix wording 2020-07-07 15:31:13 +02:00
ThomasV
daa8225ef0
Merge pull request #6337 from Tigerix/patch-1
Fix Blockchain.com Testnet-URL
2020-07-06 06:02:13 +02:00
michael1011
1980d8db43
gui swap: fix swap wording 2020-07-05 23:24:09 +02:00
Tigerix
8539beb75e
Update util.py
Fixed Blockchain.com Testnet-URL
2020-07-05 12:59:09 +02:00
SomberNight
c54b9a6874
qt receive tab: fix creating new payreq with all used imported wallet
fixes #6325
2020-07-03 20:12:52 +02:00
ThomasV
0f6898ed90 release 4.0.1: prepare release notes, bump version number 2020-07-03 17:14:45 +02:00
SomberNight
da4edc8f74
android: fix back button not working (main surface loses focus)
fixes #6276
2020-07-03 16:10:36 +02:00
SomberNight
d19ff43266
interface: check server response for some methods
some basic sanity checks

Previously if the server sent back a malformed response, it could partially corrupt a wallet file.
(as sometimes the response would get persisted, and issues would only arise later when the values were used)
2020-07-02 15:41:39 +02:00
SomberNight
3393ff757e
qt PreviewTxDialog: change feerounding_icon to be a QToolButton
QPushButtons with dark theme have a huge min width (they have text in mind)

related: #6300
2020-07-02 13:49:54 +02:00
SomberNight
8f96a92e75
qt PreviewTxDialog: if not enough funds due to fee, fallback to zero fee
fixes #6306

scenario: confirm tx dialog open, not enough funds (but only due to fees),
user clicks advanced, dialog half-empty.

note: the preview dialog is only half-empty if it never managed to create a tx.
if it did but it cannot now due to the current fee settings, then it will just
show that fee is too high (red text, buttons disabled) and show the last tx with the prev fee
2020-07-02 13:29:51 +02:00
SomberNight
844bbd103a
qt PreviewTxDialog: check for "not enough funds" also when shortcutting
see https://github.com/spesmilo/electrum/issues/6306#issuecomment-652424363

scenario: user saves invoice for more money than they have, has advanced_preview
in config enabled, tries to pay it, half-empty tx preview dialog opens
2020-07-02 13:25:31 +02:00
ghost43
4aed1df0e8
Merge pull request #6293 from btchip/ledger_segwit_trustedinputs
Ledger : Remove warning on Segwit inputs and newer Bitcoin application, use generic signing for P2SH inputs
2020-07-02 10:47:32 +00:00
SomberNight
b042c4118f
ledger: speed-up sign_transaction
really slow to scan usb devices for e.g. every tx input...
if user disconnects mid-signing, we would fail anyway.
2020-07-02 12:45:42 +02:00
SomberNight
48993118ad
ledger: bump min btchip-python version
and minor simplification
2020-07-02 12:45:38 +02:00
SomberNight
6d2aee18d0
dnssec: fix compat with dnspython 1.16 2020-07-02 11:12:38 +02:00
SomberNight
9fa666f179
fix channel backups with old "cryptography" module
closes #6314
2020-07-02 11:07:10 +02:00
ghost43
db063517ec
Merge pull request #6309 from benma/bitbox02
plugins/bitbox02: fix compatibility with bitbox02-4.0.0
2020-07-01 16:49:03 +00:00
Marko Bencun
b1e756ac96
plugins/bitbox02: fix compatibility with bitbox02-4.0.0 2020-07-01 17:49:53 +02:00
zebra-lucky
949b247b19
fix raise UserCacnelled calls (#6304) 2020-07-01 15:37:31 +00:00
ThomasV
9547a4e60c Qt: override 'persist_daemon' option if users exits from menu 2020-06-30 11:16:27 +02:00
ThomasV
b43aba7f09 improve help text regarding watchtower 2020-06-30 11:15:25 +02:00
SomberNight
7a6ec23b6e
cosigner pool: use single thread to send messages
ServerProxy does not seem to be thread-safe.
For e.g. a 2of3 multisig wallet, which would send two messages,
one msg would get sent but the other might error out. See trace:

E | plugins.cosigner_pool.qt.Plugin | on_failure
Traceback (most recent call last):
  File "...\electrum\electrum\gui\qt\util.py", line 832, in run
    result = task.task()
  File "...\electrum\electrum\plugins\cosigner_pool\qt.py", line 199, in <lambda>
    task = lambda: server.put(_hash, message)
  File "...\Python38\lib\xmlrpc\client.py", line 1109, in __call__
    return self.__send(self.__name, args)
  File "...\Python38\lib\xmlrpc\client.py", line 1450, in __request
    response = self.__transport.request(
  File "...\Python38\lib\xmlrpc\client.py", line 1153, in request
    return self.single_request(host, handler, request_body, verbose)
  File "...\Python38\lib\xmlrpc\client.py", line 1165, in single_request
    http_conn = self.send_request(host, handler, request_body, verbose)
  File "...\Python38\lib\xmlrpc\client.py", line 1271, in send_request
    connection.putrequest("POST", handler, skip_accept_encoding=True)
  File "...\Python38\lib\http\client.py", line 1088, in putrequest
    raise CannotSendRequest(self.__state)
http.client.CannotSendRequest: Request-sent
2020-06-29 02:19:03 +02:00
SomberNight
1a9e6a434f
cosigner pool: user certifi instead of system ssl cert store
related: https://github.com/spesmilo/electrum/issues/5678#issuecomment-650837465
2020-06-29 02:15:01 +02:00
SomberNight
faafb70d4c
follow-up prev
(committed wrong raw tx literal)
2020-06-28 17:45:00 +02:00
SomberNight
29534dcf3d
commands: allow setting custom 'nsequence' in 'serialize' cmd
closes #6297
2020-06-28 17:26:52 +02:00
SomberNight
0d7bcde2db
qt dark theme: on mac, AmountEdit units were using dark text on dark bg
see #6281
2020-06-28 03:50:34 +02:00