1
0
Commit Graph

1401 Commits

Author SHA1 Message Date
SomberNight
433c6762c9 Qt Send tab: handle exc when "." is entered into amount_e
To reproduce: enter "." to amount_e in Send tab; then click "Save".

Traceback (most recent call last):
  File "/home/user/wspace/electrum/electrum/gui/qt/main_window.py", line 1638, in do_save_invoice
    self.pending_invoice = self.read_invoice()
  File "/home/user/wspace/electrum/electrum/gui/qt/main_window.py", line 1625, in read_invoice
    outputs = self.read_outputs()
  File "/home/user/wspace/electrum/electrum/gui/qt/main_window.py", line 1501, in read_outputs
    outputs = self.payto_e.get_outputs(self.max_button.isChecked())
  File "/home/user/wspace/electrum/electrum/gui/qt/paytoedit.py", line 235, in get_outputs
    self.outputs = [PartialTxOutput(scriptpubkey=self.payto_scriptpubkey, value=amount)]
  File "/home/user/wspace/electrum/electrum/transaction.py", line 1533, in __init__
    TxOutput.__init__(self, *args, **kwargs)
  File "/home/user/wspace/electrum/electrum/transaction.py", line 113, in __init__
    raise ValueError(f"bad txout value: {value!r}")
ValueError: bad txout value: None
2021-09-19 16:53:58 +02:00
SomberNight
be084dd44b qt wallet info: make labels selectable 2021-09-16 09:13:44 +02:00
SomberNight
4293d6eca0 kivy: settings: better handling of "default" language 2021-09-15 19:52:40 +02:00
SomberNight
7cb11ceda4 kivy: locale: set default language based to OS lang
On Android, the default language is now set to the language of the OS,
instead of English.

