ThomasV
b9eaba3e85
replace await_local/remote
5 years ago
SomberNight
7e880427a2
try to clean-up README
5 years ago
SomberNight
adc97af58c
clear up requirements re pycryptodomex
5 years ago
SomberNight
74a3faf803
crypto: add 'cryptography' as alt dependency for 'pycryptodomex'
5 years ago
SomberNight
18f3a37032
crypto: move LN-related chacha20/poly1305 code into crypto.py
5 years ago
SomberNight
dae842e2ad
tests: made TestLNTransport.test_loop more robust
5 years ago
SomberNight
7962e17df6
invoices: deal with expiration of "0" mess
Internally, we've been using an expiration of 0 to mean "never expires".
For LN invoices, BOLT-11 does not specify what an expiration of 0 means.
Other clients seem to treat it as "0 seconds" (i.e. already expired).
This means there is no way to create a BOLT-11 invoice that "never" expires.
For LN invoices,
- we now treat an expiration of 0, , as "0 seconds",
- when creating an invoice, if the user selected never, we will put 100 years as expiration
5 years ago
ThomasV
4c177c4c92
less verbose update_fee log
5 years ago
SomberNight
01981f71fb
lnworker.add_peer: don't block event loop with DNS
5 years ago
SomberNight
fbd0c9aae8
lnworker: peer-bootstrapping: add IPv6 fallback nodes
5 years ago
SomberNight
59a428ea7f
lnworker: re-enable dns seeds for peer-finding bootstrap
but only for mainnet
5 years ago
ThomasV
c986e522bf
backup help text
5 years ago
ThomasV
9ed9fe7002
open channel dialog improvements
5 years ago
ThomasV
f67011d477
Qt: do not filter out paid invoices/requests. let user delete multiple items
5 years ago
ThomasV
89fa9b5090
Merge pull request #5898 from leo-lb/plausible-deniability-config
Add command line option to forget config on exit.
5 years ago
ThomasV
a52ac0cc74
(minor) text change: 'Expires after'
5 years ago
ThomasV
94443ebe5e
Qt: list requests and invoices in descending order
5 years ago
ThomasV
abb0760616
Simplify receive tab:
- display receiving address in receiving tabs
- display lightning invoice as 'address'
- save last active tab in preferences
5 years ago
SomberNight
99f736f3e7
ChannelDB.load_data: add comment re bad performance, and some speed-up
On my machine, ChannelDB.load_data() went from around 6 sec to 4 sec,
just by commenting out that assert in lnmsg.
related #6006
5 years ago
SomberNight
4d6b0184b9
ChannelDB: fix typo in sql query - seems harmless though?
5 years ago
SomberNight
3f9e761b67
ChannelDB: (trivial) add prefix to names of db methods
(and some type annotations)
This makes it clear these methods are not public.
5 years ago
SomberNight
53564f2496
ChannelDB: rm NodeAddress class, just use LNPeerAddr
5 years ago
SomberNight
cdb72509a7
lnrouter: change edge cost estimate (distance metric)
Old estimate was heavily biased towards simply minimising CLTV sum.
(fees had a too low weight; typically they were ~noise)
Now also take payment_amount into account.
5 years ago
ThomasV
367d30d6c0
Merge pull request #6003 from spesmilo/htlc_switch
Htlc switch
5 years ago
ThomasV
79497cd3ec
(minor) rm unneeded decorator
5 years ago
ThomasV
97d191a121
maybe_forward_htlc: catch exceptions raised by nexp_peer. return only error
5 years ago
SomberNight
c81335fb44
lnrouter: simplify max fee sanity checks
5 years ago
SomberNight
2fab681444
bolt11 invoice: strip (and so accept with) leading/trailing whitespaces
5 years ago
SomberNight
660d7d137c
commands: add changegaplimit and getminacceptablegap cmds
There are some legitimate use-cases for changing the gap limit,
so just as it has already been possible to do in the GUI (using the console only! don't expose this to mere mortals.),
now CLI/RPC users have this exposed too.
The "changegaplimit" command will always raise unless invoked with the --iknowwhatimdoing option.
closes #5882
e.g.:
$ curl --data-binary '{"id":"curltext","jsonrpc":"2.0","method":"changegaplimit","params":{"new_limit": 30, "iknowwhatimdoing": true, "wallet":"~/.electrum/testnet/wallets/test_segwit_2"}}' http://user:password@127.0.0.1:7777
$ ./run_electrum --testnet changegaplimit 30 --iknowwhatimdoing -w ~/.electrum/testnet/wallets/test_segwit_2
5 years ago
SomberNight
ac6a5a3c5f
wallet: min_acceptable_gap should mimic wallet.synchronize
if wallet.synchronize uses address_is_old, so should min_acceptable_gap
5 years ago
SomberNight
f90d96b346
Qt LN gossip sync indicator: hide if 100%; rescale 95%->100%; tooltip
5 years ago
SomberNight
a97e7bae05
ChannelDB: make gossip sync progress updates cheaper
get_num_channels_partitioned_by_policy_count() was too slow
5 years ago
ThomasV
f801307a08
move htlc_switch task to lnpeer
5 years ago
ThomasV
5d3bca7bb8
htlc_switch: decouple maybe_send_commitment from htlc processing
5 years ago
ThomasV
cfc20845a2
lnworker: dissociate htlc forwarding and fulfillment
5 years ago
ThomasV
09675bd911
make maybe_fulfill_htlc, maybe_forward_htlc synchronous.
move async operations to lnworker.htlc_switch
5 years ago
ThomasV
d827aedd16
lnpeer: do not drop channel updates if cannot send
5 years ago
ThomasV
da67fda92a
HTLC switch:
- fulfills/fails/forwards HTLCs
- onion_packets are saved when update_add_htlc is received
5 years ago
SomberNight
387c2a1acd
kivy wallet info screen: handle "show seed" for watch-only/no-seed case
For a watch-only wallet, previously a superfluous dummy "Tap to show"
box was shown.
For a has no seed stored (but not watch-only) wallet (e.g. bip39/xprv/imported_privkeys),
the "show seed" option was there and it raised an uncaught exception.
5 years ago
SomberNight
d4fc73e2b4
kivy tx dialog: don't show "remove tx" option so eagerly
(long standing annoyance, not related to prev commit directly)
5 years ago
SomberNight
7a574c3cbc
wallet/GUI: don't allow "removing" a LN force-close-tx from history
5 years ago
SomberNight
32acc2b10e
qt channels list: show node aliases in new column
5 years ago
SomberNight
9cdc3287c1
ChannelDB: trivial fixes re node alias
5 years ago
SomberNight
c7704fb8ee
lnworker: allow changing labels of chan-open/chan-close txns
5 years ago
SomberNight
5ac01ff6ae
ChannelDB: fix get_recent_peers
5 years ago
SomberNight
968eeebdc0
transaction: follow-up prev
makes more sense to special-case deserialize()
and not invoke the extra logic then
5 years ago
SomberNight
8560930bac
transaction: (fix) invalidate ser cache when changing locktime/version
we can keep the same API, using @property ,
instead of introducing getters and setters
5 years ago
SomberNight
3090cc68bb
Qt tx dialog: show txid as "unknown" while not finalized
5 years ago
SomberNight
6f2cd8b4f5
Qt tx dialog: allow setting custom locktime
closes #2405
closes #1685
5 years ago
SomberNight
d8180c678b
Qt addresses list: show derivation path in tooltip (also addr dialog)
related: #5641
5 years ago