SomberNight
22a8348303
renames: use consistent naming of cltv delta vs cltv abs
...
to avoid confusing relative vs absolute cltvs
(see b0401a6386 )
2023-10-19 16:40:05 +00:00
ThomasV
8d5f9185a4
follow-up #8646
2023-10-14 10:13:27 +02:00
Sander van Grieken
b20a4b9bf1
qml: increase font on seed keyboard, and height of seedkeyboard slightly
2023-10-13 13:42:16 +02:00
Sander van Grieken
8c4532c5cb
qml: properly show warnings in info box in RbfBumpFeeDialog
2023-10-12 16:22:51 +02:00
Sander van Grieken
941f425ff5
qml: update invoice.canPay on channel state changes
...
This re-evaluates invoice.canPay when channels get connected/disconnected (enables/disables Pay button)
2023-10-12 15:53:15 +02:00
Sander van Grieken
8dbb2e0c33
qml: remove eye icon for watch-only wallets from toolbar
2023-10-12 15:17:16 +02:00
SomberNight
57d2efc88d
wallet: merge mktx and create_transaction
2023-10-10 17:45:26 +00:00
ThomasV
e882856d4f
Merge pull request #8646 from accumulator/load_wallet_refactor
...
daemon: refactor load_wallet
2023-10-10 19:33:20 +02:00
SomberNight
65394c37d5
wallet.make_unsigned_transaction: add batch_rbf/send_change params
...
Don't side-effect config just to modify the next call of make_unsigned_transaction >.<
Cleaner to pass parameters.
2023-10-10 17:13:18 +00:00
Sander van Grieken
7ca9b735d5
daemon: refactor load_wallet to not just return None, but raise specific exceptions.
...
The following exceptions should be expected:
FileNotFoundError: given wallet path does not exist
StorageReadWriteError: given file is not readable/writable or containing folder is not writable
InvalidPassword: wallet requires a password but no password or an invalid password was given
WalletFileException: any internal wallet data issue. specific subclasses can be caught separately:
- WalletRequiresSplit: wallet needs splitting (split_data passed in Exception)
- WalletRequiresUpgrade: wallet needs upgrade, and no upgrade=True was passed to load_wallet
- WalletUnfinished: wallet file contains an action and needs additional information to finalize. (WalletDB passed in exception)
Removed qml/qewalletdb.py
This patch also fixes load_wallet calls in electrum/scripts and adds a qml workaround for dialogs opening and closing so
fast that the dialog opened==true property change is missed (which we need to manage the dialog/page stack)
2023-10-10 17:42:07 +02:00
SomberNight
63143307f1
config: follow-up rename of FEE_EST_STATIC_FEERATE
...
follow-up 455167136d
2023-10-10 12:11:45 +00:00
Sander van Grieken
cbcafe8960
qml: remove redundant WalletDB, closes #8628
2023-10-06 12:06:00 +02:00
Sander van Grieken
e4f9cfb1cc
qt: clipboard might have been changed after show menu. add check. fixes #6526
2023-10-06 11:13:16 +02:00
Sander van Grieken
9ed5f7bf43
qml: don't show "select server automatically" checkbox in network setup wizard
2023-10-05 11:01:29 +02:00
Sander van Grieken
f7bf4e146d
payment_identifier: move adding openalias to contacts out of _do_resolve.
...
This fixes "cannot pickle '_thread.RLock' object" when paying from Contacts tab
2023-10-03 11:42:12 +02:00
Sander van Grieken
67b0fa2047
qml: add extra parent_fee check. fixes #8634
2023-10-02 09:29:46 +02:00
Sander van Grieken
b12c3233e5
qml: followup 5acfe418079dbc9935cf9576e50ae2c8c841e301; don't save expiry Never as default.
2023-09-30 14:45:42 +02:00
Sander van Grieken
b8b5dab68a
qml: properly return when current wallet is selected from wallets list
2023-09-30 14:43:11 +02:00
ThomasV
5acfe41807
qml: add never-expiring requests. fixes #8631
2023-09-30 09:46:16 +02:00
ThomasV
9ebae958dc
text gui: fix WalletDB
2023-09-30 09:34:34 +02:00
Alef Farah
cf4590bee3
fix recv for text gui
2023-09-29 17:35:42 -03:00
ThomasV
98cecb305e
jsondb: raise an exception if a daemon thread attempts to write
2023-09-28 18:33:56 +02:00
ThomasV
1af6972d03
Merge pull request #8493 from spesmilo/jsonpatch_new
...
partial-writes using jsonpatch
2023-09-28 09:23:14 +02:00
Sander van Grieken
e5e1e46b7b
qml: add message sign/verify
2023-09-26 11:28:55 +02:00
Sander van Grieken
b846eabb70
qml: clicking on one of your own addresses on TxDetails page now takes you to AddressDetails page.
2023-09-25 17:53:18 +02:00
Sander van Grieken
05a34fbe24
qml: tap-on-background now removes focus, allowing convenient way to hide keyboard
2023-09-25 16:58:27 +02:00
ThomasV
35a86ec5aa
qt console history: ensure partial writes
2023-09-24 12:24:21 +02:00
SomberNight
4978d40956
qt gui __init__: restore import order - raise pyqt5 missing early
...
follow-up https://github.com/spesmilo/electrum/pull/8560
2023-09-24 02:31:25 +00:00
ThomasV
4cc3c704b2
QML: Check passwords with WalletDB instances that have no storage,
...
to avoid unwanted side effects.
In qedaemon, call load_wallet with upgrade=True when loading a
wallet. Apparently, this was not done before; db upgrades were
performed as a side-effect of password verification...
2023-09-23 15:15:48 +02:00
ThomasV
56e80c20d7
wallet_db upgrade: do not use '/' in StoredDict keys
2023-09-23 11:05:36 +02:00
ThomasV
44dddee4d2
qt wizard: restore previous window size
2023-09-22 17:51:41 +02:00
ThomasV
83ff192bf5
follow-up 190c19d48c
2023-09-22 17:50:46 +02:00
Sander van Grieken
190c19d48c
whitespace, imports, code style
2023-09-22 16:38:37 +02:00
ThomasV
4acf1ac1df
new wizard: set default values for proxy and autoconnect
2023-09-22 16:34:28 +02:00
ThomasV
e581781775
Merge pull request #8592 from spesmilo/jsondb_cleanup
...
Jsondb cleanup
2023-09-22 15:22:32 +02:00
Sander van Grieken
6e52aa0edd
qml: fix wizard multisig cosigner script and derivation GUI component name
2023-09-22 15:16:30 +02:00
ThomasV
68159b3ef6
walletDB: replace 'manual_upgrades' parameter with 'upgrade', with opposite semantics
2023-09-22 15:02:07 +02:00
ThomasV
b5bc5ff9ed
Separate WalletDB from storage upgrades.
...
Make sure that WalletDB.data is always a StoredDict.
Perform db upgrades in a separate class, since they
operate on a dict object.
2023-09-22 15:02:06 +02:00
Sander van Grieken
af2b0f758d
qml: remove split wallet functionality.
...
old multi-account wallets were never used on mobile, so we don't need to support this.
2023-09-22 14:57:03 +02:00
Sander van Grieken
44a1595157
wizard: don't use hww encryption of wallet files for anything besides standard wallets,
...
check hw wallet file decrypt in WCHWUnlock,
fix assumption 'wallet_type' exists in wallet open scenario.
2023-09-21 14:20:01 +02:00
Sander van Grieken
2caa8f13cf
wizard: make wizard.keystore_from_data more robust;
...
- always store 'keystore_type' in cosigner data and use same types as main
- dont share 'hardware_device' in root of dict, but store for each cosigner
- properly return hardware keystore for hardware cosigners
2023-09-20 14:34:31 +02:00
Sander van Grieken
5080c224d0
qt: fix device list after rescan
2023-09-20 14:34:31 +02:00
SomberNight
d2c7df3180
wizard: fix hww scan debug_msg not working correctly
2023-09-20 14:34:31 +02:00
Sander van Grieken
4101946ff5
wizard: add non-hardened derivation path check for digital bitbox, re-add rescan button in choose hw device,
...
clear clipboard before confirming seed.
2023-09-20 14:34:31 +02:00
Sander van Grieken
60d1d1e599
wizard: add missing keepkey porting, fix password focus for default and picked wallets,
...
add abstract method decl HW_PluginBase.wizard_entry_for_device
2023-09-20 14:34:31 +02:00
Sander van Grieken
7fd3b6c91d
wizard: remove finished call, it's unused
...
qt: call is_finalized before closing the wizard dialog and add a check if wallet can be
decrypted with the supplied secret (user pw, hw device)
2023-09-20 14:34:31 +02:00
Sander van Grieken
dd64b5c628
wizard: add bitbox02 new wallet init and checks to new wizard
2023-09-20 14:34:31 +02:00
Sander van Grieken
50d2cdb1b5
wizard: improve hww uninitialized default msg. attempt fix flake issue w.r.t ABC
2023-09-20 14:34:31 +02:00
Sander van Grieken
b7612605c5
wizard: add Digital Bitbox initialization to new wizard, remove rescan button
...
Note: the option to load a backup from SD card when the device already has a seed
has been removed. The device always returns an error when attempting this.
2023-09-20 14:34:31 +02:00
Sander van Grieken
f3d843a855
qt: hww scan, focus rescan button only if no devices found
2023-09-20 14:34:31 +02:00