ThomasV
984da7515a
fix #6125 : detect self-payments
2020-05-06 12:58:55 +02:00
ThomasV
e50f6d29ed
export channel backup from kivy gui
2020-04-10 20:04:24 +02:00
ThomasV
8f41aeb783
Replace wallet backup with channel backups
...
- channels can be backed up individually
- backups are added to lnwatcher
- AbstractChannel ancestor class
2020-04-10 14:45:23 +02:00
SomberNight
71eed1d4cb
wizard: (trivial) add show_error to base class, document API
2020-04-09 19:45:42 +02:00
SomberNight
8e9b401c88
wizard: add a warning to multisig wallet creation to backup xpubs
2020-03-31 07:44:23 +02:00
SomberNight
79d202485e
lnworker: rename can_send to num_sats_can_send
2020-03-26 09:05:12 +01:00
ThomasV
5bac2fea98
Qt: improve channel details window
2020-03-12 12:40:50 +01:00
ThomasV
6c2ef176cc
kivy: show payment log details
2020-03-10 16:44:23 +01:00
ThomasV
d19fc56eb8
kivy: requests/invoices dialogs improvements
2020-03-10 16:03:34 +01:00
ThomasV
3d69f3b0be
improve payment status callbacks:
...
- add 'computing route' status for lightning payments
- use separate callbacks for invoice status and payment popups
- show payment error and payment logs in kivy
2020-03-10 13:27:02 +01:00
ThomasV
c80aab7e20
kivy: align icons in password_dialog, use IconButton
2020-03-09 11:51:48 +01:00
ThomasV
47b6c2d87f
improve kivy password dialog:
...
- separate classes for pin code and password
- add file selector to initial screen
2020-03-09 11:13:05 +01:00
ThomasV
c3c6b81857
kivy: show closing transaction in channel dialog
2020-03-06 06:49:46 +01:00
ThomasV
7c77d7c176
kivy: improve channel detaild dialog
2020-03-06 05:50:45 +01:00
ThomasV
a059fa0c1f
fix #6017
2020-03-06 04:27:03 +01:00
SomberNight
60ad5e6a52
kivy pw dialog: don't enforce min length for existing generic password
...
this allows opening short-password wallets on desktop
2020-03-05 18:09:17 +01:00
ThomasV
496de03869
(minor) typo
2020-03-05 14:43:10 +01:00
ThomasV
0c3565bd4d
kivy: show warning if request/invoice exceeds channel capacity
2020-03-05 14:30:01 +01:00
ThomasV
c2f9c5fb1b
kivy: fix layout of addresses dialog
2020-03-05 12:06:30 +01:00
ThomasV
eadd5d58e8
kivy: improve open_channel dialog
2020-03-05 11:54:33 +01:00
SomberNight
7a574c3cbc
wallet/GUI: don't allow "removing" a LN force-close-tx from history
2020-03-02 05:11:08 +01:00
SomberNight
a0b096dcb2
mnemonic: implement Wordlist class
...
Wordlist subclasses 'tuple' so it can be transparently used.
'in' and '.index()' are fast.
Use Wordlist in bip39_is_checksum_valid, which makes that faster.
2020-02-29 00:20:11 +01:00
ThomasV
b12c913d47
do not show channel balances if channel is closed
2020-02-22 12:10:41 +01:00
ThomasV
238fb46d87
Lightning: Show sending and receiving capacity. Fixes #5967
2020-02-19 16:11:55 +01:00
ThomasV
b90cbeb0ba
fix flake8 test
2020-02-18 14:05:28 +01:00
ThomasV
feb47b0a6f
Add lightning tx dialog (qt and kivy)
2020-02-18 13:02:18 +01:00
ThomasV
4dc74870e1
Catch exceptions raised in LNWorker._pay_to_route
...
Reset payment status if an exception is caught.
Also, do not pass status to the 'invoice_status' network callback.
This fixes #5869 , #5870 , #5964 .
2020-02-17 12:33:43 +01:00
ThomasV
098af02789
kivy: pass message to password_dialog (follow-up d9172ade71
)
2020-02-17 09:16:29 +01:00
ThomasV
938fab86d1
detect redeemed channels ( fix #5963 )
2020-02-16 19:07:20 +01:00
ThomasV
e3ccfe6449
kivy: make backups optional
2020-02-15 17:26:03 +01:00
ThomasV
d9172ade71
kivy: use password + pin_code
...
- password is per wallet, is retained in memory
- pin code is saved in config
2020-02-15 17:09:09 +01:00
ThomasV
d5dc8d1ab2
kivy: save pin code in memory
2020-02-15 16:28:15 +01:00
ThomasV
2dad87cbb4
Automate backups:
...
- backup wallet file on each channel creation
- on android, a backup password is entered in settings
- on desktop, the backup path is in settings
2020-02-15 16:28:15 +01:00
ThomasV
87b7d2c0c0
wallet backup function for kivy/android
2020-02-15 16:28:15 +01:00
SomberNight
d6b4b19824
kivy: allow generic passwords for wallets
2020-02-15 16:28:15 +01:00
SomberNight
111ef9ebb1
follow-up fixes to storage-db separation
...
e1ce3aace7
2020-02-13 20:00:12 +01:00
ThomasV
e1ce3aace7
Separate db from storage
...
- storage is content-agnostic
- db and storage are passed to wallet contructor
2020-02-10 17:45:23 +01:00
Alexander Roth
b6a5f6f2fc
Added coloring to the AddressPopup dialog:
...
- Moved the coloring logic (address_colors) from tx_dialog.py to a new file electrum/gui/kivy/util.py
- Added background_color to <RefLabel> in main.kv
- Calling address_colors in the initialization of AddressPopup and setting the foreground and background color
Code cleanup spaces
Code cleanup spaces
Fixed typo
2020-02-01 18:16:26 +01:00
SomberNight
9b28f6df7b
wallet: encrypt storage by default
...
notably, now also in kivy
2019-12-19 14:22:47 +01:00
SomberNight
02baae10d7
kivy: implement opening storage-encrypted wallet files
2019-12-17 18:39:52 +01:00
SomberNight
20bbe85bce
receive requests: encode lightning invoices as uppercase -> smaller QRs
...
By encoding bolt11 invoices as uppercase text in QR codes,
we can use the alphanumeric mode, which results in non-negligibly smaller QR codes.
2019-12-07 05:58:58 +01:00
roth
2ce8dd460b
Color-Code Addresses in Kivy UI ( #5774 )
...
* Added static coloring of the TX output dialog.
Coloring was suggested in #5750
2019-11-28 20:40:28 +00:00
SomberNight
ddeb176b3d
kivy: fix open_channel (API was changed)
2019-11-23 20:50:30 +01:00
SomberNight
557987d4eb
add/fix some open_channel related type hints
2019-11-23 20:28:46 +01:00
ThomasV
fd8236538a
Open lightning channels with partially signed tx.
...
Fixes #5379 .
2019-11-23 19:49:12 +01:00
ThomasV
61dfcba092
Refactor channel states:
...
- persisted states are saved
- state transitions are checked
- transient states are stored in channel.peer_state
- new channel states: 'PREOPENING', 'FUNDED' and 'REDEEMED'
- upgrade storage to version 21
2019-11-22 20:14:54 +01:00
SomberNight
aa518c0ea5
psbt: allow insecure signing of legacy UTXOs without full previous tx
...
When "importing" a psbt, we accept witness utxos even for legacy inputs
(warning shown to user in gui).
When "exporting" a psbt, we follow the spec; except when exporting as a QR code,
in which case we include witness utxos for all inputs.
This makes QR codes for psbts with legacy inputs feasible, just like they
were before, with our custom tx serialization format (with the same risk,
of burning coins as miner fees).
2019-11-07 02:40:10 +01:00
SomberNight
74a46689d8
kivy tx dialog: was missing tx.add_input_from_wallet() call
...
resulted in e.g. incorrect "tx unrelated to wallet" detection for beyond-gap-limit stuff
2019-11-07 02:26:58 +01:00
SomberNight
bafe8a2fff
integrate PSBT support natively. WIP
2019-11-04 22:24:36 +01:00
ThomasV
e35bddcc09
kivy: fix can_pay in invoice_dialog
2019-10-23 08:33:16 +02:00