Commit Graph

15247 Commits

Author SHA1 Message Date
Sander van Grieken 89936689fb qml: fix imports, flake issues 2022-11-14 12:19:56 +01:00
Sander van Grieken 97254bb0ed qml: remove ready signal hack, wizard_data now available at WizardComponent construction time 2022-11-14 12:19:56 +01:00
Sander van Grieken 3c903d8fd7 qml: allow wizard pages to supply title suffix 2022-11-14 12:19:56 +01:00
Sander van Grieken 428ba209f4 qml: multisig wizard; cosigner w. electrum seed 2022-11-14 12:19:56 +01:00
Sander van Grieken 5246f3d510 qml: refactor is_last checks to mostly lambdas, add multisig flow for 1st cosigner keystore,
add initial flow and view placeholders for additional cosigners.
2022-11-14 12:19:56 +01:00
Sander van Grieken b8a8c848c7 qml: enable first wizard page of multisig 2022-11-14 12:19:56 +01:00
Sander van Grieken 5fd8b63091 qml: styling TxDetails 2022-11-14 11:41:33 +01:00
Sander van Grieken e054e9f14e qml: styling channel details 2022-11-11 17:11:49 +01:00
Sander van Grieken 37b4352c29 qml: some styling fixes 2022-11-11 16:46:24 +01:00
Sander van Grieken 725a05643e qml: channels styling 2022-11-11 16:23:24 +01:00
Sander van Grieken 18131e5a38 qml: styling addresses/address details 2022-11-11 16:00:11 +01:00
Sander van Grieken ff0f180fab qml: check max comment length for lnurl-pay, characters remaining indicator, styling. 2022-11-11 15:13:39 +01:00
Sander van Grieken 9ce9bb5a4c qml: show request details on receive dialog after adding message/amount 2022-11-11 14:03:43 +01:00
Sander van Grieken 79d12330ac qml: let WalletListModel update the wallet state when a wallet is loaded 2022-11-11 12:28:00 +01:00
Sander van Grieken 12086ba0de qml: unify to single WalletListModel, WalletDB trigger actions on every path set,
camelcase more QML exposed functions/slots.
2022-11-11 12:00:07 +01:00
SomberNight d2155833c1 rerun freeze_packages
(new deps for ledger plugin)
2022-11-10 18:53:05 +00:00
MrNaif2018 b357391c48 Add tx_hashes to exported payment requests (#7936)
* Add `tx_hashes` to payment requests

* Apply patch

* Fix for missing lnworker
2022-11-10 17:48:00 +00:00
SomberNight 9f3a39e9c9 requirements-hw: add comments to tie deps to hwd plugins 2022-11-10 16:03:34 +00:00
ghost43 ac239a81b8 Merge pull request #8041 from bigspider/app-bitcoin-new
Modify Ledger plugin to support the new bitcoin app v2.1.0
2022-11-10 14:24:14 +00:00
SomberNight e75110ec04 hw_wallet: de-dupe "message_dialog" code, make text selectable 2022-11-09 21:10:52 +00:00
SomberNight 9b82eb6d06 ledger: re-add support for HW.1, and add a deprecation warning 2022-11-09 20:42:55 +00:00
SomberNight 3cac7e9a61 ledger: minor clean-up 2022-11-09 20:11:08 +00:00
SomberNight e4a880e435 trezor: use lower device-enumeration timeout for udp transport
This transport IIUC is only used for the trezor emulator.
The default timeout is 10 seconds. Every time we enumerate hw devices,
we also enumerate trezor devices, including scanning for the udp transport.
For some reason, recently on Windows, sporadically, this scan keeps
hitting the timeout for me. Quite annoying, as I might not even be testing
trezor (and I am certainly not testing using the trezor emulator on Windows...),
but scanning to test other plugins.

Probably overkill to have a 10 sec timeout for contacting localhost anyway.
2022-11-09 17:46:18 +00:00
Salvatore Ingala e47270daa5 Fix multiple signing 2022-11-09 13:21:14 +01:00
Salvatore Ingala 3c0e3eb7e2 Refactored LedgerPlugin::create_client, and handle errors when creating the client. 2022-11-09 11:34:41 +01:00
Salvatore Ingala 7c80779903 Replace print() with logger 2022-11-09 11:21:21 +01:00
Salvatore Ingala 80e214d465 - Remove code calling hw1-related features, not supported in the version of btchip embedded in ledger_bitcoin
- Fix signature of sign_message in Ledger_Client_Legacy
2022-11-09 10:59:12 +01:00
Salvatore Ingala f3eb492dca Update Ledger website to ledger.com in error message 2022-11-08 17:44:09 +01:00
Salvatore Ingala 8a3fed9bc9 Remove btchip; use ranged version for ledger_bitcoin 2022-11-08 17:44:07 +01:00
Salvatore Ingala c401f84aa7 Avoid relying on old btchip package; improve missing library error handling 2022-11-08 17:44:06 +01:00
Salvatore Ingala 2d64dc13c9 Modify Ledger plugin to support the new bitcoin app v2.1.0 2022-11-08 17:44:05 +01:00
ghost43 65a2529480 Merge pull request #8058 from prusnak/trezor-no-serialize
trezor: optimize signing speed by not serializing transaction in trezor
2022-11-08 16:28:21 +00:00
Pavol Rusnak b4e5f35e66 trezor: optimize signing speed by not serializing transaction in trezor
Since Electrum is not using TxRequestSerializedType.serialized_tx
we might ask the device not to serialize transactions
by setting SignTx.serialize=False

This flag is only present in trezorlib 0.13.4, so only users on that
version will benefit from the speedup.

However, we decided to keep the minimum required version to 0.13.0,
since the newer version is not strictly required.
2022-11-07 16:48:43 +01:00
Sander van Grieken acde8cd0b7 add apt --allow-downgrades in more places.
build sdist also from debian bullseye container
2022-11-06 10:55:10 +01:00
Sander van Grieken c0772019f1 rerun freeze_container_distro.sh and update docker base images for debian buster and bullseye 2022-11-06 10:42:39 +01:00
SomberNight 21dac9f8a6 util.EventListener: don't log "registering callback"
IMO this is just too spammy to log in the general case when running with -v
2022-11-06 06:12:41 +00:00
SomberNight c6a497ed39 android README: (trivial) don't need sudo anymore 2022-11-06 06:05:54 +00:00
SomberNight da3b271f5c cosigner_pool plugin: handle multiple multisig wallets open
fixes https://github.com/spesmilo/electrum/issues/3080
2022-11-06 04:36:56 +00:00
SomberNight bab1c6da86 rerun freeze_packages 2022-11-05 14:41:42 +00:00
SomberNight 590abec339 build requirements: colorama grew a new build-time dependency :/
or more like four:
```
$ pipdeptree
hatchling==1.11.1
  - editables [required: >=0.3, installed: 0.3]
  - packaging [required: >=21.3, installed: 21.3]
    - pyparsing [required: >=2.0.2,!=3.0.5, installed: 3.0.9]
  - pathspec [required: >=0.10.1, installed: 0.10.1]
  - pluggy [required: >=1.0.0, installed: 1.0.0]
  - tomli [required: >=1.2.2, installed: 2.0.1]
```

Let's monitor how the situation evolves, and whether other packages start requiring hatchling,
but for now I am not going to add four new packages into the trusted base set...
Pinning colorama to an older version for now.

related:
https://github.com/tartley/colorama/pull/338
https://github.com/tartley/colorama/issues/349
2022-11-05 14:41:39 +00:00
SomberNight 326f8c4fca freeze_packages: better apply version restrictions on restricted deps
hashin does not react well to package spec collisions:
```
$ touch txt
$ python3 -m hashin -r txt "colorama==0.4.5" colorama
$ cat txt
colorama==0.4.6 \
    --hash=sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44 \
    --hash=sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6
```

This lets pip resolve the version bounds instead.
2022-11-05 14:41:35 +00:00
SomberNight 1e404f4e30 binaries: update python and openssl
note: python 3.9.x is now in source-only mode, so could not update to latest...
it is time to investigate upgrading to python 3.10 in the win and mac binaries
2022-11-05 14:41:23 +00:00
accumulator d51ee07a81 use debian makensis instead of windows makensis executable through wine (#8057) 2022-11-04 20:31:01 +00:00
SomberNight 4a63ca2e1f CI: only build arm64 qml apk, not both
the qml apk builds take too much time, and no one actually uses the arm32 apk from the CI

see discussion in https://github.com/spesmilo/electrum/pull/8050
2022-11-04 16:16:12 +00:00
SomberNight 4548351ffd CI: rm redundant "populate_script" cache instructions 2022-11-04 15:49:27 +00:00
SomberNight 074ccdd072 CI: cache key should respect gitignore
otherwise when evaluating the cache key for the second cache within same task,
the first cache might side-effect it
2022-11-04 15:49:23 +00:00
SomberNight 54e22105b8 CI: cache more in Windows build 2022-11-04 15:49:19 +00:00
SomberNight 6f311c8930 appimage build: better caching, both locally and on CI 2022-11-04 15:49:16 +00:00
SomberNight 3b03bc9b29 CI: cache built *.dylib on macOS
note: the extra copies in make_osx.sh are needed because of the CI caching
(pyinstaller needs to see the .dylib's inside electrum/, e.g. when importing electrum during Analysis)
2022-11-04 15:49:12 +00:00
Sander van Grieken 97f02bca3b qml: add import additional addresses/keys to import wallet 2022-11-04 15:59:27 +01:00