ThomasV
0869e09275
Qt: fix balance column
5 years ago
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 .
5 years ago
ThomasV
472c0defee
fix lnchannel.get_payments: unsettled htlcs may have overwritten the returned results.
5 years ago
ThomasV
6e6e829ef7
breach remedy: get spender transaction from LNWatcher's db
5 years ago
ThomasV
098af02789
kivy: pass message to password_dialog (follow-up d9172ade71
)
5 years ago
ThomasV
58a0a9b160
kivy send screen: always show field separators. fix on_clear.
5 years ago
ThomasV
eb28f57051
(minor) kivy: initialize invoice_popup
5 years ago
ThomasV
938fab86d1
detect redeemed channels ( fix #5963 )
5 years ago
ThomasV
f8da0f87a7
follow-up previous commit
5 years ago
ThomasV
3a35f90aa0
Do not use network callback to update channel states; call LNWorker methods directly instead.
A callback was used because a single LNWnwatcher object used to be shared for all wallets.
Since wallet now have their own LNWatcher instance, this can be simplified.
5 years ago
ThomasV
36f32651cc
Define network.try_broadcasting() method.
Use it when rebroadcasting a force-close tx,
because the channel state is already set.
5 years ago
ThomasV
dba6cb8a96
lnwatcher: use height == TX_HEIGHT_LOCAL to determine channel onchain state
5 years ago
ThomasV
e7c02f1935
switch menus: status <-> wallets
5 years ago
ThomasV
bb739f4de9
Merge pull request #5951 from spesmilo/ln_backups
save wallet backups on channel creation
5 years ago
ThomasV
5ae6e43323
message formatting
5 years ago
ThomasV
e3ccfe6449
kivy: make backups optional
5 years ago
ThomasV
d9172ade71
kivy: use password + pin_code
- password is per wallet, is retained in memory
- pin code is saved in config
5 years ago
SomberNight
497d6019e1
kivy/android: ask for STORAGE permission at runtime
5 years ago
ThomasV
d5dc8d1ab2
kivy: save pin code in memory
5 years ago
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
5 years ago
ThomasV
cee8607218
save_backup: use db.dump() to clone the db
5 years ago
ThomasV
88d5cdf87c
fix test_lnpeer
5 years ago
ThomasV
87b7d2c0c0
wallet backup function for kivy/android
5 years ago
SomberNight
d6b4b19824
kivy: allow generic passwords for wallets
5 years ago
ThomasV
2f10bc2f4d
reestablish: force_close if we are a recent backup
5 years ago
ThomasV
62eceeb573
Save and read lighting backups (Qt)
5 years ago
SomberNight
edc00b448f
fix lightning "init" msg assertion error
closes #5962
5 years ago
SomberNight
a6e3a244e8
add comment re lnchannel channel_states
5 years ago
ThomasV
bb21e01823
(minor) call lnwatcher.add_channel from lnworker.add_channel
5 years ago
ThomasV
471fdd1d97
follow-up previous commit
5 years ago
ThomasV
2a7b5081c9
channel states: make sure that closing_txid is saved if channel is closed
5 years ago
SomberNight
111ef9ebb1
follow-up fixes to storage-db separation
e1ce3aace7
5 years ago
SomberNight
5d8d8f743a
kivy: more reliable saving of "last wallet"
The intended behaviour is that when the user launches the app,
the wallet we try to open is the wallet most recently opened by the user.
The old code in 'on_stop' in practice only got called if the user exited via
repeatedly pressing the system 'back' button.
related #5952
5 years ago
SomberNight
091f6ced58
android build: update buildozer and p4a versions
also update NDK version (new p4a demands it)
5 years ago
SomberNight
ab4e2dd9f0
wallet: fix is_mine/can_sign. don't just rely on ks, also check script
Previously a standard (single-sig) wallet would consider a multisig txin as is_mine
(if the keystore found its pubkey in the txin).
fixes #5948
5 years ago
SomberNight
0d33da2f95
wallet: (sanity) is_mine now guaranteed to handle 'None' input
5 years ago
SomberNight
07f5d6b745
keystore: 'get_tx_derivations' no longer public
5 years ago
ThomasV
beee880dba
fix data_loss_protect (missing return, json conversion)
5 years ago
ThomasV
9734546fe9
test_lnpeer: use less side-effects
5 years ago
ThomasV
e3630d87b2
test_lnpeer: test_reestablish_with_old_state
5 years ago
ThomasV
3377627070
reestablish_channel: shorter varnames
5 years ago
ThomasV
69ef9aa3d7
channel_reestablish: assume that DLP is enabled, because we require it
5 years ago
SomberNight
e42e17779d
windows: dll-load 'hack' needs to be applied not only from main script
but also when running tests, or just importing electrum from an interpreter
5 years ago
SomberNight
23a93ef7ad
windows: when running from source, load DLLs from main dir
Load DLLs from inner 'electrum' dir instead of '.dlls'.
To make it consistent with where we expect libsecp256k1 (.dll/.so) be.
(note that while in case of libsecp we specifically already search the main dir,
without this change, other DLLs such as libusb or libzbar would not be found there)
5 years ago
SomberNight
e8118e1845
gitignore: add .so/.dll in inner 'electrum' folder
5 years ago
ThomasV
9ccfa318f8
add new peer_state for the case where we are waiting for the remote party to force close a channel
5 years ago
ThomasV
8688a6530a
reestablish_channel: do not send second channel_reestablish message if they are ahead (they should know it)
5 years ago
ThomasV
ece75c3244
test_lnpeer: simple test of channel_reestablish
5 years ago
ThomasV
28dc1928a0
Merge pull request #5947 from SomberNight/202002_ecdsa
make libsecp256k1 a mandatory dependency
5 years ago
SomberNight
f78589ec77
update README to mention libsecp
5 years ago