author
int64
658
755k
date
stringlengths
19
19
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
list
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
630,969
19.03.2022 15:54:06
-3,600
cbb51b31d83e79564ae90102f7c28ae8972c38fd
kivy updates
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main_window.py", "new_path": "electrum/gui/kivy/main_window.py", "diff": "@@ -505,17 +505,17 @@ class ElectrumWindow(App, Logger):\ntab = self.tabs.ids[name + '_tab']\npanel.switch_to(tab)\n- def show_request(self, is_lightning, key):\n+ def ...
Python
MIT License
spesmilo/electrum
kivy updates
630,969
25.03.2022 13:51:09
-3,600
ba018c707f6639edb4a18d178a60cdef804934b5
Qt: add bolt11_fallback and bip21_lightning options to preferences
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1268,11 +1268,11 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\ndef show_receive_request(self, req):\naddr = req.get_address() or ''\n- URI = req.get_b...
Python
MIT License
spesmilo/electrum
Qt: add bolt11_fallback and bip21_lightning options to preferences
630,969
20.04.2022 13:41:37
-7,200
e992e3a9b2875c2be0c2ae30364d9c7e6a92a9fb
Qt: follow-up
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/utxo_list.py", "new_path": "electrum/gui/qt/utxo_list.py", "diff": "@@ -128,6 +128,10 @@ class UTXOList(MyTreeView):\nif self.wallet.is_frozen_address(address):\nutxo_item[self.Columns.ADDRESS].setBackground(ColorScheme.BLUE.as_color(True))\nut...
Python
MIT License
spesmilo/electrum
Qt: follow-up e362d1aac4c326917592bcfe1f5d679f7649366a
630,870
20.04.2022 17:06:00
-7,200
81d0928abd8674915f5d2d820d56cf9ceb7e2670
exchange_rate: add some type hints
[ { "change_type": "MODIFY", "old_path": "electrum/exchange_rate.py", "new_path": "electrum/exchange_rate.py", "diff": "@@ -8,7 +8,7 @@ import time\nimport csv\nimport decimal\nfrom decimal import Decimal\n-from typing import Sequence, Optional\n+from typing import Sequence, Optional, Mapping, Dict, U...
Python
MIT License
spesmilo/electrum
exchange_rate: add some type hints
630,870
20.04.2022 19:01:10
-7,200
583089d57b517ab001721cfc9e4d883f3d4c4f7c
exchange_rate: normalise some internal types, saner Decimal conversion fix
[ { "change_type": "MODIFY", "old_path": "electrum/exchange_rate.py", "new_path": "electrum/exchange_rate.py", "diff": "@@ -8,7 +8,7 @@ import time\nimport csv\nimport decimal\nfrom decimal import Decimal\n-from typing import Sequence, Optional, Mapping, Dict, Union\n+from typing import Sequence, Opti...
Python
MIT License
spesmilo/electrum
exchange_rate: normalise some internal types, saner Decimal conversion fix https://github.com/spesmilo/electrum/issues/7770
630,969
21.04.2022 11:54:29
-7,200
f53b413643e9a2082117e8e41dc0b8fa46d4da5b
set_frozen_state: trigger refresh of piechart in status bar
[ { "change_type": "MODIFY", "old_path": "electrum/wallet.py", "new_path": "electrum/wallet.py", "diff": "@@ -1570,6 +1570,7 @@ class Abstract_Wallet(AddressSynchronizer, ABC):\nelse:\nself._frozen_addresses -= set(addrs)\nself.db.put('frozen_addresses', list(self._frozen_addresses))\n+ util.trigger_c...
Python
MIT License
spesmilo/electrum
set_frozen_state: trigger refresh of piechart in status bar
630,969
21.04.2022 12:16:33
-7,200
bb2e4109422dc46652bc6579bcfc8149e3c86758
Do not reuse addresses of expired requests. Since expired requests are user-visible, it is very confusing that they get replaced when the user creates a new request.
[ { "change_type": "MODIFY", "old_path": "electrum/wallet.py", "new_path": "electrum/wallet.py", "diff": "@@ -2122,9 +2122,7 @@ class Abstract_Wallet(AddressSynchronizer, ABC):\ndomain = self.get_receiving_addresses()\n# TODO we should index receive_requests by id\n# add lightning requests. (use as ke...
Python
MIT License
spesmilo/electrum
Do not reuse addresses of expired requests. Since expired requests are user-visible, it is very confusing that they get replaced when the user creates a new request.
630,969
22.04.2022 12:03:28
-7,200
d34f5135321ada35201e804ec32d4c739eeda3ac
Qt: adapt receive_lightning_help text
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1184,7 +1184,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nself.receive_address_e = ButtonsTextEdit()\nself.receive_URI_e = ButtonsTextEdit()\nself....
Python
MIT License
spesmilo/electrum
Qt: adapt receive_lightning_help text
630,969
09.04.2022 16:48:27
-7,200
fb6047ec46a4df9613248695c4618fedbfb59bb2
lnworker: fix can_pay_invoice for trampoline MPP Call it from the GUI
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/uix/dialogs/invoice_dialog.py", "new_path": "electrum/gui/kivy/uix/dialogs/invoice_dialog.py", "diff": "@@ -111,7 +111,7 @@ class InvoiceDialog(Factory.Popup):\nself.status_color = pr_color[self.status]\nself.can_pay = self.status in [PR_UNPA...
Python
MIT License
spesmilo/electrum
lnworker: fix can_pay_invoice for trampoline MPP Call it from the GUI
630,870
22.04.2022 16:46:47
-7,200
63c8aeb54c9f161b6bfca73c77304a7e3e088ca9
wallet: fix paying invoice with "max" amount fixes
[ { "change_type": "MODIFY", "old_path": "electrum/wallet.py", "new_path": "electrum/wallet.py", "diff": "@@ -776,13 +776,13 @@ class Abstract_Wallet(AddressSynchronizer, ABC):\nheight=self.get_local_height()\nif pr:\nreturn Invoice.from_bip70_payreq(pr, height)\n- amount = 0\n+ amount_msat = 0\nfor x...
Python
MIT License
spesmilo/electrum
wallet: fix paying invoice with "max" amount fixes https://github.com/spesmilo/electrum/pull/7774
630,870
22.04.2022 19:53:55
-7,200
adfe542fae126a3ab0dd2d8ad89c2d314fbb954d
wallet_db upgrade: recalc keys of outgoing on-chain invoices closes
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main_window.py", "new_path": "electrum/gui/kivy/main_window.py", "diff": "@@ -19,7 +19,7 @@ from electrum import util\nfrom electrum.util import (profiler, InvalidPassword, send_exception_to_crash_reporter,\nformat_satoshis, format_satoshis_p...
Python
MIT License
spesmilo/electrum
wallet_db upgrade: recalc keys of outgoing on-chain invoices closes https://github.com/spesmilo/electrum/issues/7777
630,969
23.04.2022 09:28:41
-7,200
b9139a24720e32d68cbf446185b2cbc43399b63e
minor fix: update_receive_address_styling
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1287,6 +1287,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\n# alphanumeric mode; resulting in smaller QR codes\nlnaddr_qr = lnaddr.upper()\nself.rece...
Python
MIT License
spesmilo/electrum
minor fix: update_receive_address_styling
630,969
23.04.2022 10:43:50
-7,200
31dc93eade6431310242548348f7c50d4a26c733
Qt: remove QR button from receive text widget. Add tooltip instead
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1195,7 +1195,6 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\ne.addCopyButton(self.app)\ne.setReadOnly(True)\ne.setFixedSize(fixedSize, fixedSize)\n- e...
Python
MIT License
spesmilo/electrum
Qt: remove QR button from receive text widget. Add tooltip instead
630,969
23.04.2022 12:06:24
-7,200
8354dd006bae178d197b5e524cde038eaaa35065
fix receiving lightning requests without amount
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -1789,6 +1789,7 @@ class LNWallet(LNWorker):\nwrite_to_disk: bool = True,\n) -> Tuple[LnAddr, str]:\n+ assert amount_msat is None or amount_msat > 0\ntimestamp = int(time.time())\nrouting_h...
Python
MIT License
spesmilo/electrum
fix receiving lightning requests without amount
630,969
23.04.2022 19:24:31
-7,200
2117118047b2ed41e9906655b5482d8faa85ae51
set_request_status: pass the right key to request_status callback.
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -1924,7 +1924,9 @@ class LNWallet(LNWorker):\ndef set_request_status(self, payment_hash: bytes, status: int) -> None:\nif self.get_payment_status(payment_hash) != status:\nself.set_payment_...
Python
MIT License
spesmilo/electrum
set_request_status: pass the right key to request_status callback.
630,969
23.04.2022 19:25:24
-7,200
a0a81c31bd7bc476106abe93b8af8943a530635c
Qt: hide receive tabs when payment is received.
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1736,6 +1736,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nif status == PR_PAID:\nself.notify(_('Payment received') + '\\n' + key)\nself.request_lis...
Python
MIT License
spesmilo/electrum
Qt: hide receive tabs when payment is received.
630,870
25.04.2022 21:04:46
-7,200
6633ef4c350a9cda6d5650ec83d61052c5a77aca
build appimage: bump pkg2appimage version should fix by including commit
[ { "change_type": "MODIFY", "old_path": "contrib/build-linux/appimage/make_appimage.sh", "new_path": "contrib/build-linux/appimage/make_appimage.sh", "diff": "@@ -15,7 +15,7 @@ export GCC_STRIP_BINARIES=\"1\"\n# pinned versions\nPYTHON_VERSION=3.9.11\n-PKG2APPIMAGE_COMMIT=\"eb8f3acdd9f11ab19b78f5cb15...
Python
MIT License
spesmilo/electrum
build appimage: bump pkg2appimage version should fix https://github.com/spesmilo/electrum/issues/7784 by including commit https://github.com/AppImage/pkg2appimage/commit/1e3ecde6b92ef198405463415b8090a4435d0cb0
630,859
26.04.2022 00:35:42
-10,800
6d049a30f24bcacfc89c83224f5ba734c1392708
fix typo in warning message shown when enabling lightning
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main_window.py", "new_path": "electrum/gui/kivy/main_window.py", "diff": "@@ -1461,7 +1461,7 @@ class ElectrumWindow(App, Logger):\nelse:\nmsg = _(\n\"Warning: this wallet type does not support channel recovery from seed. \"\n- \"You will nee...
Python
MIT License
spesmilo/electrum
fix typo in warning message shown when enabling lightning (#7782)
630,870
26.04.2022 18:05:45
-7,200
b7dd51612e5a88a7c8bbf687fc98f6f772cd4ea1
asyncio: use loop.create_future() instead of asyncio.Future() from : > the recommended way to create a Future object is to call loop.create_future(). > This way alternative event loop implementations can inject their own optimized implementations of a Future object.
[ { "change_type": "MODIFY", "old_path": "electrum/interface.py", "new_path": "electrum/interface.py", "diff": "@@ -363,7 +363,7 @@ class Interface(Logger):\nLOGGING_SHORTCUT = 'i'\ndef __init__(self, *, network: 'Network', server: ServerAddr, proxy: Optional[dict]):\n- self.ready = asyncio.Future()\n...
Python
MIT License
spesmilo/electrum
asyncio: use loop.create_future() instead of asyncio.Future() from https://docs.python.org/3.10/library/asyncio-future.html#asyncio.Future : > the recommended way to create a Future object is to call loop.create_future(). > This way alternative event loop implementations can inject their own optimized implementations ...
630,879
26.04.2022 20:28:29
-7,200
54f5ad46b31812ebd62dadd57423d3d7f8ca3614
appimage: update package (git) in dockerfile
[ { "change_type": "MODIFY", "old_path": "contrib/build-linux/appimage/Dockerfile", "new_path": "contrib/build-linux/appimage/Dockerfile", "diff": "@@ -8,7 +8,7 @@ ENV DEBIAN_FRONTEND=noninteractive\nRUN apt-get update -q && \\\napt-get install -qy \\\n- git=1:2.17.1-1ubuntu0.10 \\\n+ git=1:2.17.1-1ub...
Python
MIT License
spesmilo/electrum
appimage: update package (git) in dockerfile (#7786) https://launchpad.net/ubuntu/+source/git/1:2.17.1-1ubuntu0.11
630,969
28.04.2022 10:21:47
-7,200
44f29331bfab8278e61bbcd1b6a583eb8c8b466d
lnwatcher: in inspect_tx_candidate, match witness scripts against HTLC templates fixes
[ { "change_type": "MODIFY", "old_path": "electrum/lnutil.py", "new_path": "electrum/lnutil.py", "diff": "@@ -24,7 +24,8 @@ from . import segwit_addr\nfrom .i18n import _\nfrom .lnaddr import lndecode\nfrom .bip32 import BIP32Node, BIP32_PRIME\n-from .transaction import BCDataStream\n+from .transactio...
Python
MIT License
spesmilo/electrum
lnwatcher: in inspect_tx_candidate, match witness scripts against HTLC templates fixes #7781
630,969
28.04.2022 15:26:20
-7,200
1f7ada3486cd39da6de9308c5f048fce1aeea8fd
minor: fix
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/contact_list.py", "new_path": "electrum/gui/qt/contact_list.py", "diff": "@@ -123,7 +123,7 @@ class ContactList(MyTreeView):\nself.filter()\nrun_hook('update_contacts_tab', self)\n- def refresh_row(self, key):\n+ def refresh_row(self, key, row)...
Python
MIT License
spesmilo/electrum
minor: fix #7789
630,870
28.04.2022 21:12:54
-7,200
1182972be1b0696e23c89d4c5f5a31913bc9d31d
hardware wallets: mention keystore.label in select_device Without it, it is not clear for which keystore the user is supposed to select the device. (though note that not all plugins implement labels, e.g. ledger does not) related:
[ { "change_type": "MODIFY", "old_path": "electrum/plugin.py", "new_path": "electrum/plugin.py", "diff": "@@ -632,7 +632,7 @@ class DeviceMgr(ThreadJob):\nif not allow_user_interaction:\nraise CannotAutoSelectDevice()\nmsg = _('Please insert your {}').format(plugin.device)\n- if keystore.label:\n+ if ...
Python
MIT License
spesmilo/electrum
hardware wallets: mention keystore.label in select_device Without it, it is not clear for which keystore the user is supposed to select the device. (though note that not all plugins implement labels, e.g. ledger does not) related: https://github.com/spesmilo/electrum/issues/4199#issuecomment-1112552416
630,969
29.04.2022 12:11:50
-7,200
f4e902e907a818ac6001b7e3c7d1f02d389054de
LNWorker: give up payment after timeout, not number of attempts. Limiting attempts may interrupt a MPP before we receive a MPP_timeout The attempts parameter is still used in unit tests.
[ { "change_type": "MODIFY", "old_path": "electrum/commands.py", "new_path": "electrum/commands.py", "diff": "@@ -1103,12 +1103,12 @@ class Commands:\nreturn invoice.to_debug_json()\n@command('wnl')\n- async def lnpay(self, invoice, attempts=1, timeout=30, wallet: Abstract_Wallet = None):\n+ async def...
Python
MIT License
spesmilo/electrum
LNWorker: give up payment after timeout, not number of attempts. Limiting attempts may interrupt a MPP before we receive a MPP_timeout The attempts parameter is still used in unit tests.
630,969
29.04.2022 13:03:33
-7,200
334da245dcf32afffc02533b6ae0315fc5171763
(minor) fix checkbox in qt settings
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/settings_dialog.py", "new_path": "electrum/gui/qt/settings_dialog.py", "diff": "@@ -168,7 +168,7 @@ class SettingsDialog(WindowModalDialog):\n])\ninstant_swaps_cb = QCheckBox(_(\"Allow instant swaps\"))\ninstant_swaps_cb.setToolTip(messages.to_...
Python
MIT License
spesmilo/electrum
(minor) fix checkbox in qt settings
630,969
29.04.2022 16:56:19
-7,200
fdee31af05a7587681b820abddedbfa8e0825ac0
Qt settings_dialog: use signals - changes must apply to all windows - do not keep reference to the window object
[ { "change_type": "MODIFY", "old_path": "electrum/contacts.py", "new_path": "electrum/contacts.py", "diff": "# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n# SOFTWARE.\nimport re\n-\nimport dns\n+import threading\nfrom dns.exception import DNSException\nfrom . import bitcoin\nfro...
Python
MIT License
spesmilo/electrum
Qt settings_dialog: use signals - changes must apply to all windows - do not keep reference to the window object
630,969
30.04.2022 15:23:47
-7,200
56124ad15a651961216026ced72fe7ce3fa18a79
swap_dialog: raise recv_amount when min_mount is received
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/swap_dialog.py", "new_path": "electrum/gui/qt/swap_dialog.py", "diff": "@@ -88,6 +88,11 @@ class SwapDialog(WindowModalDialog):\nself.update_signal.connect(self.update)\nself.update()\nif recv_amount_sat:\n+ self.init_recv_amount(recv_amount_sa...
Python
MIT License
spesmilo/electrum
swap_dialog: raise recv_amount when min_mount is received
630,870
29.04.2022 18:48:33
-7,200
872ce82418b1876cf4c9dc49ec40c03deef806f8
tests: clean up event-loop creation
[ { "change_type": "MODIFY", "old_path": "electrum/tests/__init__.py", "new_path": "electrum/tests/__init__.py", "diff": "@@ -6,6 +6,7 @@ import shutil\nimport electrum\nimport electrum.logging\nfrom electrum import constants\n+from electrum import util\n# Set this locally to make the test suite run f...
Python
MIT License
spesmilo/electrum
tests: clean up event-loop creation
630,870
04.05.2022 17:53:13
-7,200
443a76240d1bb489a95d922a506a2607e8e1d1b6
interface.get_block_header: assert height >= 0
[ { "change_type": "MODIFY", "old_path": "electrum/interface.py", "new_path": "electrum/interface.py", "diff": "@@ -598,6 +598,8 @@ class Interface(Logger):\nself.logger.info(\"cert fingerprint verification passed\")\nasync def get_block_header(self, height, assert_mode):\n+ if not is_non_negative_int...
Python
MIT License
spesmilo/electrum
interface.get_block_header: assert height >= 0
630,870
04.05.2022 19:27:05
-7,200
92ff7de756c3ac9d744736b715e099014995fa73
setup.py: use find_packages more heavily No change in behaviour as-is. In the future, if we add a new folder with an __init__.py file, it will get included by default, whereas in the past it would not. i.e. this is changing what we manually have to specify from a whitelist to a blacklist.
[ { "change_type": "MODIFY", "old_path": "setup.py", "new_path": "setup.py", "diff": "@@ -70,15 +70,9 @@ setup(\npython_requires='>={}'.format(MIN_PYTHON_VERSION),\ninstall_requires=requirements,\nextras_require=extras_require,\n- packages=[\n- 'electrum',\n- 'electrum.qrreader',\n- 'electrum.gui',\n-...
Python
MIT License
spesmilo/electrum
setup.py: use find_packages more heavily No change in behaviour as-is. In the future, if we add a new folder with an __init__.py file, it will get included by default, whereas in the past it would not. i.e. this is changing what we manually have to specify from a whitelist to a blacklist.
630,870
04.05.2022 20:41:49
-7,200
d5f987c9e96caf8fec101f44d2cd082dc66dd858
hw keepkey: workaround protobuf weirdness this adds a hackish workaround for
[ { "change_type": "MODIFY", "old_path": "electrum/plugins/keepkey/clientbase.py", "new_path": "electrum/plugins/keepkey/clientbase.py", "diff": "@@ -162,6 +162,9 @@ class KeepKeyClientBase(HardwareClientBase, GuiMixin, Logger):\nself.transport.write(self.proto.Cancel())\ndef i4b(self, x):\n+ if x < 0...
Python
MIT License
spesmilo/electrum
hw keepkey: workaround protobuf weirdness this adds a hackish workaround for https://github.com/spesmilo/electrum/issues/7779
630,969
06.05.2022 11:33:10
-7,200
ad70659a666987951061d73aebe4b9410ed96eb0
qr code widget: set margin to zero, print warning if cannot draw
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/qrcodewidget.py", "new_path": "electrum/gui/qt/qrcodewidget.py", "diff": "@@ -20,6 +20,7 @@ class QRCodeWidget(QWidget):\nQWidget.__init__(self)\nself.data = None\nself.qr = None\n+ self.margin = 0\nself.fixedSize=fixedSize\nif fixedSize:\nself...
Python
MIT License
spesmilo/electrum
qr code widget: set margin to zero, print warning if cannot draw
630,969
06.05.2022 11:35:52
-7,200
b0a6f895b2623fa61cca210a72ee9da5d3cef1d6
Qt: add help text to receive address widget
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1095,10 +1095,16 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\ndef update_receive_widgets(self):\nb = self.config.get('receive_qr_visible', False)\n- ...
Python
MIT License
spesmilo/electrum
Qt: add help text to receive address widget
630,870
06.05.2022 16:32:06
-7,200
a15ed939b72c8d8e4488e7b287e20b6320983c2c
setup.py: use relative paths in `data_files` fixes fixes closes
[ { "change_type": "MODIFY", "old_path": "setup.py", "new_path": "setup.py", "diff": "@@ -33,21 +33,11 @@ version_spec.loader.exec_module(version_module)\ndata_files = []\nif platform.system() in ['Linux', 'FreeBSD', 'DragonFly']:\n- parser = argparse.ArgumentParser()\n- parser.add_argument('--root=',...
Python
MIT License
spesmilo/electrum
setup.py: use relative paths in `data_files` fixes https://github.com/spesmilo/electrum/issues/7787 fixes https://github.com/spesmilo/electrum/issues/5227 closes https://github.com/spesmilo/electrum/pull/5553
630,870
06.05.2022 20:02:53
-7,200
37ba7277aeeaba165bc1cbe690d48b5e1a42df6d
qt main_window: fix visual artifact when opening (re invoice lists) InvoiceList.update() calls hide_if_empty(), which calls setVisible(). setVisible(True) should not be called before the widget is properly parented and put into a layout, as that results in a blank window flashing up (appearing and disappearing) briefly...
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/invoice_list.py", "new_path": "electrum/gui/qt/invoice_list.py", "diff": "@@ -73,7 +73,6 @@ class InvoiceList(MyTreeView):\nself.setModel(self.proxy)\nself.setSortingEnabled(True)\nself.setSelectionMode(QAbstractItemView.ExtendedSelection)\n- s...
Python
MIT License
spesmilo/electrum
qt main_window: fix visual artifact when opening (re invoice lists) InvoiceList.update() calls hide_if_empty(), which calls setVisible(). setVisible(True) should not be called before the widget is properly parented and put into a layout, as that results in a blank window flashing up (appearing and disappearing) briefl...
630,870
07.05.2022 16:20:16
-7,200
2e99ac9a94b45ac2b37e1ad5a4f2edb664534a25
qt preferences: fix "allow_instant_swaps" checkbox
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/settings_dialog.py", "new_path": "electrum/gui/qt/settings_dialog.py", "diff": "@@ -174,7 +174,7 @@ class SettingsDialog(QDialog):\n])\ninstant_swaps_cb = QCheckBox(_(\"Allow instant swaps\"))\ninstant_swaps_cb.setToolTip(messages.to_rtf(help_i...
Python
MIT License
spesmilo/electrum
qt preferences: fix "allow_instant_swaps" checkbox
630,969
07.05.2022 18:46:28
-7,200
dd43ccfda93d77dcf61f6180f8bc771c2001e00c
get_history: minor simplification
[ { "change_type": "MODIFY", "old_path": "electrum/address_synchronizer.py", "new_path": "electrum/address_synchronizer.py", "diff": "@@ -522,23 +522,22 @@ class AddressSynchronizer(Logger):\ntx_mined_status = self.get_tx_height(tx_hash)\nfee = self.get_tx_fee(tx_hash)\nhistory.append((tx_hash, tx_min...
Python
MIT License
spesmilo/electrum
get_history: minor simplification
630,870
07.05.2022 18:52:33
-7,200
9e0a0af81a7dab4fe22aeb007fb5560f48dc6433
bip39_recovery: also scan change addresses fixes
[ { "change_type": "MODIFY", "old_path": "electrum/bip39_recovery.py", "new_path": "electrum/bip39_recovery.py", "diff": "# file LICENCE or http://www.opensource.org/licenses/mit-license.php\nfrom typing import TYPE_CHECKING\n+import itertools\nfrom . import bitcoin\nfrom .constants import BIP39_WALLE...
Python
MIT License
spesmilo/electrum
bip39_recovery: also scan change addresses fixes https://github.com/spesmilo/electrum/issues/7804
630,870
09.05.2022 19:50:38
-7,200
3535eef8f8fa1d2e50624bcedd70e17c374f111a
(trivial) qt locktimeedit: fix a DeprecationWarning /home/user/wspace/electrum/electrum/gui/qt/locktimeedit.py:145: DeprecationWarning: an integer is required (got type Alignment). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python. painter.drawText(textRect, ...
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/locktimeedit.py", "new_path": "electrum/gui/qt/locktimeedit.py", "diff": "@@ -142,7 +142,7 @@ class LockTimeHeightEdit(LockTimeRawEdit):\ntextRect.adjust(2, 0, -10, 0)\npainter = QPainter(self)\npainter.setPen(ColorScheme.GRAY.as_color())\n- pa...
Python
MIT License
spesmilo/electrum
(trivial) qt locktimeedit: fix a DeprecationWarning /home/user/wspace/electrum/electrum/gui/qt/locktimeedit.py:145: DeprecationWarning: an integer is required (got type Alignment). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python. painter.drawText(textRec...
630,870
09.05.2022 20:09:10
-7,200
9599254d437d762420d6eaf9163c54d0452af0b1
hw: rm dead code from Hardware_KeyStore subclasses force_watching_only is long since unused comment was just duplicated from the base class
[ { "change_type": "MODIFY", "old_path": "electrum/plugins/bitbox02/bitbox02.py", "new_path": "electrum/plugins/bitbox02/bitbox02.py", "diff": "@@ -559,7 +559,6 @@ class BitBox02_KeyStore(Hardware_KeyStore):\ndef __init__(self, d: dict):\nsuper().__init__(d)\n- self.force_watching_only = False\nself.u...
Python
MIT License
spesmilo/electrum
hw: rm dead code from Hardware_KeyStore subclasses - force_watching_only is long since unused - comment was just duplicated from the base class
630,969
10.05.2022 20:05:43
-7,200
1274ec765528e6ba9b4e8fe439153dc83ec47894
Qt balance piechart: show lightning funds that are frozen
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/balance_dialog.py", "new_path": "electrum/gui/qt/balance_dialog.py", "diff": "@@ -49,6 +49,7 @@ COLOR_UNCONFIRMED = Qt.red\nCOLOR_UNMATURED = Qt.magenta\nCOLOR_FROZEN = ColorScheme.BLUE.as_color(True)\nCOLOR_LIGHTNING = Qt.yellow\n+COLOR_FROZEN...
Python
MIT License
spesmilo/electrum
Qt balance piechart: show lightning funds that are frozen
630,969
11.05.2022 09:39:39
-7,200
a8fc0a8f81d9ed5583411c9784dc393b80f13ee2
Qt: move open_channel_dialog code in separate module (no functional change in this commit)
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/channels_list.py", "new_path": "electrum/gui/qt/channels_list.py", "diff": "@@ -15,9 +15,8 @@ from electrum.util import bh2u, NotEnoughFunds, NoDynamicFeeEstimates\nfrom electrum.i18n import _\nfrom electrum.lnchannel import AbstractChannel, Pe...
Python
MIT License
spesmilo/electrum
Qt: move open_channel_dialog code in separate module (no functional change in this commit)
630,870
11.05.2022 17:54:33
-7,200
d499dde811fd39cbb2d4462d082c195b37400e5b
addr_sync: get_balance change cache_key to have delimiters re
[ { "change_type": "MODIFY", "old_path": "electrum/address_synchronizer.py", "new_path": "electrum/address_synchronizer.py", "diff": "@@ -855,7 +855,8 @@ class AddressSynchronizer(Logger):\nexcluded_coins = set()\nassert isinstance(excluded_coins, set), f\"excluded_coins should be set, not {type(exclu...
Python
MIT License
spesmilo/electrum
addr_sync: get_balance change cache_key to have delimiters re https://github.com/spesmilo/electrum/pull/7807/files#r870482609
630,870
11.05.2022 18:08:36
-7,200
1fedb239463dd94b75d0e6b437fcdc4e7520c2f6
appimage: update package (libdbus-1-3) in dockerfile
[ { "change_type": "MODIFY", "old_path": "contrib/build-linux/appimage/Dockerfile", "new_path": "contrib/build-linux/appimage/Dockerfile", "diff": "@@ -31,7 +31,7 @@ RUN apt-get update -q && \\\nlibudev1=237-3ubuntu10.53 \\\ngettext=0.19.8.1-6ubuntu0.3 \\\nlibzbar0=0.10+doc-10.1build2 \\\n- libdbus-1-...
Python
MIT License
spesmilo/electrum
appimage: update package (libdbus-1-3) in dockerfile
630,870
11.05.2022 19:13:00
-7,200
30623c352907d80dab421cbfb3dabf9c3847ac57
hw plugins: (cleanup) Plugin objects should not have a Handler field Handlers are per-client (connected device), plugins are ~singletons. These were mostly remnants of old code.
[ { "change_type": "MODIFY", "old_path": "electrum/plugins/bitbox02/bitbox02.py", "new_path": "electrum/plugins/bitbox02/bitbox02.py", "diff": "@@ -22,7 +22,7 @@ from electrum.bitcoin import OnchainOutputType\nimport electrum.bitcoin as bitcoin\nimport electrum.ecc as ecc\n-from ..hw_wallet import HW_...
Python
MIT License
spesmilo/electrum
hw plugins: (cleanup) Plugin objects should not have a Handler field Handlers are per-client (connected device), plugins are ~singletons. These were mostly remnants of old code.
630,870
11.05.2022 19:16:18
-7,200
aab8e664ed88a1f9c63e9a3d409e63775020626d
hw plugins: (cleanup) Plugin objects should not have a Client field Clients are per-connected-device, plugins are ~singletons. These were mostly remnants of old code.
[ { "change_type": "MODIFY", "old_path": "electrum/plugins/digitalbitbox/digitalbitbox.py", "new_path": "electrum/plugins/digitalbitbox/digitalbitbox.py", "diff": "@@ -661,7 +661,6 @@ class DigitalBitboxPlugin(HW_PluginBase):\nlibraries_available = DIGIBOX\nkeystore_class = DigitalBitbox_KeyStore\n- c...
Python
MIT License
spesmilo/electrum
hw plugins: (cleanup) Plugin objects should not have a Client field Clients are per-connected-device, plugins are ~singletons. These were mostly remnants of old code.
630,870
11.05.2022 19:30:14
-7,200
6c50d3b0a38416535d6c5f413e67f4633b148ee2
hw plugins: (cleanup) rm no-op clear_client argument from keystore.give_error The keystore does not have a "client" field. One is supposed to use the "get_client" method instead (the generic API is `plugin.get_client(keystore)`) Remnants of old code.
[ { "change_type": "MODIFY", "old_path": "electrum/plugins/bitbox02/bitbox02.py", "new_path": "electrum/plugins/bitbox02/bitbox02.py", "diff": "@@ -564,14 +564,12 @@ class BitBox02_KeyStore(Hardware_KeyStore):\ndef get_client(self) -> Optional['BitBox02Client']:\nreturn self.plugin.get_client(self)\n-...
Python
MIT License
spesmilo/electrum
hw plugins: (cleanup) rm no-op clear_client argument from keystore.give_error The keystore does not have a "client" field. One is supposed to use the "get_client" method instead (the generic API is `plugin.get_client(keystore)`) Remnants of old code.
630,870
11.05.2022 19:41:25
-7,200
7f876e46fb18d0b2dde71fde184ca021eeb24e7e
hw plugins: (follow-up) rm some more dead code follow-up
[ { "change_type": "MODIFY", "old_path": "electrum/plugins/coldcard/coldcard.py", "new_path": "electrum/plugins/coldcard/coldcard.py", "diff": "@@ -507,9 +507,6 @@ class ColdcardPlugin(HW_PluginBase):\n@runs_in_hwd_thread\ndef create_client(self, device, handler):\n- if handler:\n- self.handler = hand...
Python
MIT License
spesmilo/electrum
hw plugins: (follow-up) rm some more dead code follow-up https://github.com/spesmilo/electrum/commit/30623c352907d80dab421cbfb3dabf9c3847ac57
630,870
11.05.2022 19:50:57
-7,200
cbc69742b958aaacdad9612d7cf1564c32205efb
wallet_db: clarify hww types in old upgrades There is no point in adding new hww types to these lists every time support for a new hww is added. These upgrades got released in 2.7.0 and any hw types added after are unrelated. reverted to just-after last relevant change:
[ { "change_type": "MODIFY", "old_path": "electrum/wallet_db.py", "new_path": "electrum/wallet_db.py", "diff": "@@ -129,7 +129,8 @@ class WalletDB(JsonDB):\ndata2['suffix'] = 'imported'\nresult = [data1, data2]\n- elif wallet_type in ['bip44', 'trezor', 'keepkey', 'ledger', 'btchip', 'digitalbitbox', ...
Python
MIT License
spesmilo/electrum
wallet_db: clarify hww types in old upgrades There is no point in adding new hww types to these lists every time support for a new hww is added. These upgrades got released in 2.7.0 and any hw types added after are unrelated. reverted to just-after last relevant change: https://github.com/spesmilo/electrum/commit/c82...
630,969
12.05.2022 12:40:53
-7,200
c945f2292e09e02e6d598ed4d694dd8fd98e8474
(minor) Fix receive_qr_visible. Rename method: toggle_qr_window
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -772,7 +772,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\ntools_menu.addSeparator()\npaytomany_menu = tools_menu.addAction(_(\"&Pay to many\"), self....
Python
MIT License
spesmilo/electrum
(minor) Fix receive_qr_visible. Rename method: toggle_qr_window
630,870
13.05.2022 16:19:28
-7,200
641c3e23a4aa6d4c6464c2d990a8eef0c02f7eb7
daemon: default rpc socktype to "tcp" if `rpcport` is set Having `rpcport` set already indicates the user does not want unix sockets, we just default `rpchost` to "localhost". related
[ { "change_type": "MODIFY", "old_path": "electrum/daemon.py", "new_path": "electrum/daemon.py", "diff": "@@ -67,7 +67,7 @@ def get_rpcsock_defaultpath(config: SimpleConfig):\nreturn os.path.join(config.path, 'daemon_rpc_socket')\ndef get_rpcsock_default_type(config: SimpleConfig):\n- if config.get('r...
Python
MIT License
spesmilo/electrum
daemon: default rpc socktype to "tcp" if `rpcport` is set Having `rpcport` set already indicates the user does not want unix sockets, we just default `rpchost` to "localhost". related https://github.com/spesmilo/electrum/issues/7811
630,870
13.05.2022 16:48:50
-7,200
d128391ea0d0ce632f4997eda50ac064334da0c8
daemon: add command-line args for RPC user/pass/host/port based on
[ { "change_type": "MODIFY", "old_path": "electrum/commands.py", "new_path": "electrum/commands.py", "diff": "@@ -1479,6 +1479,8 @@ def add_global_options(parser):\ngroup.add_argument(\"--simnet\", action=\"store_true\", dest=\"simnet\", default=False, help=\"Use Simnet\")\ngroup.add_argument(\"--sign...
Python
MIT License
spesmilo/electrum
daemon: add command-line args for RPC user/pass/host/port based on https://github.com/namecoin/electrum-nmc/commit/c50d8d754ca4c4d792e7faa87b9abc816db7dec6
630,870
14.05.2022 01:28:37
-7,200
2e260bd6029dc1c301389b5a4f0a212114785237
qt PayToEdit: rm redundant code This is already handled by `self.textChanged.connect(self.check_text)` in __init__.
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/paytoedit.py", "new_path": "electrum/gui/qt/paytoedit.py", "diff": "@@ -257,13 +257,6 @@ class PayToEdit(CompletionTextEdit, ScanQRTextEdit, Logger):\nself.setMaximumHeight(h)\nself.verticalScrollBar().hide()\n- def qr_input(self, *, callback=N...
Python
MIT License
spesmilo/electrum
qt PayToEdit: rm redundant code This is already handled by `self.textChanged.connect(self.check_text)` in __init__.
630,870
14.05.2022 18:32:52
-7,200
2b7cf31308d0194a53efa8babf04ad8e071438c5
qt: don't show empty BalanceDialog
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/balance_dialog.py", "new_path": "electrum/gui/qt/balance_dialog.py", "diff": "@@ -39,6 +39,10 @@ from electrum.i18n import _\nfrom .util import Buttons, CloseButton, WindowModalDialog, ColorScheme\n+if TYPE_CHECKING:\n+ from .main_window import...
Python
MIT License
spesmilo/electrum
qt: don't show empty BalanceDialog
630,960
13.05.2022 23:48:19
-7,200
33208bfdc301d1d075a42e675c80cd2ab1e64813
Qt: sign_message: added button to show signature in QR code.
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -2895,8 +2895,9 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nlayout.addWidget(QLabel(_('Address')), 2, 0)\nlayout.addWidget(address_e, 2, 1)\n- signat...
Python
MIT License
spesmilo/electrum
Qt: sign_message: added button to show signature in QR code.
630,870
14.05.2022 16:35:34
-7,200
6bb057b548c9f6bb6d49d76866299852030669c8
qt refactor qrtextedit.py, create "ScanShowQRTextEdit"
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -85,7 +85,7 @@ from electrum.lnaddr import lndecode, LnInvoiceException\nfrom .exception_window import Exception_Hook\nfrom .amountedit import AmountEdit, BTCAmountEdit,...
Python
MIT License
spesmilo/electrum
qt refactor qrtextedit.py, create "ScanShowQRTextEdit"
630,870
14.05.2022 17:02:03
-7,200
5398b9d9c9f7dc1bebc99a85a1ef22d6a75d424b
qr qrtextedit: move functionality up to ButtonsWidget
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/qrtextedit.py", "new_path": "electrum/gui/qt/qrtextedit.py", "diff": "-from functools import partial\n-from typing import Callable\n-\nfrom electrum.i18n import _\nfrom electrum.plugin import run_hook\nfrom electrum.simple_config import SimpleC...
Python
MIT License
spesmilo/electrum
qr qrtextedit: move functionality up to ButtonsWidget
630,870
14.05.2022 17:17:57
-7,200
3cc6c0dd2d5d99506650ce2f990a0d69b6579acb
qt: start using ButtonsWidget's add_qr_input_button/add_qr_show_button
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/address_dialog.py", "new_path": "electrum/gui/qt/address_dialog.py", "diff": "@@ -67,8 +67,7 @@ class AddressDialog(WindowModalDialog):\nvbox.addWidget(QLabel(_(\"Address\") + \":\"))\nself.addr_e = ButtonsLineEdit(self.address)\nself.addr_e.ad...
Python
MIT License
spesmilo/electrum
qt: start using ButtonsWidget's add_qr_input_button/add_qr_show_button
630,870
16.05.2022 22:24:07
-7,200
d7678e14b52736200b7f02256f94adce2757ed82
interface: bypass proxy for servers on localhost closes closes I am unsure if this would be safe to do for the more general "server running on private ip" case, so this is restricted to localhost only atm.
[ { "change_type": "MODIFY", "old_path": "electrum/interface.py", "new_path": "electrum/interface.py", "diff": "@@ -372,9 +372,17 @@ class Interface(Logger):\nself.blockchain = None # type: Optional[Blockchain]\nself._requested_chunks = set() # type: Set[int]\nself.network = network\n- self.proxy = My...
Python
MIT License
spesmilo/electrum
interface: bypass proxy for servers on localhost closes https://github.com/spesmilo/electrum/issues/3126 closes https://github.com/spesmilo/electrum/issues/7256 I am unsure if this would be safe to do for the more general "server running on private ip" case, so this is restricted to localhost only atm.
630,969
17.05.2022 15:19:06
-7,200
cc3be95fcc316521f116239dbb5c88deee6b0c18
Receive tab: toggle QR code by clicking on receive widget
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1089,7 +1089,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nd = LightningTxDialog(self, tx_item)\nd.show()\n- def toggle_receive_qr(self, toggle=Fals...
Python
MIT License
spesmilo/electrum
Receive tab: toggle QR code by clicking on receive widget
630,969
18.05.2022 09:48:22
-7,200
0a6495c490269631f436d4f1fdc3d41b8b403f3e
lnworker: if trampoline is active, make num_sats_can_send return the max value allowed for legacy payments. (that is, do not assume we can do MPP involving two trampolines) This reverts Reason: num_sats_can_send may be used to decide the amount we put in a new channel.
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -1096,37 +1096,7 @@ class LNWallet(LNWorker):\ndef can_pay_invoice(self, invoice: Invoice) -> bool:\nassert invoice.is_lightning()\n- if invoice.get_amount_sat() > self.num_sats_can_send():...
Python
MIT License
spesmilo/electrum
lnworker: if trampoline is active, make num_sats_can_send return the max value allowed for legacy payments. (that is, do not assume we can do MPP involving two trampolines) This reverts fb6047ec46 Reason: num_sats_can_send may be used to decide the amount we put in a new channel.
630,969
18.05.2022 17:07:18
-7,200
f90a08bbe2bb2668b79939ecfa540c00f0ea1485
Filter nodes for receiving: - increase MPP_RECEIVE_CUTOFF from 5 to 20 percent - filter channels by node_id, not channel_id - make num_sats_can_receive consistent with routing hints
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -7,6 +7,7 @@ import os\nfrom decimal import Decimal\nimport random\nimport time\n+import operator\nfrom typing import (Optional, Sequence, Tuple, List, Set, Dict, TYPE_CHECKING,\nNamedTuple...
Python
MIT License
spesmilo/electrum
Filter nodes for receiving: - increase MPP_RECEIVE_CUTOFF from 5 to 20 percent - filter channels by node_id, not channel_id - make num_sats_can_receive consistent with routing hints
630,969
19.05.2022 11:40:36
-7,200
cf01a792df0d355be8df27e233d833ab618239c8
Qt: run swap_manager.get_pairs() before opening SwapDialog
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/channels_list.py", "new_path": "electrum/gui/qt/channels_list.py", "diff": "@@ -345,7 +345,7 @@ class ChannelsList(MyTreeView):\nself.can_send_label = QLabel('')\nh.addWidget(self.can_send_label)\nh.addStretch()\n- self.swap_button = EnterButto...
Python
MIT License
spesmilo/electrum
Qt: run swap_manager.get_pairs() before opening SwapDialog
630,969
19.05.2022 15:08:44
-7,200
3c47060cb250a609f527d918751ea2e077ebe72d
receive_tab: better help text if lightning peers are disconnected
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1274,20 +1274,24 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\ndef show_receive_request(self, req):\naddr = req.get_address() or ''\naddress_help = ''...
Python
MIT License
spesmilo/electrum
receive_tab: better help text if lightning peers are disconnected
630,969
19.05.2022 15:34:01
-7,200
476c0cbf704b415433defc8170635331606d4f1c
swap dialog: disable amount edits and buttons if an amount is passed
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1738,7 +1738,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\ncoro = self.wallet.lnworker.pay_invoice(invoice.lightning_invoice, amount_msat=amount_msa...
Python
MIT License
spesmilo/electrum
swap dialog: disable amount edits and buttons if an amount is passed
630,870
19.05.2022 19:30:11
-7,200
3eddc17e21f1dca93b3d99c61e80ae2c717ae280
util.parse_URI: fix typo
[ { "change_type": "MODIFY", "old_path": "electrum/util.py", "new_path": "electrum/util.py", "diff": "@@ -1009,7 +1009,7 @@ def parse_URI(uri: str, on_pr: Callable = None, *, loop=None) -> dict:\ntry:\nlnaddr = lndecode(out['lightning'])\namount_sat = out.get('amount')\n- if amount:\n+ if amount_sat:\...
Python
MIT License
spesmilo/electrum
util.parse_URI: fix typo
630,870
20.05.2022 18:05:16
-7,200
57ec9612cb3395bfc1237c56efb3c3fdb144145f
Qt ConfirmTxDialog: make sure dialog is deleted when closed Same for BlockingWaitingDialog. related: Note that this change does not solve the "dialog sometimes does not get drawn properly" issue, just the "dialog sometimes does not get closed properly" issue. closes:
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/confirm_tx_dialog.py", "new_path": "electrum/gui/qt/confirm_tx_dialog.py", "diff": "@@ -193,6 +193,7 @@ class ConfirmTxDialog(TxEditor, WindowModalDialog):\ndef run(self):\ncancelled = not self.exec_()\npassword = self.pw.text() or None\n+ self...
Python
MIT License
spesmilo/electrum
Qt ConfirmTxDialog: make sure dialog is deleted when closed Same for BlockingWaitingDialog. related: https://github.com/spesmilo/electrum/issues/3956#issuecomment-1017593613 Note that this change does not solve the "dialog sometimes does not get drawn properly" issue, just the "dialog sometimes does not get closed pr...
630,870
20.05.2022 18:26:30
-7,200
a0b7782e6d7dbeddf253ec56372cf36e028d7840
Qt addr/utxo lists: in dark theme, fix item bgcolor (was pure black) regression from
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/address_list.py", "new_path": "electrum/gui/qt/address_list.py", "diff": "@@ -236,8 +236,8 @@ class AddressList(MyTreeView):\naddress_item[self.Columns.COIN_BALANCE].setData(balance, self.ROLE_SORT_ORDER)\naddress_item[self.Columns.FIAT_BALANCE...
Python
MIT License
spesmilo/electrum
Qt addr/utxo lists: in dark theme, fix item bgcolor (was pure black) regression from https://github.com/spesmilo/electrum/commit/e362d1aac4c326917592bcfe1f5d679f7649366a
630,870
20.05.2022 20:07:55
-7,200
8ed52d422501ec42f2fbb733edf6c79e44508d8a
Qt change_password_dialog: fix deadlock in hww case if device unplugged fixes
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -2562,25 +2562,27 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nif not ok:\nreturn\n- try:\n- hw_dev_pw = self.wallet.keystore.get_password_for_storage...
Python
MIT License
spesmilo/electrum
Qt change_password_dialog: fix deadlock in hww case if device unplugged fixes https://github.com/spesmilo/electrum/pull/7819
630,969
21.05.2022 11:25:53
-7,200
bc9cc518002514b0ec1cba075dd2a6d6c6b7beb9
Add 'channels' parameter to create invoice and pay. Add rebalance dialog to GUI
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/channels_list.py", "new_path": "electrum/gui/qt/channels_list.py", "diff": "@@ -202,8 +202,18 @@ class ChannelsList(MyTreeView):\nmenu.addAction(_(\"Import channel backup\"), lambda: self.parent.do_process_from_text_channel_backup())\nmenu.exec...
Python
MIT License
spesmilo/electrum
Add 'channels' parameter to create invoice and pay. Add rebalance dialog to GUI
630,969
21.05.2022 12:24:26
-7,200
917f256e339e9016af112ffdb8edbfc665b36be4
remove scheduled invoices: bad UX. better expect the user to retry later.
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/invoice_list.py", "new_path": "electrum/gui/qt/invoice_list.py", "diff": "@@ -33,7 +33,7 @@ from PyQt5.QtWidgets import QMenu, QVBoxLayout, QTreeWidget, QTreeWidgetItem, QH\nfrom electrum.i18n import _\nfrom electrum.util import format_time\n-f...
Python
MIT License
spesmilo/electrum
remove scheduled invoices: bad UX. better expect the user to retry later.
630,870
21.05.2022 18:43:32
-7,200
4915db52b99690eea994422f12fb2937b6c7086b
interface: fix DeprecationWarnings re SSLContext ``` ...\electrum\electrum\interface.py:585: DeprecationWarning: ssl.SSLContext() without protocol argument is deprecated. sslc = ssl.SSLContext() ...\electrum\electrum\interface.py:585: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated sslc = ssl.SSLContext() ```
[ { "change_type": "MODIFY", "old_path": "electrum/interface.py", "new_path": "electrum/interface.py", "diff": "@@ -495,8 +495,8 @@ class Interface(Logger):\nsslc = ca_sslc\nelse:\n# pinned self-signed cert\n- sslc = ssl.create_default_context(ssl.Purpose.SERVER_AUTH, cafile=self.cert_path)\n- sslc.ch...
Python
MIT License
spesmilo/electrum
interface: fix DeprecationWarnings re SSLContext ``` ...\electrum\electrum\interface.py:585: DeprecationWarning: ssl.SSLContext() without protocol argument is deprecated. sslc = ssl.SSLContext() ...\electrum\electrum\interface.py:585: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated sslc = ssl.SSLContext() ```
630,969
22.05.2022 09:22:16
-7,200
0656e6d44e64262fe0789a907631ef35a86cb037
suggest_rebalance: special case for MPP heuristics
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -2170,6 +2170,9 @@ class LNWallet(LNWorker):\nfor chan in channels:\nif func(deltas={chan:delta}) >= amount_sat:\nsuggestions.append((chan, delta))\n+ elif direction==RECEIVED and func(delt...
Python
MIT License
spesmilo/electrum
suggest_rebalance: special case for MPP heuristics
630,969
22.05.2022 11:40:01
-7,200
23230c3c10f768f03cb2b4a85a23e9371b6329ae
receive widget: minor improvements, more help text
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1305,23 +1305,32 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nif lnaddr is None:\nln_help = _('This request does not have a Lightning invoice.')\nlna...
Python
MIT License
spesmilo/electrum
receive widget: minor improvements, more help text
630,969
22.05.2022 13:32:24
-7,200
e43983e8543424df3a84db280c33262947c7094a
Qt: update current request when update_tabs is called
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -203,6 +203,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nself.showing_cert_mismatch_error = False\nself.tl_windows = []\nself.pending_invoice = None...
Python
MIT License
spesmilo/electrum
Qt: update current request when update_tabs is called
630,969
22.05.2022 17:18:28
-7,200
5d659cda0eeac414f148c831d2ff8db0cdac1d6f
improve channel_funding_sat suggestion. add min_amount parameter to new_channel_dialog
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/channels_list.py", "new_path": "electrum/gui/qt/channels_list.py", "diff": "@@ -392,9 +392,9 @@ class ChannelsList(MyTreeView):\nvbox.addLayout(Buttons(OkButton(d)))\nd.exec_()\n- def new_channel_dialog(self, *, amount_sat=None):\n+ def new_cha...
Python
MIT License
spesmilo/electrum
improve channel_funding_sat suggestion. add min_amount parameter to new_channel_dialog
630,969
23.05.2022 09:03:45
-7,200
4cd280756323e5db9c4a9c6efbc893fc37ba453c
Qt: rephrase messages, propose 'pay onchain' as the last option
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1331,9 +1331,9 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\ncan_rebalance = bool(self.receive_rebalance_button.suggestion)\ncan_swap = bool(self.rece...
Python
MIT License
spesmilo/electrum
Qt: rephrase messages, propose 'pay onchain' as the last option
630,969
23.05.2022 09:20:14
-7,200
53b4389e057367553b488095808b4cc9db75f747
Qt: set fixed size for reveive help widgets
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1219,6 +1219,8 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\ne.addCopyButton(self.app)\ne.setReadOnly(True)\ne.setFixedSize(fixedSize, fixedSize)\n+ f...
Python
MIT License
spesmilo/electrum
Qt: set fixed size for reveive help widgets
630,969
23.05.2022 09:31:38
-7,200
50a272ec8f500396ca15ffa44f4b729142e6f410
do not propose rebalance between channels to the same trampoline
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/channels_list.py", "new_path": "electrum/gui/qt/channels_list.py", "diff": "@@ -209,7 +209,7 @@ class ChannelsList(MyTreeView):\nchannel_id2 = idx2.sibling(idx2.row(), self.Columns.NODE_ALIAS).data(ROLE_CHANNEL_ID)\nchan1 = self.lnworker.channe...
Python
MIT License
spesmilo/electrum
do not propose rebalance between channels to the same trampoline
630,969
23.05.2022 09:49:17
-7,200
155b3703ace38bd1d993381a8f8258dff13e6db2
QR window: fix tab order
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1371,9 +1371,9 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nif self.qr_window and self.qr_window.isVisible():\ni = self.receive_tabs.currentIndex()\n...
Python
MIT License
spesmilo/electrum
QR window: fix tab order
630,969
23.05.2022 10:11:35
-7,200
3b44646bd1d448fc74a2a776ab9324c60c0b05ad
QRCodeWidget: show warning in GUI
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/qrcodewidget.py", "new_path": "electrum/gui/qt/qrcodewidget.py", "diff": "@@ -73,7 +73,10 @@ class QRCodeWidget(QWidget):\nframesize = min(r.width(), r.height())\nboxsize = int((framesize - 2*self.margin)/k)\nif boxsize < 2:\n- print('Warning: ...
Python
MIT License
spesmilo/electrum
QRCodeWidget: show warning in GUI
630,969
23.05.2022 11:38:09
-7,200
2a31f80d0962197780a2f45c279c83236051e4de
QRCodeWidget: add margin of 1 block, remove fixedSize parameter
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1222,9 +1222,12 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nfor w in [self.receive_address_help, self.receive_lightning_help]:\nw.setFixedSize(fixed...
Python
MIT License
spesmilo/electrum
QRCodeWidget: add margin of 1 block, remove fixedSize parameter
630,969
23.05.2022 11:23:44
-7,200
0431cd825ee980babd4d601949f77bc550ca5647
Allow the QR code in the receive tab to be variable size
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1212,22 +1212,20 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nself.receive_lightning_help = QWidget()\nself.receive_lightning_help.setVisible(False)\...
Python
MIT License
spesmilo/electrum
Allow the QR code in the receive tab to be variable size
630,870
23.05.2022 17:52:39
-7,200
98feff07ad7293aa2575aa74fad520cbe1582532
threading.Thread: fix some DeprecationWarnings "DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead"
[ { "change_type": "MODIFY", "old_path": "electrum/contacts.py", "new_path": "electrum/contacts.py", "diff": "@@ -103,7 +103,7 @@ class Contacts(dict, Logger):\nself.alias_info = self.resolve_openalias(alias)\ntrigger_callback('alias_received')\nt = threading.Thread(target=f)\n- t.setDaemon(True)\n+ t...
Python
MIT License
spesmilo/electrum
threading.Thread: fix some DeprecationWarnings "DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead"
630,870
23.05.2022 18:53:19
-7,200
7e77a7e1cc538e74179f1d0b485b2b593d205ade
email plugin: (trivial) adapt to Invoices refactor
[ { "change_type": "MODIFY", "old_path": "electrum/paymentrequest.py", "new_path": "electrum/paymentrequest.py", "diff": "@@ -333,7 +333,7 @@ def make_unsigned_request(req: 'Invoice'):\ntime = 0\nif exp and type(exp) != int:\nexp = 0\n- amount = req.amount_sat\n+ amount = req.get_amount_sat()\nif amou...
Python
MIT License
spesmilo/electrum
email plugin: (trivial) adapt to Invoices refactor
630,870
23.05.2022 19:04:51
-7,200
cac4b6f92c2b7dccf4c3a8f8d97055c96b7e4c10
email plugin: SSL was using insecure defaults
[ { "change_type": "MODIFY", "old_path": "electrum/plugins/email_requests/qt.py", "new_path": "electrum/plugins/email_requests/qt.py", "diff": "@@ -30,7 +30,7 @@ from functools import partial\nimport traceback\nimport sys\nfrom typing import Set\n-\n+import ssl\nimport smtplib\nimport imaplib\nimport ...
Python
MIT License
spesmilo/electrum
email plugin: SSL was using insecure defaults
630,874
24.05.2022 02:39:11
0
1aa444e0f8c8ef12658d5b8591f28ea69ff93cbf
Fix "== None" linter fails Credit to Zoltan Konder for pointing me to this issue.
[ { "change_type": "MODIFY", "old_path": "electrum/plugins/bitbox02/bitbox02.py", "new_path": "electrum/plugins/bitbox02/bitbox02.py", "diff": "@@ -444,7 +444,7 @@ class BitBox02Client(HardwareClientBase):\n}\n)\n- if tx_script_type == None:\n+ if tx_script_type is None:\ntx_script_type = txin.script_...
Python
MIT License
spesmilo/electrum
Fix "== None" linter fails Credit to Zoltan Konder for pointing me to this issue.
630,969
24.05.2022 11:48:14
-7,200
c67c4e95dca6e0d5d995d8a11fea666918bcaab9
remove email plugin
[ { "change_type": "DELETE", "old_path": "electrum/plugins/email_requests/__init__.py", "new_path": null, "diff": "-from electrum.i18n import _\n-\n-fullname = _('Email')\n-description = _(\"Send and receive payment request with an email account\")\n-available_for = ['qt']\n" }, { "change_type...
Python
MIT License
spesmilo/electrum
remove email plugin
630,969
24.05.2022 12:11:22
-7,200
f14c420c303e2e717809f3c65e3d331a47b9f9c2
Qt: display number of tasks (window._coroutines_scheduled) in toolbar. Disable rebalance/swap suggestions attached to requests/invoices if there is an ongoing task. Note: This assumes that all tasks are lightning payments, which is true for the moment.
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -343,9 +343,11 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\non_result(res)\nfinally:\nself._coroutines_scheduled.discard(fut)\n+ self.need_update.set(...
Python
MIT License
spesmilo/electrum
Qt: display number of tasks (window._coroutines_scheduled) in toolbar. Disable rebalance/swap suggestions attached to requests/invoices if there is an ongoing task. Note: This assumes that all tasks are lightning payments, which is true for the moment.
630,969
24.05.2022 12:48:19
-7,200
3e0d7ff5496d151454c47e47bf4327889969d797
improve channels_list menus (minor)
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/channels_list.py", "new_path": "electrum/gui/qt/channels_list.py", "diff": "@@ -234,37 +234,38 @@ class ChannelsList(MyTreeView):\nreturn\nchan = self.lnworker.channels[channel_id]\nmenu.addAction(_(\"Details...\"), lambda: self.parent.show_cha...
Python
MIT License
spesmilo/electrum
improve channels_list menus (minor)
630,969
24.05.2022 13:39:06
-7,200
2e120d74b8650a08a31aeee58ba7833e1189a81c
Qt: add name to coroutines_scheduled
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -206,7 +206,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nself.current_request = None # request shown in the receive tab\nLogger.__init__(self)\n- se...
Python
MIT License
spesmilo/electrum
Qt: add name to coroutines_scheduled
630,870
24.05.2022 18:15:12
-7,200
28f794b63b180d1b10432b3f822f5c8b0a7375ec
Qt receive tab: better receive_tabs widget size for small windows Previously the receive_tabs widget was allowed to be much smaller than its inner main widget (e.g. truncating visible QR code). A bit hackish to overwrite/monkeypatch sizeHint, but I've tried a few approaches and this seems to work best.
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1238,22 +1238,25 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\ne.setFont(QFont(MONOSPACE_FONT))\ne.addCopyButton(self.app)\ne.setReadOnly(True)\n- e.s...
Python
MIT License
spesmilo/electrum
Qt receive tab: better receive_tabs widget size for small windows Previously the receive_tabs widget was allowed to be much smaller than its inner main widget (e.g. truncating visible QR code). A bit hackish to overwrite/monkeypatch sizeHint, but I've tried a few approaches and this seems to work best.
630,870
24.05.2022 18:33:19
-7,200
2362d6d010c694fe43cfe7a6eebcb271e069c51d
follow-up "remove email plugin" follow-up
[ { "change_type": "MODIFY", "old_path": "contrib/build-wine/deterministic.spec", "new_path": "contrib/build-wine/deterministic.spec", "diff": "@@ -64,7 +64,6 @@ a = Analysis([home+'run_electrum',\nhome+'electrum/dnssec.py',\nhome+'electrum/commands.py',\nhome+'electrum/plugins/cosigner_pool/qt.py',\n...
Python
MIT License
spesmilo/electrum
follow-up "remove email plugin" follow-up https://github.com/spesmilo/electrum/commit/c67c4e95dca6e0d5d995d8a11fea666918bcaab9
630,969
24.05.2022 18:51:09
-7,200
5bb99ddfaf5cbe3c52ed1c4d721e7e6ced25abde
submarine_swaps: fix order of operations in get_send_amount
[ { "change_type": "MODIFY", "old_path": "electrum/submarine_swaps.py", "new_path": "electrum/submarine_swaps.py", "diff": "@@ -551,6 +551,7 @@ class SwapManager(Logger):\nreturn x\ndef get_recv_amount(self, send_amount: Optional[int], *, is_reverse: bool) -> Optional[int]:\n+ # first, add percentage ...
Python
MIT License
spesmilo/electrum
submarine_swaps: fix order of operations in get_send_amount
630,969
24.05.2022 19:13:10
-7,200
b9f01a86fe24219d3456ef8a72e2f6d43b9bf161
lnwatcher: check that parent transaction is confirmed in CSV test
[ { "change_type": "MODIFY", "old_path": "electrum/lnwatcher.py", "new_path": "electrum/lnwatcher.py", "diff": "@@ -446,7 +446,7 @@ class LNWalletWatcher(LNWatcher):\nif sweep_info.csv_delay:\nprev_height = self.get_tx_height(prev_txid)\nwanted_height = sweep_info.csv_delay + prev_height.height - 1\n-...
Python
MIT License
spesmilo/electrum
lnwatcher: check that parent transaction is confirmed in CSV test
630,969
24.05.2022 19:23:57
-7,200
7abc7c720f33d446d7753505ae8c44dd9050e134
receive_tabs: add tooltip to inner widgets
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1279,11 +1279,16 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nself.receive_lightning_e.setFocusPolicy(Qt.NoFocus)\nself.receive_lightning_e.mousePres...
Python
MIT License
spesmilo/electrum
receive_tabs: add tooltip to inner widgets
630,969
24.05.2022 19:54:27
-7,200
adbabacc12500994e0bdf78b76f66ce91baf085c
Stabilize size of receive_tabs widgets - use SetMinimumSize instead of sizeHint (partially reverts 28f794b63b180d1b10432b3f822f5c8b0a7375ec) - to deal with small window sizes, set MinimumHeight of the parent TabWidget (with a few extra pixels for margins) - add an extra layout around address_help_text, so that it has m...
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1200,11 +1200,15 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\ngrid.addLayout(buttons, 4, 0, 1, -1)\nself.receive_address_e = ButtonsTextEdit()\n- sel...
Python
MIT License
spesmilo/electrum
Stabilize size of receive_tabs widgets - use SetMinimumSize instead of sizeHint (partially reverts 28f794b63b180d1b10432b3f822f5c8b0a7375ec) - to deal with small window sizes, set MinimumHeight of the parent TabWidget (with a few extra pixels for margins) - add an extra layout around address_help_text, so that...
630,969
25.05.2022 12:34:52
-7,200
e99a5a77032b551521e92a89d47987c048bc860b
fix lnwatcher broadcast logic, follow-up
[ { "change_type": "MODIFY", "old_path": "electrum/lnwatcher.py", "new_path": "electrum/lnwatcher.py", "diff": "@@ -446,7 +446,7 @@ class LNWalletWatcher(LNWatcher):\nif sweep_info.csv_delay:\nprev_height = self.get_tx_height(prev_txid)\nwanted_height = sweep_info.csv_delay + prev_height.height - 1\n-...
Python
MIT License
spesmilo/electrum
fix lnwatcher broadcast logic, follow-up b9f01a86fe24219d3456ef8a72e2f6d43b9bf161
630,969
25.05.2022 12:45:53
-7,200
56659c550ed804dcf4e3077a302772070b132671
lnwatcher: fix another broadcast-too-early error
[ { "change_type": "MODIFY", "old_path": "electrum/lnwatcher.py", "new_path": "electrum/lnwatcher.py", "diff": "@@ -439,7 +439,7 @@ class LNWalletWatcher(LNWatcher):\nbroadcast = True\nlocal_height = self.network.get_local_height()\nif sweep_info.cltv_expiry:\n- wanted_height = sweep_info.cltv_expiry ...
Python
MIT License
spesmilo/electrum
lnwatcher: fix another broadcast-too-early error
630,870
25.05.2022 23:51:11
-7,200
79578d6c18b28b1ed50650c1dfaad5bed2454b6a
lnchannel: fix diagnostic_name, for better log lines Previously nothing re channel id was logged, as "diagnostic_name" is only evaluated once, and it ran before channel_id was set.
[ { "change_type": "MODIFY", "old_path": "electrum/lnchannel.py", "new_path": "electrum/lnchannel.py", "diff": "@@ -156,6 +156,7 @@ class AbstractChannel(Logger, ABC):\nlnworker: Optional['LNWallet']\n_fallback_sweep_address: str\nchannel_id: bytes\n+ short_channel_id: Optional[ShortChannelID] = None\...
Python
MIT License
spesmilo/electrum
lnchannel: fix diagnostic_name, for better log lines Previously nothing re channel id was logged, as "diagnostic_name" is only evaluated once, and it ran before channel_id was set.