related https://github.com/spesmilo/electrum/issues/4618
related https://github.com/spesmilo/electrum/issues/7494
2021-09-15 19:51:10 +02:00
SomberNight
22bb52d5df kivy: locale: also translate strings in core lib 2021-09-15 19:45:06 +02:00
SomberNight
3f69e5ae3e qt cpfp: (trivial) make some strings translatable
gettext was not picking these up
2021-09-15 17:37:22 +02:00
djboi
679bd21bac Added CPFP Feature for Kivy GUI (#7487)
implements https://github.com/spesmilo/electrum/issues/5507
2021-09-15 15:32:24 +00:00
SomberNight
acbb363240 follow-up prev: some clean-ups
re https://github.com/spesmilo/electrum/pull/7492
2021-09-15 16:41:41 +02:00
Siddhant Chawla
65c3a892cf Multiple max spends functionality added (#7492)
this implements https://github.com/spesmilo/electrum/issues/7054
2021-09-15 14:35:15 +00:00
SomberNight
bf6400ae30 kivy: fix when running with --offline 2021-09-09 17:40:21 +02:00
SomberNight
67f14cdfa8 follow-up prev: some clean-up and added clarifications
re https://github.com/spesmilo/electrum/pull/7464
2021-09-09 17:22:37 +02:00
Siddhant Chawla
3a583885d9 Add network setup option when Kivy GUI starts for the First time. (#7464)
Offer a first-start network setup screen when using the kivy GUI,
similar to what is already done in Qt.
2021-09-09 15:18:19 +00:00
SomberNight
9353220e5d qt send tab: try to make it clearer the sender pays the fee
related: https://github.com/spesmilo/electrum/issues/7488
2021-09-08 16:50:26 +02:00
SomberNight
f7820717be qt ConfirmTxDialog: make fields selectable
related: https://github.com/spesmilo/electrum/issues/7488
2021-09-08 16:39:59 +02:00
SomberNight
c84b873339 qt PreviewTxDialog: fix sizing of fee edits
follow-up to cfdadeda67
2021-09-08 16:36:07 +02:00
nyanpasu64
024a5a84c3 Fix tab order in setup wizard 2021-09-06 23:56:27 -07:00
bitromortac
ebc5954d61 fix ln payments: set payto_e ln invoice correctly
payto_e.lightning_invoice has to be set after the payment field is set
to the node pub key, because check_text has the side effect of resetting
the payto_e.lightning_invoice
2021-08-20 09:21:47 +02:00
bitromortac
e9a1bd1f1e kivy: fix on_intent to call set_URI 2021-07-30 09:47:43 +02:00
bitromortac
c65caf6c68 qt+android: add lightning URI support 2021-07-30 08:44:15 +02:00
SomberNight
a1f69fef97 qt channels list: align "can send", "can recv" cols based on amounts 2021-07-28 15:29:23 +02:00
SomberNight
419d71b4ef (trivial) qt settings: fix a type hint
(no change in behaviour)
2021-07-28 15:29:20 +02:00
SomberNight
e7ccf1584e config: make adding thousand separators to amounts optional 2021-07-28 15:29:16 +02:00
Siddhant Chawla
a8ecc68833 Added BTC and Fiat amount on the confirmation screen for Lightning Invoice (#7425)
Added BTC and Fiat amount(as enabled by the user) on the confirmation screen for a Lightning Invoice in the Kivy GUI 

closes https://github.com/spesmilo/electrum/issues/7410
2021-07-22 18:23:32 +00:00
SomberNight
2881d1e62c kivy: fix: when changing units or ccy, history list was not updated
When changing e.g. from mBTC to BTC, the history list was only
partially updated: the displayed amounts got updated but the
displayed unit did not, so incorrect information was shown.
2021-07-21 20:34:05 +02:00
SomberNight
18c9a1af10 kivy: format_amount: minor clean-up 2021-07-21 18:35:06 +02:00
SomberNight
5891e039b1 config: add option to display amounts with msat precision 2021-07-20 20:35:44 +02:00
SomberNight
173225ae92 qt custom block explorer: fix handling non-str config values
fixes https://github.com/spesmilo/electrum/issues/7421

The config key can have non-str values (see line 367).
2021-07-20 16:54:40 +02:00
SomberNight
c5129ee447 follow-up prev 2021-07-15 01:47:26 +02:00
SomberNight
8481afb286 lnchannel: introduce HTLCWithStatus NamedTuple 2021-07-15 01:35:24 +02:00
SomberNight
d0f0669e8f crash reporter: send traceback for full chain of exceptions
Previously if there was a chain of exceptions, we were only
sending the traceback for the final exception.

E.g.
try:
    raise ExcOne("asdasd")
except ExcOne() as e:
    raise ExcTwo("qweqwe") from e

^ we would lose all info about ExcOne, including potentially many lines of trace
2021-07-12 19:24:58 +02:00
SomberNight
8945dcda7a qt init: on exc, let crash reporter appear instead of silently dying
related: https://github.com/spesmilo/electrum/issues/7390

```
20210706T091826.513398Z |    ERROR | __main__ | daemon.run_gui errored
Traceback (most recent call last):
  File "run_electrum", line 407, in handle_cmd
  File "electrum\daemon.py", line 584, in run_gui
  File "electrum\gui\qt\__init__.py", line 414, in main
  File "electrum\gui\qt\__init__.py", line 291, in wrapper
  File "electrum\gui\qt\__init__.py", line 316, in start_new_window
  File "electrum\gui\qt\__init__.py", line 361, in _start_wizard_to_select_or_create_wallet
  File "electrum\wallet_db.py", line 73, in __init__
  File "electrum\wallet_db.py", line 106, in load_data
  File "electrum\util.py", line 412, in <lambda>
  File "electrum\util.py", line 408, in do_profile
  File "electrum\wallet_db.py", line 175, in upgrade
  File "electrum\wallet_db.py", line 540, in _convert_version_24
ValueError: too many values to unpack (expected 2)
```
2021-07-07 19:19:43 +02:00
SomberNight
7236dae94b kivy wizard: add explicit warnings at seed creation 2021-07-05 19:40:02 +02:00
SomberNight
82bfe1ba9c kivy crash reporter: warn users not to share sensitive info
Previously only Qt had the warning.
2021-07-05 18:59:02 +02:00
SomberNight
cfdadeda67 qt: some fixes for send/receive tabs when window is small 2021-07-05 17:26:29 +02:00
BamaHodl
ea19b665ff Friendlier minimum sizing for small screens for air-gapped signing functionalities, i.e. main window and transaction dialog 2021-07-02 12:04:41 -05:00
SomberNight
013cf869f1 qt: qrreader: keep both old and new toolchain; try to abstract it away 2021-06-25 16:52:02 +02:00
SomberNight
c1dbcab9bb qt: new qrreader using QtMultimedia; drop CalinsQRReader(mac)
This commit ports the work of EchterAgo and cculianu from Electron-Cash,
to implement a new toolchain to scan qr codes.

Previously, on Linux and Win, we have been using zbar to access the camera
and read qrcodes; and on macOS we used CalinsQRReader (an objective-C
project by cculianu).

The new toolchain added here can use QtMultimedia to access the camera,
and then feed that image into zbar. When used this way, zbar needs
fewer dependencies and is easier to compile, in particular it can be
compiled for macOS.

The new toolchain works on all three platforms, with some caveats
(see code comments in related commits) -- so we also keep the end-to-end
zbar toolchain; but at least we can drop CalinsQRReader.

The related changes in Electron-Cash are spread over 50+ commits (several PRs and direct
pushes to master), but see in particular:
https://github.com/Electron-Cash/Electron-Cash/pull/1376

some other interesting links:
b2b737001c
163224cf1f
3b31e0fcb1
eda015908e
https://github.com/Electron-Cash/Electron-Cash/pull/1545
052aa06c23
2021-06-25 16:51:58 +02:00
SomberNight
129d5ba417 qt: (fix) make ScanQRTextEdit inherit Logger
the error handling in `qr_input()`, around line 81,
references `self.logger`, which would raise
2021-06-25 16:50:52 +02:00
SomberNight
bc5ec96387 kivy: scan_qr_non_android: handle user closing window
handle user closing window without scanning a qr code
(i.e. cancelling scan)
2021-06-25 16:44:39 +02:00
ghost43
b828627dc6 Merge pull request #6917 from andrewkozlik/slip39
SLIP-0039 wallet recovery
2021-06-22 19:44:02 +02:00
SomberNight
60e0cd65cf slip39: follow-ups
- fix kivy wizard restore-from-seed
- qt seed dialog: disable "next share" if current share is invalid
- fix tests: file paths should not depend on $PWD (working dir)
2021-06-22 19:24:16 +02:00
SomberNight
57e52da77f lnaddr: clean-up SEGWIT_HRP vs BOLT11_HRP confusion
With signet, SEGWIT_HRP != BOLT11_HRP, so the previous "currency" string
became a flawed concept. Instead we pass around net objects now.
2021-06-22 16:16:21 +02:00
ghost43
5dff461aaa Merge pull request #7282 from wakiyamap/add_signet
add signet support
2021-06-22 16:15:38 +02:00
SomberNight
ba8af9310f kivy addresses list: add "funded or unused" filter option
note: "Funded or Unused" shortened to "Funded|Unused" to save horizontal space
2021-06-19 16:19:24 +02:00
Chris
3ff537465b qt addresses list: add "funded or unused" filter option 2021-06-19 15:50:08 +02:00
SomberNight
90579ccfea kivy: fix paying bip70 invoices
this is a regression from #7234
2021-06-19 14:57:15 +02:00
SomberNight
c49d6995d2 kivy: fixes regression where non-LN wallet cannot open settings...
fixes https://github.com/spesmilo/electrum/issues/6262#issuecomment-863087368
2021-06-17 11:48:58 +02:00
SomberNight
3adb309d49 kivy settings: more intuitive "recoverable channels" toggle
Previously if the wallet did not have a deterministic node id,
the wallet info dialog could say "lightning enabled, non-recoverable channels", but
the "recoverable channels" setting could be toggled and might even say "yes".
2021-06-11 15:00:06 +02:00
SomberNight
325cd950a4 kivy: settings dialog: call update() from __init__
this is a clearer/easier-to-understand API
2021-06-11 14:51:09 +02:00
ghost43
c43896fe6a Merge pull request #7263 from SomberNight/202104_android
reproducible build for Android apk
2021-06-10 13:19:41 +00:00