ThomasV
b891d3dc85
new command: get_ssl_domain
5 years ago
relativistic electron
fbc539e2cc
One can now click the back button in the show_xpub_and_add_cosigners wizard step
5 years ago
ThomasV
984da7515a
fix #6125 : detect self-payments
5 years ago
SomberNight
250c99d5b2
travis: use other "coveralls" package
see: https://github.com/z4r/python-coveralls/issues/74
5 years ago
SomberNight
619f8555f5
follow-up prev: trivial rename
Just realised that the "diamond" graph is actually defined in Graph Theory
but it has an extra edge. What we have here is apparently called a "square" graph.
Not that it matters much but might as well name it as such then...
5 years ago
SomberNight
cc4029c335
test_lnpeer: add some multi-hop payment unit tests
5 years ago
SomberNight
7153e753d1
lnworker._pay: allow specifying path as argument
not exposed to CLI/etc yet but will be used in tests soon
5 years ago
SomberNight
63b18dc30f
lnrouter: add PathEdge/LNPaymentPath for (node_id, scid)
5 years ago
SomberNight
04d018cd0f
test_lnpeer: some clean-up, make it easier to add "num_node>2" tests
5 years ago
SomberNight
7951f2ed3b
lnworker.pay: small clean-up
5 years ago
SomberNight
7d3eb5d4db
(trivial) follow-up c1b1638615
5 years ago
SomberNight
62be1cc367
small clean-up re "extract preimage from on-chain htlc_tx"
related: #6122
5 years ago
ThomasV
5c05c06bf0
follow-up prev commit: fix test_lnpeer
5 years ago
ThomasV
7b44e27087
lnpay: return payment log, increase timeout
5 years ago
ThomasV
d7b853f271
follow-up 8ba7e68064
5 years ago
ThomasV
887b643706
follow-up prev commit...
5 years ago
ThomasV
a8c14e65ad
follow-up prev commit
5 years ago
ThomasV
1529b07aa4
follow-up prev commit
5 years ago
ThomasV
c1b1638615
fix htlc forwarding:
- persist fail_htlc error messages
- do not rely on payment_hash in htlc_switch
5 years ago
ThomasV
7cbb102c81
add test with fail_malformed_htlc to forwarding regtest
5 years ago
ThomasV
ab188ff375
add config variable to test update_fail_malformed_htlc
5 years ago
ThomasV
8ba7e68064
fix #6122 : extract preimage from on-chain htlc_tx
5 years ago
ThomasV
f8019d9b6c
Merge pull request #6139 from JeremyRand/crypto-backend-typo
Fix "backed" typo in crypto.py
5 years ago
JeremyRand
62ca53cdf4
Fix "backed" typo in crypto.py
5 years ago
SomberNight
484e317bfa
android build: update p4a and buildozer
should fix travis issues
5 years ago
ThomasV
abe1bece2c
remove UnknownPaymentHash (exception used as value)
5 years ago
ThomasV
a5a5048d53
lnpay: save invoice
5 years ago
ThomasV
085b6ca2ab
jsonrpc: pass timeout to aiohttp session
5 years ago
ThomasV
123b8c1792
(minor) rename chan.sweep_htlc
5 years ago
ThomasV
f53a10084d
create_sweeptxs_for_our_ctx: fix static_remotekey
5 years ago
SomberNight
5bf3115a4a
qt send tab: (fix) allow user to set lower fees if "not enough funds"
Previously if the user tried to pay an invoice, we tried to construct
a tx with the desired feerate. If this raise NotEnoughFunds, we would just
show the error and not let the user change the feerate.
related: https://github.com/spesmilo/electrum/issues/6136#issuecomment-622254754 (method 2)
5 years ago
SomberNight
b9bb78a1db
qt ConfirmTxDialog: fix exc for "max" invoice when "not enough funds"
"not enough funds" is possible even for "max" invoice due to fees
fixes #6136
5 years ago
SomberNight
0ee73378c9
daemon: rm "daemon.wallet" reference
related: #4905 -- when closing a wallet, it can get gc-ed now
TODO: PayServer needs to choose wallet somehow
5 years ago
SomberNight
0f6cbfba8e
qt update checker: do not keep main window ref so it can gc-ed
related: #4905
5 years ago
SomberNight
2105c6c4e6
qt exception window: turn Exception_Hook into singleton
related #4905
related Electron-Cash/Electron-Cash@6a3d76b0ab7bf3fe58390100f5bf2ab8a3261d87
conceptually did not really make sense that the Exception_Hook kept a reference
to an ~arbitrary main window (preventing gc)
5 years ago
SomberNight
2b1a150c52
multi-wallet: properly stop lnworker/lnwatcher
5 years ago
SomberNight
8389892dbd
lnpeer: (trivial) log name for chan.state and chan.peer_state
IntEnum.__format__ just returns an int:
>>> from enum import IntEnum
>>> class Colours(IntEnum):
... red = 1
... blue = 2
...
>>> var = Colours.red
>>> f"{var}"
'1'
>>> f"{var!s}"
'Colours.red'
>>> f"{var!r}"
'<Colours.red: 1>'
5 years ago
SomberNight
9ac41be1e8
network: set .oneserver in __init__
fixes #6135
5 years ago
SomberNight
6f7a4ab048
lnpeer: add get_channel_by_id, for small speed-up
5 years ago
SomberNight
b9b53e7f76
lnworker: fix threading issues for .channels attribute
external code (commands/gui) did not always take lock when iterating lnworker.channels.
instead of exposing lock, let's take a copy internally (as with .peers)
5 years ago
SomberNight
f5eb91900a
use correct feerate when sweeping htlcs
fixes #6131
5 years ago
ThomasV
ab5338b46b
fix #6111 , and show channels tab even if lightning is disabled (follow-up 527e0b9b89
)
5 years ago
SomberNight
527e0b9b89
qt main window: only show "Channels" tab if wallet has lightning
5 years ago
SomberNight
100a216165
qt wallet>info: add text if lightning is not available for wallet
5 years ago
SomberNight
b59c3294b2
fix #6115 : qt wallet>information was broken for imported wallets
5 years ago
ThomasV
853f42dbbb
Merge pull request #6114 from SomberNight/202004_qt_network_dialog
qt network dialog: merge "Overview" and "Servers" tabs
5 years ago
SomberNight
58dee38ed2
qt network dialog: merge "Overview" and "Servers" tabs
5 years ago
SomberNight
bf223470ce
network: handle unparseable server-str
follow-up 9e57ae630b
fixes #6113
5 years ago
SomberNight
56a9ccca6d
interface: make localhost exempt from ip-range bucketing
5 years ago
SomberNight
38980a4f5c
interface: (trivial) make some methods private
5 years ago