ThomasV
241bf9ddd1
kivy: if password is unified, allow user to reset pin code
4 years ago
SomberNight
638d4f7472
commands: fix signtransaction cmd when used with "privkey" arg
A naive "solver" is implemented locally for p2pkh-like inputs.
Other more complex scripts cannot be signed atm without a wallet.
closes https://github.com/spesmilo/electrum/issues/7117
4 years ago
SomberNight
c2c3ece455
wallet: implement get_utxos at specific block height
This allows looking up what UTXOs the wallet had at a specific time in the past.
4 years ago
ThomasV
4b0f439301
(minor) follow-up ed6eea9161
4 years ago
ThomasV
130842ecd4
Add 'has_onchain_backup' to channel storage, to fix the displayed icon.
Note that this will not fix the value for already existing channels
that have been created with onchain backup; one would need a wallet_db
upgrade in order to fix them (probably not worth the effort).
4 years ago
ThomasV
ed6eea9161
kivy: make sure there is only one resume dialog
4 years ago
ThomasV
a95bdbb331
kivy: count open channels
4 years ago
ThomasV
18d7db12da
Change warning shown on first channel creation
Qt: if created channel is not recoverable, show channel backup after creation
4 years ago
ThomasV
f2aa52e5aa
minor: fix channel backup icon
4 years ago
ThomasV
2b3c64a9d7
qt: use the same 'nocloud' icon in wallet information
4 years ago
ThomasV
ca6cfbc6b0
channels list: group icons to save space
4 years ago
ThomasV
57320c0304
Merge pull request #7133 from SomberNight/202103_qt_channel_features
qt channels list: add "features" column with icons (e.g. trampoline)
4 years ago
SomberNight
db37938963
qt channels list: add "features" column with icons (e.g. trampoline)
4 years ago
ThomasV
9583887c1f
qt: change backup icon, add tooltip
4 years ago
ThomasV
cd6a468fb9
Android: unify password as soon as we know it is possible
4 years ago
SomberNight
2c047c72e1
(trivial) just add some TODOs
4 years ago
SomberNight
50b165fc3b
tests: rename TestSuccess(Exception) to SuccessfulTest
The test framework did not like the "Test" prefix.
```
electrum/tests/test_lnpeer.py:305
/home/travis/build/spesmilo/electrum/electrum/tests/test_lnpeer.py:305: PytestCollectionWarning: cannot collect test class 'TestSuccess' because it has a __init__ constructor (from: electrum/tests/test_lnpeer.py)
```
4 years ago
ThomasV
a5fea043d1
Allow user to remove onchain backups.
4 years ago
ThomasV
ec01380105
kivy: channels list improvements
4 years ago
ThomasV
a67fcdbc8a
channels_list: use icon to tell apart channels from backups
4 years ago
ThomasV
62a95c4b94
lnchannel: add pseudo-state force_close_detected for GUI
4 years ago
ThomasV
763ee86028
lnwatcher: trigger 'verified' callback with the main wallet object.
This is a temporary fix; we should not use an extra synchronizer, and persist results.
4 years ago
ThomasV
f7d2a33d45
set initial trampoline fee level to 1 unless we are testing
4 years ago
ThomasV
c3221f7bfe
(temporary) disable e2e and dual trampoline if first trampoline is ACINQ
4 years ago
ThomasV
0f4297cfa8
fix direct payment to trampoline node
4 years ago
ThomasV
f8804b29c9
(minor) fix mutable default value
4 years ago
ThomasV
aa1fcc784e
wallet: store wanted_height in future_tx, instead of remaining blocks
4 years ago
SomberNight
03d9b29eee
lntransport: optimise read_messages implementation
Not great to use a 'bytes' object as a FIFO buffer, as every slice copies the whole thing.
With bytearray, extending it from the right is fast,
and with the correct syntax, popping from the left is fast too.
see https://stackoverflow.com/a/57748513
https://bugs.python.org/issue19087
5df8a8a1fd
4 years ago
SomberNight
4f13c451c7
tests: rework lntransport test a bit
send multiple messages, and not only short ones
4 years ago
ThomasV
1a49fd440d
kivy: add option to request force-close
4 years ago
ThomasV
22e6fe09c1
Merge pull request #7125 from verretor/2021-03-style
Minor style changes
4 years ago
Benoit Verret
f731c38293
Minor style changes
4 years ago
gruve-p
9609a60ab6
Rename excluce to exclude ( #7121 )
4 years ago
SomberNight
beba807cfe
qt ChannelsList: fix opening channel with "max" amount
4 years ago
SomberNight
d86c45edac
dependencies: bump min aiorpcx, and enforce at runtime
Note that newer aiorpcx started requiring python 3.8, so we cannot use
the latest versions, until we too bump the min python version to 3.8.
We should not do that until debian stable ships python 3.8.
Also, new aiorpcx introduced some API changes which we will need to
adopt, so even if the user locally has recent enough python, we need
old aiorpcx atm.
related: https://github.com/spesmilo/electrum/issues/7118
4 years ago
ThomasV
aad392f6ff
lnworker: filter active channels in create_routes_for_payment
4 years ago
ThomasV
0121cbcbbe
pay_to_route: raise PaymentFailure in case of dropped peer, so that we reset payment status
4 years ago
ThomasV
bbb9ce2430
lnwatcher.try_redeem: output log only the first time a tx is seen
4 years ago
ThomasV
aba0bad30c
lnwatcher: try_redeem must return if tx is None
4 years ago
SomberNight
65e16fabd2
follow-up d8352f1a0a
message-induced exceptions should not propagate out
4 years ago
SomberNight
c912036180
lnpeer: ignore unknown 'odd' type messages
from BOLT-01:
A receiving node:
- upon receiving a message of odd, unknown type:
- MUST ignore the received message.
b201efe054/01-messaging.md (lightning-message-format)
4 years ago
SomberNight
d8352f1a0a
lnworker: nicer logs/error msgs for payment failure
try to decode onion error and log it in human-readable form
4 years ago
ThomasV
2509eaa642
Qt: clarify use_gossip checkbox text
4 years ago
ThomasV
27dcfba98d
channels_list: improve menu for backups
4 years ago
ThomasV
afcc695f4d
channels_list: show backup text in the state column. fix missing import in previous commit.
4 years ago
ThomasV
2fee920f43
On Android, if channels are not recoverable, display channel backup when a new channel is created.
Remove the 'android_backups' setting, which was unpractical.
4 years ago
ThomasV
5ec1f7b398
bump version number. initial release notes for version 4.1.0
4 years ago
ThomasV
64a931f21e
Deterministic NodeID:
- use_recoverable_channel is a user setting, available
only in standard wallets with a 'segwit' seed_type
- if enabled, 'lightning_xprv' is derived from seed
- otherwise, wallets use the existing 'lightning_privkey2'
Recoverable channels:
- channel recovery data is added funding tx using an OP_RETURN
- recovery data = 4 magic bytes + node id[0:16]
- recovery data is chacha20 encrypted using funding_address as nonce.
(this will allow to fund multiple channels in the same tx)
GUI:
- whether channels are recoverable is shown in wallet info dialog.
- if the wallet can have recoverable channels but has an old node_id,
users are told to close their channels and restore from seed
to have that feature.
4 years ago
ThomasV
e3025b3d7b
lnpeer: send update_fee if channel was never used (workaround eclair issue 1730)
4 years ago
SomberNight
9bb39833cc
lnpeer: add sanity checks in channel open flow re ln dummy output
4 years ago