SomberNight
7297e94970
hw wallets: handle cancellation for "query_choice" in wizard
E | gui.qt.exception_window.Exception_Hook | exception caught by crash reporter
Traceback (most recent call last):
File "...\electrum\electrum\plugins\hw_wallet\qt.py", line 193, in win_query_choice
self.choice = self.win.query_choice(msg, labels)
File "...\electrum\electrum\gui\qt\installwizard.py", line 545, in query_choice
self.exec_layout(vbox, '')
File "...\electrum\electrum\gui\qt\installwizard.py", line 392, in exec_layout
raise UserCancelled
electrum.util.UserCancelled
5 years ago
SomberNight
6760c3f252
hw wallets: introduce HardwareHandlerBase
previously, client.handler was sometimes
- an InstallWizard
- a QtHandlerBase where win was an ElectrumWindow
- a QtHandlerBase where win was an InstallWizard
- a CmdLineHandler
That's just too much dynamic untyped undocumented polymorphism...
Now it will never be an InstallWizard (replaced with QtHandlerBase where win is an InstallWizard),
and now in all cases client.handler is an instance of HardwareHandlerBase, yay.
related: #6063
5 years ago
matejcik
4cd50dd75a
trezor: bump lib version, implement new passphrase-on-device UI
5 years ago
ThomasV
3b7299bfde
Merge pull request #6062 from SomberNight/20200331_wizard_multisig_warning
wizard: add a warning to multisig wallet creation to backup xpubs
5 years ago
SomberNight
8e9b401c88
wizard: add a warning to multisig wallet creation to backup xpubs
5 years ago
SomberNight
8be94076b5
network: update tx broadcast error msgs whitelist
fixes #6052
5 years ago
SomberNight
900a7631cf
commands: add new cmd "getprivatekeyforpath" to export a WIF for a path
related: #6061
5 years ago
ghost43
e1e5167ca9
Merge pull request #6060 from JeremyRand/commands-getservers-clarify
Commands: clarify description of getservers
5 years ago
JeremyRand
72de433f5c
Commands: clarify description of getservers
The previous description made it sound like it returned the list of
currently connected servers; this clarifies that it's only a list of
candidate servers to connect to (no guarantee that they are all currently
connected).
5 years ago
SomberNight
79d57784c1
lnchannel: add more type hints
5 years ago
SomberNight
db84de5493
trivial: use "chunks()" for htlc_sigs in lnchannel
5 years ago
SomberNight
8ad6d5ddda
lnchannel: clean-up docstrings a bit
Removed lnd copyright as by now everything covered in this file
has been rewritten.
5 years ago
SomberNight
acb0d7ebac
lnchannel: better checks for "update_add_htlc"
I believe this now implements all the checks listed in BOLT-02 for
update_add_htlc, however, the BOLT is sometimes ambiguous,
and actually the checks listed there IMO are insufficient.
There are still some TODOs, in part because of the above.
5 years ago
SomberNight
90f3b667aa
small clean-up re max CLTV delta for LN
5 years ago
ghost43
d0a80226ea
Merge pull request #6055 from JeremyRand/utxolist-stretch-refactor
UTXOList: Split stretch_column out of __init__
5 years ago
JeremyRand
001ee25604
UTXOList: Split stretch_column out of __init__
Makes it easier to subclass UTXOList without code duplication.
5 years ago
SomberNight
875e6b31b1
make_libsecp256k1.sh: add comment how to cross-compile to Windows
related: #5976 , #6054
5 years ago
ghost43
322cb566e8
Merge pull request #6054 from JeremyRand/readme-libtool
Readme: Clarify dependencies of make_libsecp256k1.sh
5 years ago
JeremyRand
d520dc9fae
Readme: Clarify dependencies of make_libsecp256k1.sh
5 years ago
SomberNight
7498271927
follow-up prev: htlc direction madness
Sometimes direction was relative sometimes absolute... ?!
No. Make it always relative (to subject).
5 years ago
SomberNight
5b7ce98ab2
lnchannel: fix included_htlcs
5 years ago
ThomasV
bb35e330fb
do not show freeze/unfreeze channel options if channel is closed
5 years ago
SomberNight
7ac1cace7a
wallet_db.clear_history: now clears prevouts_by_scripthash too
(which is the logical thing to do, as it too will be rebuilt as part of
the history, and the parts of it that might not be present after the
rebuild is exactly what a call to "clear_history" is supposed to get rid of)
5 years ago
SomberNight
3ed6afce64
lnchannel: implement freezing channels (for receiving)
A bit weird, I know... :)
It allows for rebalancing our own channels! :P
5 years ago
SomberNight
79d202485e
lnworker: rename can_send to num_sats_can_send
5 years ago
SomberNight
5c8455d00b
lnchannel: when adding HTLCs, run checks for both directions
5 years ago
SomberNight
01207316aa
storage upgrade: move "htlc_minimum_msat" to base channel config
5 years ago
SomberNight
53c6fc8cf1
lnchannel: test for max htlc value (needs to be below protocol maximum)
5 years ago
SomberNight
777e350fae
lnchannel: partly fix available_to_spend
we were looking at inconsistent ctns
and we were looking at the wrong subject's ctx
all the FIXMEs and TODOs here will still warrant some attention.
(note that test_DesyncHTLCs was passing incorrectly:
the "assertRaises" was catching a different exception)
5 years ago
SomberNight
deb50e7ec3
lnchannel: implement "freezing" channels (for sending)
and expose it in Qt GUI
5 years ago
SomberNight
9c8d2be638
qt channels list: sort by short chan id by default
5 years ago
SomberNight
95979ba58d
qt channels list: make selection more in line with other tabs
(allow selecting none, and allow multi-select)
5 years ago
SomberNight
7488cc91cd
qt channels: expose long channel id (in ctx menu and details dlg)
Also add separators to context menu to more visible separate
close/delete actions from rest.
5 years ago
ghost43
1448bfe937
Merge pull request #6039 from interrupt00/document-how-to-disable-proxy
Document how to disable proxy
5 years ago
interrupt00
df700ca96a
Document how to disable proxy
5 years ago
SomberNight
cf5872d2c1
follow-up prev
5 years ago
SomberNight
2cc76fbbbd
lnworker: fix type error re pending_payments, and impl malformed htlcs
In old code, in lnpeer.htlc_switch(), "error" in lnworker.pending_payments
had incorrect type.
TODO: we need tests for payment failures...
5 years ago
SomberNight
9a70b79eea
follow-up prev: try to handle json db int key madness :/
5 years ago
SomberNight
b524460fdf
lnpeer: implement basic handling of "update_fail_malformed_htlc"
5 years ago
SomberNight
ea0981ebeb
lnutil.UpdateAddHtlc: use attrs instead of old-style namedtuple
5 years ago
ThomasV
444610452e
wallet_db: encapsulate type conversions with attr.s converter
5 years ago
ThomasV
df15042cee
Quantitative easing of lightning fees
5 years ago
ThomasV
d5469b7eb5
fix #6037
5 years ago
SomberNight
5e59d1a0ed
lnonion: use random starting bytes in Sphinx packet as in updated BOLT4
see https://github.com/lightningnetwork/lightning-rfc/pull/697
5 years ago
SomberNight
510399d3d2
wallet: dust limit calculation should round up (not down)
related to prev commit
closes #6035
5 years ago
SomberNight
a500db371d
wallet: put hard limit on minimum of relayfee: 1 sat/byte
(note that the dust limit is calculated based on the relayfee)
closes #6035
5 years ago
SomberNight
ec6be665d5
lnwatcher: unwatch deeply mined channels
reduces log spam generated by "REDEEMED" channels...
5 years ago
SomberNight
8897360a72
travis: change ppa for bitcoind
5 years ago
SomberNight
a7c02c770d
follow-up prev: network.interface might be None
5 years ago
ThomasV
133d74adfb
fee estimates: use median if auto-connect
5 years ago