1
0
Commit Graph

13572 Commits

Author SHA1 Message Date
ThomasV
043a264fb7 Merge pull request #7114 from benma/bb02
bitbox02: bump dependency to 5.2.0
2021-03-18 10:45:38 +01:00
Marko Bencun
a16fdd54a8 bitbox02: bump dependency to 5.2.0 2021-03-18 09:45:15 +01:00
ThomasV
9e6996c5c1 qt: use 'local' icon for future transactions 2021-03-18 09:21:36 +01:00
ThomasV
8a051dcd76 lnworker: use booleans for enable_htlc_settle, enable_htlc_forwarding 2021-03-18 07:48:30 +01:00
ThomasV
e5686c8dc5 test_backup: sleep is not needed anymore 2021-03-18 07:26:33 +01:00
SomberNight
3ea27beb4e daemon: change stop() to use events, instead of polling 2021-03-17 19:42:20 +01:00
SomberNight
5dfe1d1b6c commands: make stop() CLI cmd wait for daemon to stop 2021-03-17 19:42:16 +01:00
ThomasV
8870ed7cc5 test_backup: check onchain balance 2021-03-17 19:20:33 +01:00
ThomasV
aa58e270c7 increase width of tx dialog, to have one line per input 2021-03-17 18:35:14 +01:00
SomberNight
4315fa4371 BIP-0350: use bech32m for witness version 1+ addresses
We have supported sending to any witness version since Electrum 3.0, using
addresses as specified in BIP-0173 (bech32 encoding).
BIP-0350 makes a breaking change in address encoding, and recommends using
(and using only) a new encoding (bech32m) for sending to witness version 1
and later. The address encoding for currently in use witness v0 addresses
remains the same, as in BIP-0173; following the BIP-0350 spec.

closes https://github.com/spesmilo/electrum/issues/6949

related:
cd3885c0fb/bip-0350.mediawiki
https://github.com/bitcoin/bitcoin/pull/20861
2021-03-17 18:11:55 +01:00
SomberNight
468636eae0 tests: add missing test vectors from BIP-0173 (bech32) 2021-03-17 17:13:10 +01:00
ThomasV
cd025c5553 inspect_tx_candidate: tx output must be of address type 2021-03-17 15:55:53 +01:00
ThomasV
e954bfaa54 request_force_close: close and reopen existing peer connection,
because channel_reestablish cannot be sent twice in the same session
2021-03-17 15:36:21 +01:00
ThomasV
1c8c236933 channels_with_funds: self._channels -> self.channels 2021-03-17 13:50:57 +01:00
ThomasV
8d8f078544 Merge pull request #7107 from bitromortac/2103-trampoline-mpp-single
mpp_split: use single nodes for mpp payments over trampoline
2021-03-17 13:47:13 +01:00
SomberNight
16f874b58e network: trigger 'network_updated' as soon as set_parameters finishes
e.g. kivy GUI refreshes some fields based on this callback;
this should result in faster refreshes
(otherwise e.g. when switching servers, a callback might only come if
we successfully connect to the new server; or if an unrelated event
triggers it)
2021-03-17 13:40:27 +01:00
ThomasV
ef42d26cbf qt channels_list: separate on_success handlers for close_channel and request_force_close 2021-03-17 09:32:34 +01:00
ThomasV
3c9838d999 lnworker: merge request_force_close and request_remote_force_close 2021-03-17 09:15:40 +01:00
bitromortac
8828998093 mpp_split: use single nodes for mpp payments over trampoline 2021-03-17 08:22:19 +01:00
SomberNight
fa999de305 tests: re bolt11 tests, also check invoice str in test_roundtrip 2021-03-16 20:39:51 +01:00
SomberNight
5e12f88be3 lnworker: minor clean-up, fix typo 2021-03-16 19:19:26 +01:00
SomberNight
468f3b2b8d lnchannel: verify sig of remote chanupd (for inc edge of direct chan)
This is re the channel update for the incoming direction of our own channels.
This message can only come from the counterparty itself so maybe the sig check
is redundant... but for sanity I think we should check it anyway.
2021-03-16 19:07:31 +01:00
ThomasV
bcfcc20363 fix: add request_force_close method 2021-03-16 17:27:37 +01:00
ThomasV
eec97ddfbb (trivial) lnbackups -> lnworker 2021-03-16 16:58:44 +01:00
ThomasV
905796baeb kivy: show channel backup before force-close 2021-03-16 10:30:52 +01:00
ThomasV
2f69f3644f kivy: show channel backup capacity 2021-03-16 09:30:25 +01:00
SomberNight
dca182992f ln gossip: run sig checks in a thread
to avoid blocking the asyncio event loop
2021-03-15 20:44:24 +01:00
SomberNight
cedc71a8e3 ln gossip: make sure all signatures are verified
we have not been verifying signatures of ChannelUpdate messages...
(regression from 2d0ef78a11)
2021-03-15 20:44:20 +01:00
SomberNight
ea56a259e4 lnworker: (trivial) split handle_error_code_from_failed_htlc method 2021-03-15 20:44:16 +01:00
ThomasV
0953da75b7 fix regression from 652d10aa5f 2021-03-15 19:29:54 +01:00
SomberNight
7243e5b763 channel_db: (fix) asyncio.Event.set() is not thread-safe
it must be called from asyncio thread
2021-03-15 17:54:13 +01:00
ThomasV
8588674539 channel backups: display status from lnworker instead of channel state 2021-03-15 16:05:05 +01:00
SomberNight
5cbfebeb24 kivy server selection: don't hide ':t' protocol suffix 2021-03-15 15:55:18 +01:00
ThomasV
2dc79b7040 (minor) word wrap qt tooltip 2021-03-15 14:48:47 +01:00
ThomasV
d6ebb4d4ca (trivial) rm debugging code 2021-03-15 14:33:57 +01:00
ThomasV
b18123fb61 Qt: add "save backup" checkbox to force-close dialog 2021-03-15 14:24:08 +01:00
ThomasV
cf926e8412 Qt: add option to request force close of channel 2021-03-15 12:38:00 +01:00
ThomasV
d0a4f3581e follow-up previous commit 2021-03-15 11:15:19 +01:00
ThomasV
abaefa362a kivy: unify fee dialogs
- confirm_tx_dialog and bump_fee_dialog inherit from FeeSliderDialog
 - changing the slider method does not require an extra popup
2021-03-15 11:02:05 +01:00
ThomasV
3ed2173a04 remove newlines in get_tx_fee_warning, it does not render well on kivy 2021-03-15 09:26:16 +01:00
SomberNight
eaffced6dd binaries: bump python version 2021-03-13 16:52:19 +01:00
SomberNight
6e6e956de4 appimage build: adapt to new PyQt (5.15.3+) layout 2021-03-13 16:52:15 +01:00
SomberNight
cecbaca4d1 rerun freeze_packages 2021-03-13 15:00:05 +01:00
SomberNight
b8395f71be contrib: freeze_packages should pin latest pip/etc if possible
We've already been pinning pip/setuptools/wheel; it is `pip freeze --all`
(the "--all" arg) that does that. This change just tries to ensure that
we pin the latest version when possible.
Previously if e.g. "pip" was not pulled in by any package in "requirements${i}.txt",
we would just pin whatever is installed locally.
2021-03-13 14:53:41 +01:00
ThomasV
2ad49bbc5b Kivy: Show fee dialog before opening a new channel.
Remove fee and rbf from settings, as they are now always proposed
2021-03-13 09:34:19 +01:00
ThomasV
3e3cfd91a6 Merge pull request #7104 from SomberNight/202103_qt_receive_tab_expiration_help
qt receive tab: change "Expires after" label and help text
2021-03-12 19:58:01 +01:00
SomberNight
4d4a66c9ba lnpeer: add comments to process_unfulfilled_htlc 2021-03-12 19:41:47 +01:00
ThomasV
018f09f2af use mktx_for_open_channel in commands module. fix indentation 2021-03-12 19:05:25 +01:00
SomberNight
5dbf6dbdec qt receive tab: change "Expires after" label and help text 2021-03-12 18:54:49 +01:00
ThomasV
7c2b7ca5c0 add channel backups to result returned by list_channels 2021-03-12 18:53:09 +01:00