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 | 10.03.2021 21:00:58 | -3,600 | 4250f3b8a19f1f56a5eba21b1c3d33e9f2b17924 | test_lnpeer: use 2s MPP_TIMEOUT, and split test_multipart_payment_with_timeout | [
{
"change_type": "MODIFY",
"old_path": "electrum/tests/test_lnpeer.py",
"new_path": "electrum/tests/test_lnpeer.py",
"diff": "@@ -113,7 +113,8 @@ class MockWallet:\nclass MockLNWallet(Logger, NetworkRetryManager[LNPeerAddr]):\n- MPP_EXPIRY = 1\n+ MPP_EXPIRY = 2 # HTLC timestamps are cast to int, so ... | Python | MIT License | spesmilo/electrum | test_lnpeer: use 2s MPP_TIMEOUT, and split test_multipart_payment_with_timeout |
630,870 | 10.03.2021 21:28:17 | -3,600 | 707a58abf11c541ca5e8b69d092d612d7613c538 | crypto: add comment about ripemd.py
related: | [
{
"change_type": "MODIFY",
"old_path": "electrum/crypto.py",
"new_path": "electrum/crypto.py",
"diff": "@@ -315,6 +315,10 @@ def ripemd(x):\nmd.update(x)\nreturn md.digest()\nexcept BaseException:\n+ # ripemd160 is not guaranteed to be available in hashlib on all platforms.\n+ # Historically, our An... | Python | MIT License | spesmilo/electrum | crypto: add comment about ripemd.py
related: https://github.com/spesmilo/electrum/issues/7093 |
630,969 | 11.03.2021 10:37:44 | -3,600 | 50ab8be7a29d1b1ece777d611a2a77e49402c689 | lnpeer: try to fix tests | [
{
"change_type": "MODIFY",
"old_path": "electrum/tests/test_lnpeer.py",
"new_path": "electrum/tests/test_lnpeer.py",
"diff": "@@ -774,12 +774,29 @@ class TestPeer(ElectrumTestCase):\nwith self.assertRaises(PaymentDone):\nrun(f())\n- async def _run_mpp(self, graph, *, attempts):\n+ def _run_mpp(self,... | Python | MIT License | spesmilo/electrum | lnpeer: try to fix tests |
630,969 | 11.03.2021 11:01:35 | -3,600 | dc55cf4b2d23d84bcde26448c85f0842d611063e | test_multipart_payment_with_timeout: give extra time for second HTLC to timeout before next test | [
{
"change_type": "MODIFY",
"old_path": "electrum/tests/test_lnpeer.py",
"new_path": "electrum/tests/test_lnpeer.py",
"diff": "@@ -785,10 +785,7 @@ class TestPeer(ElectrumTestCase):\nmpp_invoice=True):\nif mpp_invoice:\ngraph.w_d.features |= LnFeatures.BASIC_MPP_OPT\n- if bob_forwarding:\n- graph.w_b... | Python | MIT License | spesmilo/electrum | test_multipart_payment_with_timeout: give extra time for second HTLC to timeout before next test |
630,969 | 11.03.2021 14:44:13 | -3,600 | 1b7d8c0387734463dca66ddc978b4c966320272d | Qt: rm gossip menu item: already available in toolbar, and channel_db is not always present | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/main_window.py",
"new_path": "electrum/gui/qt/main_window.py",
"diff": "@@ -743,7 +743,6 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\ntools_menu.addAction(_(\"Electrum preferences\"), self.settings_dialog)\ntools_menu.addActi... | Python | MIT License | spesmilo/electrum | Qt: rm gossip menu item: already available in toolbar, and channel_db is not always present |
630,969 | 11.03.2021 16:53:55 | -3,600 | 533d796a4149cac7038ae5503e6c089de60ba614 | add TODO, rename check_received_mpp_htlc | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnpeer.py",
"new_path": "electrum/lnpeer.py",
"diff": "@@ -1538,7 +1538,7 @@ class Peer(Logger):\npayment_secret_from_onion = None\nif total_msat > amt_to_forward:\n- mpp_status = self.lnworker.add_received_htlc(payment_secret_from_onion, chan.short_c... | Python | MIT License | spesmilo/electrum | add TODO, rename check_received_mpp_htlc |
630,870 | 11.03.2021 18:50:59 | -3,600 | 28a7d204ad6e8bfa503f9f8afe2b8f23cb16238e | util: document CallbackManager behaviour | [
{
"change_type": "MODIFY",
"old_path": "electrum/util.py",
"new_path": "electrum/util.py",
"diff": "@@ -1380,7 +1380,9 @@ def randrange(bound: int) -> int:\nclass CallbackManager:\n- # callbacks set by the GUI\n+ # callbacks set by the GUI or any thread\n+ # guarantee: the callbacks will always get ... | Python | MIT License | spesmilo/electrum | util: document CallbackManager behaviour |
630,870 | 11.03.2021 18:51:45 | -3,600 | 54f7755397f5c4a4ce3215ddad70f342f06cf9fe | lnpeer.maybe_forward_htlc: add FIXME | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnpeer.py",
"new_path": "electrum/lnpeer.py",
"diff": "@@ -1343,6 +1343,9 @@ class Peer(Logger):\n# Forward HTLC\n# FIXME: there are critical safety checks MISSING here\n+ # - for example; atm we forward first and then persist \"forwarding_info\",\n+ ... | Python | MIT License | spesmilo/electrum | lnpeer.maybe_forward_htlc: add FIXME |
630,870 | 11.03.2021 19:09:35 | -3,600 | 05e58671c92940620aab36cf5946a0f1dd24c013 | lnhtlc: (trivial) rename method | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnhtlc.py",
"new_path": "electrum/lnhtlc.py",
"diff": "@@ -320,7 +320,7 @@ class HTLCManager:\nreturn False\n@with_lock\n- def is_add_htlc_irrevocably_committed_yet(\n+ def is_htlc_irrevocably_added_yet(\nself,\n*,\nctx_owner: HTLCOwner = None,\n@@ -3... | Python | MIT License | spesmilo/electrum | lnhtlc: (trivial) rename method |
630,870 | 11.03.2021 20:35:21 | -3,600 | 2487a3fa90d6e88ecafc6b6e119ba514fce60cb2 | tests: add test for prev | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnworker.py",
"new_path": "electrum/lnworker.py",
"diff": "@@ -578,6 +578,7 @@ class LNWallet(LNWorker):\nlnwatcher: Optional['LNWalletWatcher']\nMPP_EXPIRY = 120\n+ TIMEOUT_SHUTDOWN_FAIL_PENDING_HTLCS = 3 # seconds\ndef __init__(self, wallet: 'Abstra... | Python | MIT License | spesmilo/electrum | tests: add test for prev |
630,969 | 12.03.2021 11:40:53 | -3,600 | 90b228de839d6474f6d23322cd2a80e1da73a254 | fix wallet get_full_history: add onchain tx for channels not opened by us | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnworker.py",
"new_path": "electrum/lnworker.py",
"diff": "@@ -804,6 +804,7 @@ class LNWallet(LNWorker):\nreturn out\ndef get_onchain_history(self):\n+ current_height = self.wallet.get_local_height()\nout = {}\n# add funding events\nfor chan in self.c... | Python | MIT License | spesmilo/electrum | fix wallet get_full_history: add onchain tx for channels not opened by us |
630,969 | 12.03.2021 12:41:10 | -3,600 | e186214f6f2d0612fe1d4df974c4c85ba07f182c | (formatting) lnsweep indentation | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnsweep.py",
"new_path": "electrum/lnsweep.py",
"diff": "@@ -70,7 +70,8 @@ def create_sweeptxs_for_watchtower(chan: 'Channel', ctx: Transaction, per_commit\n# HTLCs\ndef create_sweeptx_for_htlc(*, htlc: 'UpdateAddHtlc', htlc_direction: Direction,\nctx... | Python | MIT License | spesmilo/electrum | (formatting) lnsweep indentation |
630,969 | 12.03.2021 16:09:24 | -3,600 | bed4ddbcb4f9d2efa8334ebae21550577f83a2eb | fix dict value assignment bug in import_channel_backup. In request_force_close, use Taskgroup with wait=any | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnworker.py",
"new_path": "electrum/lnworker.py",
"diff": "@@ -2003,12 +2003,15 @@ class LNWallet(LNWorker):\nxpub = self.wallet.get_fingerprint()\ndecrypted = pw_decode_with_version_and_mac(encrypted, xpub)\ncb_storage = ChannelBackupStorage.from_byt... | Python | MIT License | spesmilo/electrum | fix dict value assignment bug in import_channel_backup. In request_force_close, use Taskgroup with wait=any |
630,969 | 12.03.2021 16:10:02 | -3,600 | f16358ec3c60cef07c63257a64315f53e044acb7 | add request_force_close command to CLI
add regtest for channel backup | [
{
"change_type": "MODIFY",
"old_path": "electrum/commands.py",
"new_path": "electrum/commands.py",
"diff": "@@ -1081,6 +1081,12 @@ class Commands:\ncoro = wallet.lnworker.force_close_channel(chan_id) if force else wallet.lnworker.close_channel(chan_id)\nreturn await coro\n+ @command('wn')\n+ async d... | Python | MIT License | spesmilo/electrum | add request_force_close command to CLI
add regtest for channel backup |
630,969 | 12.03.2021 16:11:47 | -3,600 | af7bcd4ca1ef81eeb8663c5289c9059d330f298a | add comments about ChannelBackup fields | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnchannel.py",
"new_path": "electrum/lnchannel.py",
"diff": "@@ -422,7 +422,9 @@ class ChannelBackup(AbstractChannel):\nhtlc_minimum_msat=1,\nupfront_shutdown_script='')\nself.config[REMOTE] = RemoteConfig(\n+ # payment_basepoint needed to deobfuscate... | Python | MIT License | spesmilo/electrum | add comments about ChannelBackup fields |
630,870 | 12.03.2021 17:29:54 | -3,600 | 897f90d6e88b694c1bde990a5abce85ccb8e8c96 | wallet: factor out "what key to use for invoice"
fix: qt request list was not using the correct key | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/uix/screens.py",
"new_path": "electrum/gui/kivy/uix/screens.py",
"diff": "@@ -237,10 +237,10 @@ class SendScreen(CScreen, Logger):\nstatus = self.app.wallet.get_invoice_status(item)\nstatus_str = item.get_status_str(status)\nis_lightning = it... | Python | MIT License | spesmilo/electrum | wallet: factor out "what key to use for invoice"
fix: qt request list was not using the correct key |
630,870 | 12.03.2021 17:38:19 | -3,600 | 3ff203ea51a87ad0ca55a91764210ca3e02b471c | commands: fix list_requests
closes | [
{
"change_type": "MODIFY",
"old_path": "electrum/commands.py",
"new_path": "electrum/commands.py",
"diff": "@@ -804,7 +804,8 @@ class Commands:\nf = None\nout = wallet.get_sorted_requests()\nif f is not None:\n- out = list(filter(lambda x: x.status==f, out))\n+ out = [req for req in out\n+ if f == w... | Python | MIT License | spesmilo/electrum | commands: fix list_requests
closes https://github.com/spesmilo/electrum/issues/7102 |
630,969 | 12.03.2021 17:38:42 | -3,600 | 65d263801a7e419c953db38eb084deb3ea959ef1 | show capacity of channel backups in GUI | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py",
"new_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py",
"diff": "@@ -461,7 +461,7 @@ class ChannelDetailsPopup(Popup, Logger):\nself.channel_id = bh2u(chan.channel_id)\nself.funding_txid = chan.f... | Python | MIT License | spesmilo/electrum | show capacity of channel backups in GUI |
630,870 | 12.03.2021 17:53:13 | -3,600 | 24e4aa3ab91cd1d7ace8c1996ce86249ed4c7492 | network.best_effort_reliable: use curio APIs instead of asyncio | [
{
"change_type": "MODIFY",
"old_path": "electrum/network.py",
"new_path": "electrum/network.py",
"diff": "@@ -37,6 +37,7 @@ import traceback\nimport concurrent\nfrom concurrent import futures\nimport copy\n+import functools\nimport aiorpcx\nfrom aiorpcx import TaskGroup, ignore_after\n@@ -829,24 +83... | Python | MIT License | spesmilo/electrum | network.best_effort_reliable: use curio APIs instead of asyncio |
630,870 | 12.03.2021 18:29:00 | -3,600 | 1ba599723871880fc7ecbd3bced25f5aad0eee6d | qt lightning_tx_dialog: use historical fx rate for fiat amounts | [
{
"change_type": "MODIFY",
"old_path": "electrum/exchange_rate.py",
"new_path": "electrum/exchange_rate.py",
"diff": "@@ -614,12 +614,18 @@ class FxThread(ThreadJob):\nreturn Decimal('NaN')\nreturn Decimal(rate)\n- def format_amount(self, btc_balance):\n+ def format_amount(self, btc_balance, *, time... | Python | MIT License | spesmilo/electrum | qt lightning_tx_dialog: use historical fx rate for fiat amounts |
630,969 | 12.03.2021 18:53:09 | -3,600 | 7c2b7ca5c062461ffd8485fa2d1ba55041fd74ca | add channel backups to result returned by list_channels | [
{
"change_type": "MODIFY",
"old_path": "electrum/commands.py",
"new_path": "electrum/commands.py",
"diff": "@@ -1031,13 +1031,15 @@ class Commands:\n@command('w')\nasync def list_channels(self, wallet: Abstract_Wallet = None):\n- # we output the funding_outpoint instead of the channel_id because lnd... | Python | MIT License | spesmilo/electrum | add channel backups to result returned by list_channels |
630,870 | 12.03.2021 18:54:49 | -3,600 | 5dbf6dbdec4f7ccc1e47e49491daee6748e6bfd4 | qt receive tab: change "Expires after" label and help text | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/main_window.py",
"new_path": "electrum/gui/qt/main_window.py",
"diff": "@@ -1086,12 +1086,16 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nself.config.set_key('request_expiry', evl_keys[i])\nself.expires_combo.currentIndexChan... | Python | MIT License | spesmilo/electrum | qt receive tab: change "Expires after" label and help text |
630,969 | 12.03.2021 19:05:25 | -3,600 | 018f09f2afe1fb6ea32ba69b26d19cc4deb7cac5 | use mktx_for_open_channel in commands module. fix indentation | [
{
"change_type": "MODIFY",
"old_path": "electrum/commands.py",
"new_path": "electrum/commands.py",
"diff": "@@ -54,7 +54,6 @@ from .address_synchronizer import TX_HEIGHT_LOCAL\nfrom .mnemonic import Mnemonic\nfrom .lnutil import SENT, RECEIVED\nfrom .lnutil import LnFeatures\n-from .lnutil import ln... | Python | MIT License | spesmilo/electrum | use mktx_for_open_channel in commands module. fix indentation |
630,870 | 12.03.2021 19:41:47 | -3,600 | 4d4a66c9babf07289fd013d4f936ec08750f1495 | lnpeer: add comments to process_unfulfilled_htlc | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnpeer.py",
"new_path": "electrum/lnpeer.py",
"diff": "@@ -1909,12 +1909,13 @@ class Peer(Logger):\npayment_hash=payment_hash,\nonion_packet_bytes=onion_packet_bytes)\nif processed_onion.are_we_final:\n+ # either we are final recipient; or if trampoli... | Python | MIT License | spesmilo/electrum | lnpeer: add comments to process_unfulfilled_htlc |
630,969 | 13.03.2021 09:34:19 | -3,600 | 2ad49bbc5bf7ed12a44284f899cac0b68db8b38f | Kivy: Show fee dialog before opening a new channel.
Remove fee and rbf from settings, as they are now always proposed | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/uix/dialogs/confirm_tx_dialog.py",
"new_path": "electrum/gui/kivy/uix/dialogs/confirm_tx_dialog.py",
"diff": "@@ -97,11 +97,12 @@ Builder.load_string('''\non_release:\npopup.dismiss()\nButton:\n+ id: ok_button\ntext: _('OK')\nsize_hint: 0.5, ... | Python | MIT License | spesmilo/electrum | Kivy: Show fee dialog before opening a new channel.
Remove fee and rbf from settings, as they are now always proposed |
630,870 | 13.03.2021 16:51:20 | -3,600 | 6e6e956de46ce2f2e4ac9548b5e4cd6b643078cb | appimage build: adapt to new PyQt (5.15.3+) layout | [
{
"change_type": "MODIFY",
"old_path": "contrib/build-linux/appimage/build.sh",
"new_path": "contrib/build-linux/appimage/build.sh",
"diff": "@@ -129,7 +129,7 @@ info \"installing electrum and its dependencies.\"\n# - cryptography, as building it would need openssl 1.1, not available on ubuntu 16.04... | Python | MIT License | spesmilo/electrum | appimage build: adapt to new PyQt (5.15.3+) layout |
630,870 | 13.03.2021 15:04:22 | -3,600 | eaffced6ddee8c40bd6cbff3bdde5462beff7db7 | binaries: bump python version | [
{
"change_type": "MODIFY",
"old_path": "contrib/build-linux/appimage/build.sh",
"new_path": "contrib/build-linux/appimage/build.sh",
"diff": "@@ -16,7 +16,7 @@ export GCC_STRIP_BINARIES=\"1\"\n# pinned versions\n# note: compiling python 3.8.x requires at least glibc 2.27,\n# which is first available... | Python | MIT License | spesmilo/electrum | binaries: bump python version |
630,969 | 15.03.2021 09:26:16 | -3,600 | 3ed2173a042d0f289a40c9fe2cf9be18d50bba5b | remove newlines in get_tx_fee_warning, it does not render well on kivy | [
{
"change_type": "MODIFY",
"old_path": "electrum/wallet.py",
"new_path": "electrum/wallet.py",
"diff": "@@ -2491,12 +2491,11 @@ class Abstract_Wallet(AddressSynchronizer, ABC):\n\"otherwise you could end up paying a different fee.\"))\ndef get_tx_fee_warning(\n- self,\n- *,\n+ self, *,\ninvoice_amt:... | Python | MIT License | spesmilo/electrum | remove newlines in get_tx_fee_warning, it does not render well on kivy |
630,969 | 15.03.2021 10:17:30 | -3,600 | abaefa362a044b8909f2a26b858a9a01017a9cf3 | kivy: unify fee dialogs
- confirm_tx_dialog and bump_fee_dialog inherit from FeeSliderDialog
- changing the slider method does not require an extra popup | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/uix/dialogs/bump_fee_dialog.py",
"new_path": "electrum/gui/kivy/uix/dialogs/bump_fee_dialog.py",
"diff": "@@ -10,16 +10,18 @@ from electrum.gui.kivy.i18n import _\nif TYPE_CHECKING:\nfrom ...main_window import ElectrumWindow\n+from .fee_dialo... | Python | MIT License | spesmilo/electrum | kivy: unify fee dialogs
- confirm_tx_dialog and bump_fee_dialog inherit from FeeSliderDialog
- changing the slider method does not require an extra popup |
630,969 | 15.03.2021 12:38:00 | -3,600 | cf926e841263215b86f37bdc0d1beb788ba1b9a2 | Qt: add option to request force close of channel | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/channels_list.py",
"new_path": "electrum/gui/qt/channels_list.py",
"diff": "@@ -6,7 +6,7 @@ from typing import Sequence, Optional, Dict\nfrom PyQt5 import QtCore, QtGui\nfrom PyQt5.QtCore import Qt\nfrom PyQt5.QtWidgets import (QMenu, QHBoxLayo... | Python | MIT License | spesmilo/electrum | Qt: add option to request force close of channel |
630,969 | 15.03.2021 14:22:31 | -3,600 | b18123fb61ebd7bccc4e498907a512b07d064f43 | Qt: add "save backup" checkbox to force-close dialog | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/channels_list.py",
"new_path": "electrum/gui/qt/channels_list.py",
"diff": "@@ -125,14 +125,25 @@ class ChannelsList(MyTreeView):\nWaitingDialog(self, 'please wait..', task, self.on_success, self.on_failure)\ndef force_close(self, channel_id):\... | Python | MIT License | spesmilo/electrum | Qt: add "save backup" checkbox to force-close dialog |
630,969 | 15.03.2021 14:33:22 | -3,600 | d6ebb4d4ca14ba4778471e8ceb7fad26859049d4 | (trivial) rm debugging code | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/channels_list.py",
"new_path": "electrum/gui/qt/channels_list.py",
"diff": "@@ -143,7 +143,6 @@ class ChannelsList(MyTreeView):\nif self.save_backup:\nif not self.parent.backup_wallet():\nreturn\n- return\ndef task():\ncoro = self.lnworker.forc... | Python | MIT License | spesmilo/electrum | (trivial) rm debugging code |
630,969 | 15.03.2021 14:48:25 | -3,600 | 2dc79b7040a33f3447b93dfab4c2cd6493ee1976 | (minor) word wrap qt tooltip | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/channels_list.py",
"new_path": "electrum/gui/qt/channels_list.py",
"diff": "@@ -110,6 +110,7 @@ class ChannelsList(MyTreeView):\ntooltip = _(\n'If you check this option, your node will pretend that it has lost its data and ask the remote node t... | Python | MIT License | spesmilo/electrum | (minor) word wrap qt tooltip |
630,870 | 15.03.2021 15:55:18 | -3,600 | 5cbfebeb2419e15a9fc7854983a713dbe1749450 | kivy server selection: don't hide ':t' protocol suffix | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/uix/ui_screens/server.kv",
"new_path": "electrum/gui/kivy/uix/ui_screens/server.kv",
"diff": "@@ -23,7 +23,7 @@ Popup:\nheight: '36dp'\nsize_hint_x: 3\nsize_hint_y: None\n- text: app.network.get_parameters().server.net_addr_str()\n+ text: app... | Python | MIT License | spesmilo/electrum | kivy server selection: don't hide ':t' protocol suffix |
630,969 | 15.03.2021 16:04:47 | -3,600 | 85886745394423c54ad9ed3b6feecc92b46a0137 | channel backups: display status from lnworker instead of channel state | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnchannel.py",
"new_path": "electrum/lnchannel.py",
"diff": "@@ -468,8 +468,10 @@ class ChannelBackup(AbstractChannel):\nreturn 'BACKUP'\ndef get_state_for_GUI(self):\n- cs = self.get_state()\n- return cs.name\n+ if self.lnworker:\n+ return self.lnwor... | Python | MIT License | spesmilo/electrum | channel backups: display status from lnworker instead of channel state |
630,870 | 15.03.2021 17:54:13 | -3,600 | 7243e5b7635c4a4bb81387002cee17556ecb9977 | channel_db: (fix) asyncio.Event.set() is not thread-safe
it must be called from asyncio thread | [
{
"change_type": "MODIFY",
"old_path": "electrum/channel_db.py",
"new_path": "electrum/channel_db.py",
"diff": "@@ -721,7 +721,7 @@ class ChannelDB(SqlDB):\n(nchans_with_0p, nchans_with_1p, nchans_with_2p) = self.get_num_channels_partitioned_by_policy_count()\nself.logger.info(f'num_channels_partiti... | Python | MIT License | spesmilo/electrum | channel_db: (fix) asyncio.Event.set() is not thread-safe
it must be called from asyncio thread |
630,870 | 15.03.2021 19:24:21 | -3,600 | ea56a259e43f041123fc92122324f22958f6cf76 | lnworker: (trivial) split handle_error_code_from_failed_htlc method | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnworker.py",
"new_path": "electrum/lnworker.py",
"diff": "@@ -1242,6 +1242,33 @@ class LNWallet(LNWorker):\nself.logger.info(f'could not decode channel_update for failed htlc: {channel_update_as_received.hex()}')\nblacklist = True\nelse:\n+ blacklist... | Python | MIT License | spesmilo/electrum | lnworker: (trivial) split handle_error_code_from_failed_htlc method |
630,870 | 15.03.2021 20:21:37 | -3,600 | cedc71a8e33bc1d3de34f4a0f14099f1cd6f3458 | ln gossip: make sure all signatures are verified
we have not been verifying signatures of ChannelUpdate messages...
(regression from 2d0ef78a11f99f198b8b6d3802a98b60a319583a) | [
{
"change_type": "MODIFY",
"old_path": "electrum/channel_db.py",
"new_path": "electrum/channel_db.py",
"diff": "@@ -41,9 +41,11 @@ from . import constants, util\nfrom .util import bh2u, profiler, get_headers_dir, is_ip_address, json_normalize\nfrom .logging import Logger\nfrom .lnutil import (LNPeer... | Python | MIT License | spesmilo/electrum | ln gossip: make sure all signatures are verified
we have not been verifying signatures of ChannelUpdate messages...
(regression from 2d0ef78a11f99f198b8b6d3802a98b60a319583a) |
630,870 | 15.03.2021 20:37:49 | -3,600 | dca182992f941d20d2098308fa61c147531b4cd1 | ln gossip: run sig checks in a thread
to avoid blocking the asyncio event loop | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnworker.py",
"new_path": "electrum/lnworker.py",
"diff": "@@ -556,28 +556,30 @@ class LNGossip(LNWorker):\n# and disconnect only from that peer\nawait self.channel_db.data_loaded.wait()\nself.logger.debug(f'process_gossip {len(chan_anns)} {len(node_a... | Python | MIT License | spesmilo/electrum | ln gossip: run sig checks in a thread
to avoid blocking the asyncio event loop |
630,969 | 16.03.2021 09:30:25 | -3,600 | 2f69f3644facca02304048df276607bc82b24d9f | kivy: show channel backup capacity | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py",
"new_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py",
"diff": "@@ -416,6 +416,7 @@ class ChannelBackupPopup(Popup, Logger):\nself.chan = chan\nself.app = app\nself.short_id = format_short_chann... | Python | MIT License | spesmilo/electrum | kivy: show channel backup capacity |
630,969 | 16.03.2021 10:30:52 | -3,600 | 905796baeb701142e9ae1becfc4f19e082d6a888 | kivy: show channel backup before force-close | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py",
"new_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py",
"diff": "@@ -16,6 +16,8 @@ from electrum.transaction import PartialTxOutput, Transaction\nfrom electrum.util import NotEnoughFunds, NoDynam... | Python | MIT License | spesmilo/electrum | kivy: show channel backup before force-close |
630,969 | 16.03.2021 16:58:44 | -3,600 | eec97ddfbbb180d0e4adf0d2162f8fbcca00717d | (trivial) lnbackups -> lnworker | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/main_window.py",
"new_path": "electrum/gui/kivy/main_window.py",
"diff": "@@ -1346,7 +1346,7 @@ class ElectrumWindow(App, Logger):\nif not b:\nreturn\ntry:\n- self.wallet.lnbackups.import_channel_backup(encrypted)\n+ self.wallet.lnworker.impo... | Python | MIT License | spesmilo/electrum | (trivial) lnbackups -> lnworker |
630,969 | 16.03.2021 17:27:37 | -3,600 | bcfcc20363abf6ebdf53d660a263eeae2f42a091 | fix: add request_force_close method | [
{
"change_type": "MODIFY",
"old_path": "electrum/commands.py",
"new_path": "electrum/commands.py",
"diff": "@@ -1099,7 +1099,7 @@ class Commands:\nasync def request_force_close(self, channel_point, wallet: Abstract_Wallet = None):\ntxid, index = channel_point.split(':')\nchan_id, _ = channel_id_from... | Python | MIT License | spesmilo/electrum | fix: add request_force_close method |
630,870 | 16.03.2021 19:07:31 | -3,600 | 468f3b2b8d27f50edacf0c16eda7cedeb48da146 | 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. | [
{
"change_type": "MODIFY",
"old_path": "electrum/channel_db.py",
"new_path": "electrum/channel_db.py",
"diff": "@@ -569,12 +569,14 @@ class ChannelDB(SqlDB):\nc.execute(\"INSERT INTO address (node_id, host, port, timestamp) VALUES (?,?,?,?)\", (addr.pubkey, addr.host, addr.port, 0))\n@classmethod\n-... | Python | MIT License | spesmilo/electrum | 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. |
630,870 | 16.03.2021 19:19:26 | -3,600 | 5e12f88be30ac4e54a83a3f8ae57e850ef61f9e1 | lnworker: minor clean-up, fix typo | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnworker.py",
"new_path": "electrum/lnworker.py",
"diff": "@@ -44,7 +44,7 @@ from .lntransport import LNTransport, LNResponderTransport\nfrom .lnpeer import Peer, LN_P2P_NETWORK_TIMEOUT\nfrom .lnaddr import lnencode, LnAddr, lndecode\nfrom .ecc import... | Python | MIT License | spesmilo/electrum | lnworker: minor clean-up, fix typo |
630,870 | 16.03.2021 20:39:51 | -3,600 | fa999de30502be97fb0e0d39fe6be744df652488 | tests: re bolt11 tests, also check invoice str in test_roundtrip | [
{
"change_type": "MODIFY",
"old_path": "electrum/tests/test_bolt11.py",
"new_path": "electrum/tests/test_bolt11.py",
"diff": "@@ -60,36 +60,56 @@ class TestBolt11(ElectrumTestCase):\n' one lollypop, one piece of cherry pie, one sausage, one'\n' cupcake, and one slice of watermelon')\n-\n+ timestamp ... | Python | MIT License | spesmilo/electrum | tests: re bolt11 tests, also check invoice str in test_roundtrip |
630,896 | 12.03.2021 18:50:10 | -3,600 | 882899809360e2746cfc980daae4ac3b87c62150 | mpp_split: use single nodes for mpp payments over trampoline | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnworker.py",
"new_path": "electrum/lnworker.py",
"diff": "@@ -1166,7 +1166,7 @@ class LNWallet(LNWorker):\nif code == OnionFailureCode.MPP_TIMEOUT:\nraise PaymentFailure(failure_msg.code_name())\n# trampoline\n- if self.channel_db is None:\n+ if not ... | Python | MIT License | spesmilo/electrum | mpp_split: use single nodes for mpp payments over trampoline |
630,969 | 17.03.2021 09:15:40 | -3,600 | 3c9838d999c9c5801e7d21e5aaa37fa19392d02b | lnworker: merge request_force_close and request_remote_force_close | [
{
"change_type": "MODIFY",
"old_path": "electrum/commands.py",
"new_path": "electrum/commands.py",
"diff": "@@ -1096,10 +1096,15 @@ class Commands:\nreturn await coro\n@command('wn')\n- async def request_force_close(self, channel_point, wallet: Abstract_Wallet = None):\n+ async def request_force_clo... | Python | MIT License | spesmilo/electrum | lnworker: merge request_force_close and request_remote_force_close |
630,969 | 17.03.2021 09:32:34 | -3,600 | ef42d26cbfd4e67b084009d80bb15fe7988eb1b9 | qt channels_list: separate on_success handlers for close_channel and request_force_close | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/channels_list.py",
"new_path": "electrum/gui/qt/channels_list.py",
"diff": "@@ -95,9 +95,12 @@ class ChannelsList(MyTreeView):\nself.Columns.CHANNEL_STATUS: status,\n}\n- def on_success(self, txid):\n+ def on_channel_closed(self, txid):\nself.m... | Python | MIT License | spesmilo/electrum | qt channels_list: separate on_success handlers for close_channel and request_force_close |
630,870 | 17.03.2021 13:40:27 | -3,600 | 16f874b58edbbe1e239175fb1681ef0e75d51d03 | 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) | [
{
"change_type": "MODIFY",
"old_path": "electrum/network.py",
"new_path": "electrum/network.py",
"diff": "@@ -636,6 +636,7 @@ class Network(Logger, NetworkRetryManager[ServerAddr]):\nawait self.switch_to_interface(server)\nelse:\nawait self.switch_lagging_interface()\n+ util.trigger_callback('networ... | Python | MIT License | spesmilo/electrum | 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) |
630,969 | 17.03.2021 13:50:57 | -3,600 | 1c8c2369331c30685a6e6205750647b3fde26d9d | channels_with_funds: self._channels -> self.channels | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnworker.py",
"new_path": "electrum/lnworker.py",
"diff": "@@ -1439,7 +1439,7 @@ class LNWallet(LNWorker):\nraise\nchannels_with_funds = {(cid, chan.node_id): int(chan.available_to_spend(HTLCOwner.LOCAL))\n- for cid, chan in self._channels.items() if ... | Python | MIT License | spesmilo/electrum | channels_with_funds: self._channels -> self.channels |
630,969 | 17.03.2021 15:29:47 | -3,600 | e954bfaa54358a5f01de4bb290c2ff5a9c16c1d6 | request_force_close: close and reopen existing peer connection,
because channel_reestablish cannot be sent twice in the same session | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnchannel.py",
"new_path": "electrum/lnchannel.py",
"diff": "@@ -542,6 +542,7 @@ class Channel(AbstractChannel):\nself._can_send_ctx_updates = True # type: bool\nself._receive_fail_reasons = {} # type: Dict[int, (bytes, OnionRoutingFailure)]\nself._ig... | Python | MIT License | spesmilo/electrum | request_force_close: close and reopen existing peer connection,
because channel_reestablish cannot be sent twice in the same session |
630,969 | 17.03.2021 15:55:53 | -3,600 | cd025c5553a3c453d84e9b231a64c64c478284c5 | inspect_tx_candidate: tx output must be of address type | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnwatcher.py",
"new_path": "electrum/lnwatcher.py",
"diff": "@@ -234,6 +234,8 @@ class LNWatcher(AddressSynchronizer):\nself.channel_status[outpoint] = 'closed (deep)'\ntx = self.db.get_transaction(txid)\nfor i, o in enumerate(tx.outputs()):\n+ if o.a... | Python | MIT License | spesmilo/electrum | inspect_tx_candidate: tx output must be of address type |
630,870 | 17.03.2021 17:13:10 | -3,600 | 468636eae00e08735c9bd80671bfc747334c6d0e | tests: add missing test vectors from (bech32) | [
{
"change_type": "MODIFY",
"old_path": "electrum/tests/test_bitcoin.py",
"new_path": "electrum/tests/test_bitcoin.py",
"diff": "@@ -10,6 +10,7 @@ from electrum.bitcoin import (public_key_to_p2pkh, address_from_private_key,\nscript_num_to_hex, push_script, add_number_to_script, int_to_hex,\nopcodes, ... | Python | MIT License | spesmilo/electrum | tests: add missing test vectors from BIP-0173 (bech32) |
630,969 | 17.03.2021 18:35:14 | -3,600 | aa58e270c713cf01f74fdb3554c156ff7158aff9 | increase width of tx dialog, to have one line per input | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/transaction_dialog.py",
"new_path": "electrum/gui/qt/transaction_dialog.py",
"diff": "@@ -110,7 +110,7 @@ class BaseTxDialog(QDialog, MessageBoxMixin):\nself.prompt_if_unsaved = prompt_if_unsaved\nself.saved = False\nself.desc = desc\n- self.se... | Python | MIT License | spesmilo/electrum | increase width of tx dialog, to have one line per input |
630,870 | 17.03.2021 19:16:07 | -3,600 | 5dfe1d1b6ce6bfed84c33b08ff912ee161f6722a | commands: make stop() CLI cmd wait for daemon to stop | [
{
"change_type": "MODIFY",
"old_path": "electrum/commands.py",
"new_path": "electrum/commands.py",
"diff": "@@ -209,7 +209,8 @@ class Commands:\n@command('n')\nasync def stop(self):\n\"\"\"Stop daemon\"\"\"\n- self.daemon.stop()\n+ # TODO it would be nice if this could stop the GUI too\n+ await self... | Python | MIT License | spesmilo/electrum | commands: make stop() CLI cmd wait for daemon to stop |
630,870 | 17.03.2021 19:34:57 | -3,600 | 3ea27beb4eca29d8d0d7c7bd84bf1b5cf99dff76 | daemon: change stop() to use events, instead of polling | [
{
"change_type": "MODIFY",
"old_path": "electrum/daemon.py",
"new_path": "electrum/daemon.py",
"diff": "@@ -413,8 +413,6 @@ class Daemon(Logger):\n@profiler\ndef __init__(self, config: SimpleConfig, fd=None, *, listen_jsonrpc=True):\nLogger.__init__(self)\n- self.running = False\n- self.running_lock... | Python | MIT License | spesmilo/electrum | daemon: change stop() to use events, instead of polling |
630,969 | 18.03.2021 07:26:33 | -3,600 | e5686c8dc5ddca96bc00f6266ff17f13baa0f195 | test_backup: sleep is not needed anymore | [
{
"change_type": "MODIFY",
"old_path": "electrum/tests/regtest/regtest.sh",
"new_path": "electrum/tests/regtest/regtest.sh",
"diff": "@@ -147,7 +147,6 @@ if [[ $1 == \"backup\" ]]; then\n$alice lnpay $request\nseed=$($alice getseed)\n$alice stop\n- sleep 2 # FIXME: we should not have to do that..\nm... | Python | MIT License | spesmilo/electrum | test_backup: sleep is not needed anymore |
630,969 | 18.03.2021 07:48:30 | -3,600 | 8a051dcd76d1d81971129573914b3ceaffa995cc | lnworker: use booleans for enable_htlc_settle, enable_htlc_forwarding | [
{
"change_type": "MODIFY",
"old_path": "electrum/commands.py",
"new_path": "electrum/commands.py",
"diff": "@@ -1077,8 +1077,7 @@ class Commands:\n@command('wn')\nasync def enable_htlc_settle(self, b: bool, wallet: Abstract_Wallet = None):\n- e = wallet.lnworker.enable_htlc_settle\n- e.set() if b el... | Python | MIT License | spesmilo/electrum | lnworker: use booleans for enable_htlc_settle, enable_htlc_forwarding |
630,870 | 18.03.2021 19:13:33 | -3,600 | 9bb39833cc23a2aed0b0521c6f94c2be08663285 | lnpeer: add sanity checks in channel open flow re ln dummy output | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnpeer.py",
"new_path": "electrum/lnpeer.py",
"diff": "@@ -677,7 +677,9 @@ class Peer(Logger):\nfunding_address = bitcoin.redeem_script_to_address('p2wsh', redeem_script)\nfunding_output = PartialTxOutput.from_address_and_value(funding_address, fundin... | Python | MIT License | spesmilo/electrum | lnpeer: add sanity checks in channel open flow re ln dummy output |
630,969 | 19.03.2021 06:40:49 | -3,600 | e3025b3d7bbdc0d1aba258ed19d7d5c31bfb834e | lnpeer: send update_fee if channel was never used (workaround eclair issue 1730) | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnpeer.py",
"new_path": "electrum/lnpeer.py",
"diff": "@@ -1645,6 +1645,11 @@ class Peer(Logger):\nself.logger.info(\"FEES HAVE FALLEN\")\nelif feerate_per_kw > chan_fee * 2:\nself.logger.info(\"FEES HAVE RISEN\")\n+ elif chan.get_oldest_unrevoked_ctn... | Python | MIT License | spesmilo/electrum | lnpeer: send update_fee if channel was never used (workaround eclair issue 1730) |
630,969 | 19.03.2021 10:45:17 | -3,600 | 5ec1f7b398fa8d182c435a2b02fe2af3980f4f35 | bump version number. initial release notes for version 4.1.0 | [
{
"change_type": "MODIFY",
"old_path": "RELEASE-NOTES",
"new_path": "RELEASE-NOTES",
"diff": "+# Release 4.1.0 - (not released yet; release notes are a draft)\n+ * The wallet creation wizard will no longer ask for seed type,\n+ and create segwit wallets. Older seed types can still be\n+ created wit ... | Python | MIT License | spesmilo/electrum | bump version number. initial release notes for version 4.1.0 |
630,969 | 19.03.2021 13:11:45 | -3,600 | 2fee920f43f846538ab0f0d38f46935af147f036 | On Android, if channels are not recoverable, display channel backup when a new channel is created.
Remove the 'android_backups' setting, which was unpractical. | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/main_window.py",
"new_path": "electrum/gui/kivy/main_window.py",
"diff": "@@ -193,10 +193,6 @@ class ElectrumWindow(App, Logger):\nself.network.run_from_another_thread(\nself.network.stop_gossip())\n- android_backups = BooleanProperty(False)\... | Python | MIT License | spesmilo/electrum | On Android, if channels are not recoverable, display channel backup when a new channel is created.
Remove the 'android_backups' setting, which was unpractical. |
630,969 | 19.03.2021 13:35:12 | -3,600 | afcc695f4de4c35e8d140e240d2aaa3b850437d2 | channels_list: show backup text in the state column. fix missing import in previous commit. | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/main_window.py",
"new_path": "electrum/gui/qt/main_window.py",
"diff": "@@ -55,7 +55,7 @@ from electrum import (keystore, ecc, constants, util, bitcoin, commands,\nfrom electrum.bitcoin import COIN, is_address\nfrom electrum.plugin import run_h... | Python | MIT License | spesmilo/electrum | channels_list: show backup text in the state column. fix missing import in previous commit. |
630,969 | 19.03.2021 13:57:17 | -3,600 | 27dcfba98d32c490172e8408ae9e7689a9ca4b5c | channels_list: improve menu for backups | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py",
"new_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py",
"diff": "@@ -9,7 +9,7 @@ from .fee_dialog import FeeDialog\nfrom electrum.util import bh2u\nfrom electrum.logging import Logger\nfrom elect... | Python | MIT License | spesmilo/electrum | channels_list: improve menu for backups |
630,969 | 19.03.2021 14:07:04 | -3,600 | 2509eaa64296372e37a142a91d2a36d76530e667 | Qt: clarify use_gossip checkbox text | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/settings_dialog.py",
"new_path": "electrum/gui/qt/settings_dialog.py",
"diff": "@@ -144,7 +144,7 @@ class SettingsDialog(WindowModalDialog):\nhelp_gossip = _(\"\"\"If this option is enabled, Electrum will download the network\nchannels graph an... | Python | MIT License | spesmilo/electrum | Qt: clarify use_gossip checkbox text |
630,870 | 19.03.2021 19:13:50 | -3,600 | d8352f1a0acbbaa4c4b8a995414ea2eb3fd69dba | lnworker: nicer logs/error msgs for payment failure
try to decode onion error and log it in human-readable form | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnmsg.py",
"new_path": "electrum/lnmsg.py",
"diff": "@@ -7,7 +7,11 @@ from collections import OrderedDict\nfrom .lnutil import OnionFailureCodeMetaFlag\n-class MalformedMsg(Exception): pass\n+class FailedToParseMsg(Exception): pass\n+\n+class Malforme... | Python | MIT License | spesmilo/electrum | lnworker: nicer logs/error msgs for payment failure
try to decode onion error and log it in human-readable form |
630,870 | 19.03.2021 20:51:38 | -3,600 | c9120361804b2804a4fe30806680d9532d155e61 | lnpeer: ignore unknown 'odd' type messages
from
A receiving node:
- upon receiving a message of odd, unknown type:
- MUST ignore the received message. | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnmsg.py",
"new_path": "electrum/lnmsg.py",
"diff": "@@ -9,9 +9,11 @@ from .lnutil import OnionFailureCodeMetaFlag\nclass FailedToParseMsg(Exception): pass\n-class MalformedMsg(FailedToParseMsg): pass\nclass UnknownMsgType(FailedToParseMsg): pass\n+cl... | Python | MIT License | spesmilo/electrum | lnpeer: ignore unknown 'odd' type messages
from BOLT-01:
A receiving node:
- upon receiving a message of odd, unknown type:
- MUST ignore the received message.
https://github.com/lightningnetwork/lightning-rfc/blob/b201efe0546120c14bf154ce5f4e18da7243fe7a/01-messaging.md#lightning-message-format |
630,870 | 19.03.2021 21:21:09 | -3,600 | 65e16fabd2f3ef03d728f4046c27315b0939f351 | follow-up
message-induced exceptions should not propagate out | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnonion.py",
"new_path": "electrum/lnonion.py",
"diff": "@@ -33,7 +33,8 @@ from .crypto import sha256, hmac_oneshot, chacha20_encrypt\nfrom .util import bh2u, profiler, xor_bytes, bfh\nfrom .lnutil import (get_ecdh, PaymentFailure, NUM_MAX_HOPS_IN_PAY... | Python | MIT License | spesmilo/electrum | follow-up d8352f1a0acbbaa4c4b8a995414ea2eb3fd69dba
message-induced exceptions should not propagate out |
630,969 | 20.03.2021 09:10:48 | -3,600 | aba0bad30c29feb181e284a6410319a1a42b20e1 | lnwatcher: try_redeem must return if tx is None | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnwatcher.py",
"new_path": "electrum/lnwatcher.py",
"diff": "@@ -432,6 +432,7 @@ class LNWalletWatcher(LNWatcher):\ntx = sweep_info.gen_tx()\nif tx is None:\nself.logger.info(f'{name} could not claim output: {prevout}, dust')\n+ return\nself.lnworker.... | Python | MIT License | spesmilo/electrum | lnwatcher: try_redeem must return if tx is None |
630,969 | 20.03.2021 09:09:05 | -3,600 | bbb9ce243024c713be751c0f0ed1d79574382bb1 | lnwatcher.try_redeem: output log only the first time a tx is seen | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnwatcher.py",
"new_path": "electrum/lnwatcher.py",
"diff": "@@ -375,10 +375,10 @@ class LNWalletWatcher(LNWatcher):\nchan = self.lnworker.channel_by_txo(funding_outpoint)\nif not chan:\nreturn False\n+ chan_id_for_log = chan.get_id_for_log()\n# detec... | Python | MIT License | spesmilo/electrum | lnwatcher.try_redeem: output log only the first time a tx is seen |
630,969 | 20.03.2021 10:12:49 | -3,600 | 0121cbcbbea38772b963c136834bbc2ab1be7385 | pay_to_route: raise PaymentFailure in case of dropped peer, so that we reset payment status | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnworker.py",
"new_path": "electrum/lnworker.py",
"diff": "@@ -1242,7 +1242,7 @@ class LNWallet(LNWorker):\nchan = self.get_channel_by_short_id(short_channel_id)\npeer = self._peers.get(route[0].node_id)\nif not peer:\n- raise Exception('Dropped peer'... | Python | MIT License | spesmilo/electrum | pay_to_route: raise PaymentFailure in case of dropped peer, so that we reset payment status |
630,969 | 20.03.2021 13:53:46 | -3,600 | aad392f6ff799bba6f4de0ea73b7eff8fc250d5c | lnworker: filter active channels in create_routes_for_payment | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnworker.py",
"new_path": "electrum/lnworker.py",
"diff": "@@ -1428,14 +1428,13 @@ class LNWallet(LNWorker):\ninvoice_features = LnFeatures(invoice_features)\ntrampoline_features = LnFeatures.VAR_ONION_OPT\nlocal_height = self.network.get_local_height... | Python | MIT License | spesmilo/electrum | lnworker: filter active channels in create_routes_for_payment |
630,870 | 20.03.2021 19:20:49 | -3,600 | beba807cfe3686df86f687a63ccd12b0db8261a5 | qt ChannelsList: fix opening channel with "max" amount | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/channels_list.py",
"new_path": "electrum/gui/qt/channels_list.py",
"diff": "@@ -15,6 +15,7 @@ from electrum.lnchannel import AbstractChannel, PeerState, ChannelBackup, Channe\nfrom electrum.wallet import Abstract_Wallet\nfrom electrum.lnutil im... | Python | MIT License | spesmilo/electrum | qt ChannelsList: fix opening channel with "max" amount |
630,969 | 21.03.2021 15:26:17 | -3,600 | 1a49fd440da841e789e7b9e926f7a4bab032d612 | kivy: add option to request force-close | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py",
"new_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py",
"diff": "@@ -15,8 +15,10 @@ from .question import Question\nfrom electrum.transaction import PartialTxOutput, Transaction\nfrom electrum.ut... | Python | MIT License | spesmilo/electrum | kivy: add option to request force-close |
630,870 | 21.03.2021 22:11:16 | -3,600 | 4f13c451c7b38b0257261dac38d6f7386dbeb1e8 | tests: rework lntransport test a bit
send multiple messages, and not only short ones | [
{
"change_type": "MODIFY",
"old_path": "electrum/tests/test_lntransport.py",
"new_path": "electrum/tests/test_lntransport.py",
"diff": "@@ -4,6 +4,8 @@ from electrum.ecc import ECPrivkey\nfrom electrum.lnutil import LNPeerAddr\nfrom electrum.lntransport import LNResponderTransport, LNTransport\n+fro... | Python | MIT License | spesmilo/electrum | tests: rework lntransport test a bit
send multiple messages, and not only short ones |
630,870 | 21.03.2021 22:19:37 | -3,600 | 03d9b29eeecc102ffa610f4b35cd8e47d5357f45 | lntransport: optimise read_messages implementation
Not great to use a 'bytes' object as a FIFO buffer, as every slice copies the whole thing.
With bytearray, extending it from the right is fast,
and with the correct syntax, popping from the left is fast too.
see | [
{
"change_type": "MODIFY",
"old_path": "electrum/lntransport.py",
"new_path": "electrum/lntransport.py",
"diff": "@@ -105,19 +105,19 @@ class LNTransportBase:\nself.writer.write(lc+c)\nasync def read_messages(self):\n- read_buffer = b''\n+ buffer = bytearray()\nwhile True:\nrn_l, rk_l = self.rn()\nr... | Python | MIT License | spesmilo/electrum | lntransport: optimise read_messages implementation
Not great to use a 'bytes' object as a FIFO buffer, as every slice copies the whole thing.
With bytearray, extending it from the right is fast,
and with the correct syntax, popping from the left is fast too.
see https://stackoverflow.com/a/57748513
https://bugs.pytho... |
630,969 | 22.03.2021 11:00:42 | -3,600 | aa1fcc784e1cb3606217660af8cae6473fc89ea0 | wallet: store wanted_height in future_tx, instead of remaining blocks | [
{
"change_type": "MODIFY",
"old_path": "electrum/address_synchronizer.py",
"new_path": "electrum/address_synchronizer.py",
"diff": "@@ -86,7 +86,7 @@ class AddressSynchronizer(Logger):\n# locks: if you need to take multiple ones, acquire them in the order they are defined here!\nself.lock = threadin... | Python | MIT License | spesmilo/electrum | wallet: store wanted_height in future_tx, instead of remaining blocks |
630,969 | 22.03.2021 11:50:01 | -3,600 | f8804b29c9fc964ab02b353e99a4226192939ae9 | (minor) fix mutable default value | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnworker.py",
"new_path": "electrum/lnworker.py",
"diff": "@@ -1569,7 +1569,7 @@ class LNWallet(LNWorker):\nmin_cltv_expiry: int,\nr_tags,\ninvoice_features: int,\n- channels = [],\n+ channels: List[Channel],\nfull_path: Optional[LNPaymentPath]) -> Tu... | Python | MIT License | spesmilo/electrum | (minor) fix mutable default value |
630,969 | 22.03.2021 13:17:50 | -3,600 | 0f4297cfa82e2056504a60a174f00b93016d6432 | fix direct payment to trampoline node | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnworker.py",
"new_path": "electrum/lnworker.py",
"diff": "@@ -1435,6 +1435,13 @@ class LNWallet(LNWorker):\nfor chan in active_channels:\nif not self.is_trampoline_peer(chan.node_id):\ncontinue\n+ if chan.node_id == invoice_pubkey:\n+ trampoline_onio... | Python | MIT License | spesmilo/electrum | fix direct payment to trampoline node |
630,969 | 22.03.2021 16:23:01 | -3,600 | c3221f7bfe931a5f50125f537ba506a8cd42b788 | (temporary) disable e2e and dual trampoline if first trampoline is ACINQ | [
{
"change_type": "MODIFY",
"old_path": "electrum/trampoline.py",
"new_path": "electrum/trampoline.py",
"diff": "@@ -107,6 +107,11 @@ def create_trampoline_route(\nparams = TRAMPOLINE_FEES[trampoline_fee_level]\nelse:\nraise NoPathFound()\n+ # temporary fix: until ACINQ uses a proper feature bit to d... | Python | MIT License | spesmilo/electrum | (temporary) disable e2e and dual trampoline if first trampoline is ACINQ |
630,969 | 22.03.2021 17:03:50 | -3,600 | f7d2a33d4581a93f862df34daad1e6f1f076af72 | set initial trampoline fee level to 1 unless we are testing | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnworker.py",
"new_path": "electrum/lnworker.py",
"diff": "@@ -185,6 +185,8 @@ LNGOSSIP_FEATURES = BASE_FEATURES\\\nclass LNWorker(Logger, NetworkRetryManager[LNPeerAddr]):\n+ INITIAL_TRAMPOLINE_FEE_LEVEL = 1 # only used for trampoline payments. set t... | Python | MIT License | spesmilo/electrum | set initial trampoline fee level to 1 unless we are testing |
630,969 | 23.03.2021 11:04:58 | -3,600 | 763ee8602854f0eda269a04560d0d996acfb2c37 | lnwatcher: trigger 'verified' callback with the main wallet object.
This is a temporary fix; we should not use an extra synchronizer, and persist results. | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnwatcher.py",
"new_path": "electrum/lnwatcher.py",
"diff": "@@ -445,3 +445,11 @@ class LNWalletWatcher(LNWatcher):\nif tx_was_added:\nself.logger.info(f'added future tx: {name}. prevout: {prevout}')\nutil.trigger_callback('wallet_updated', self.lnwor... | Python | MIT License | spesmilo/electrum | lnwatcher: trigger 'verified' callback with the main wallet object.
This is a temporary fix; we should not use an extra synchronizer, and persist results. |
630,969 | 23.03.2021 12:03:14 | -3,600 | 62a95c4b942afe4f704a2f93f78940be79a3ff77 | lnchannel: add pseudo-state force_close_detected for GUI | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnchannel.py",
"new_path": "electrum/lnchannel.py",
"diff": "@@ -301,14 +301,10 @@ class AbstractChannel(Logger, ABC):\nif conf > 0:\nself.set_state(ChannelState.CLOSED)\nelse:\n- if not self.is_backup():\n# we must not trust the server with unconfirm... | Python | MIT License | spesmilo/electrum | lnchannel: add pseudo-state force_close_detected for GUI |
630,969 | 23.03.2021 14:06:28 | -3,600 | a67fcdbc8a29548c43e883b646c003b83376c60d | channels_list: use icon to tell apart channels from backups | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/channels_list.py",
"new_path": "electrum/gui/qt/channels_list.py",
"diff": "@@ -21,6 +21,7 @@ from electrum.gui import messages\nfrom .util import (MyTreeView, WindowModalDialog, Buttons, OkButton, CancelButton,\nEnterButton, WaitingDialog, MON... | Python | MIT License | spesmilo/electrum | channels_list: use icon to tell apart channels from backups |
630,969 | 23.03.2021 14:26:54 | -3,600 | ec0138010558271af839348e1c4cfcab95912ae6 | kivy: channels list improvements | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py",
"new_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py",
"diff": "@@ -130,7 +130,7 @@ Builder.load_string(r'''\nshort_channel_id: '<channelId not set>'\nstatus: ''\nis_backup: False\n- balances: '... | Python | MIT License | spesmilo/electrum | kivy: channels list improvements |
630,969 | 22.03.2021 19:28:24 | -3,600 | a5fea043d18880e323a5a17fb48aa2ce0251e64a | Allow user to remove onchain backups. | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py",
"new_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py",
"diff": "@@ -225,7 +225,7 @@ Builder.load_string(r'''\nid: popuproot\ndata: []\nis_closed: False\n- is_redeemed: False\n+ can_be_deleted: F... | Python | MIT License | spesmilo/electrum | Allow user to remove onchain backups. |
630,870 | 23.03.2021 17:17:43 | -3,600 | 50b165fc3bd4fe357db9dfb5e572ad72eb0beca6 | tests: rename TestSuccess(Exception) to SuccessfulTest
The test framework did not like the "Test" prefix.
```
electrum/tests/test_lnpeer.py:305
/home/travis/build/spesmilo/electrum/electrum/tests/test_lnpeer.py:305: PytestCollectionWarning: cannot collect test class 'TestSuccess' because it has a __init__ constructor (... | [
{
"change_type": "MODIFY",
"old_path": "electrum/tests/test_lnpeer.py",
"new_path": "electrum/tests/test_lnpeer.py",
"diff": "@@ -302,7 +302,7 @@ class SquareGraph(NamedTuple):\nclass PaymentDone(Exception): pass\n-class TestSuccess(Exception): pass\n+class SuccessfulTest(Exception): pass\nclass Tes... | Python | MIT License | spesmilo/electrum | tests: rename TestSuccess(Exception) to SuccessfulTest
The test framework did not like the "Test" prefix.
```
electrum/tests/test_lnpeer.py:305
/home/travis/build/spesmilo/electrum/electrum/tests/test_lnpeer.py:305: PytestCollectionWarning: cannot collect test class 'TestSuccess' because it has a __init__ construc... |
630,870 | 23.03.2021 17:30:40 | -3,600 | 2c047c72e14bcabb1491f7fb04c5c5256c1b45e2 | (trivial) just add some TODOs | [
{
"change_type": "MODIFY",
"old_path": "electrum/channel_db.py",
"new_path": "electrum/channel_db.py",
"diff": "@@ -737,7 +737,8 @@ class ChannelDB(SqlDB):\nself._channels_for_node[channel_info.node1_id].add(channel_info.short_channel_id)\nself._channels_for_node[channel_info.node2_id].add(channel_i... | Python | MIT License | spesmilo/electrum | (trivial) just add some TODOs |
630,969 | 23.03.2021 17:36:27 | -3,600 | cd6a468fb9e1a80ad9804d82e68d54cc32afc0b3 | Android: unify password as soon as we know it is possible | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/main_window.py",
"new_path": "electrum/gui/kivy/main_window.py",
"diff": "@@ -12,7 +12,7 @@ from typing import TYPE_CHECKING, Optional, Union, Callable, Sequence\nfrom electrum.storage import WalletStorage, StorageReadWriteError\nfrom electru... | Python | MIT License | spesmilo/electrum | Android: unify password as soon as we know it is possible |
630,969 | 23.03.2021 18:07:14 | -3,600 | 9583887c1ffbd140aa49b7591e582c993ee6623e | qt: change backup icon, add tooltip | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/channels_list.py",
"new_path": "electrum/gui/qt/channels_list.py",
"diff": "@@ -297,8 +297,10 @@ class ChannelsList(MyTreeView):\nitems[self.Columns.LOCAL_BALANCE].setFont(QFont(MONOSPACE_FONT))\nitems[self.Columns.REMOTE_BALANCE].setFont(QFont... | Python | MIT License | spesmilo/electrum | qt: change backup icon, add tooltip |
630,870 | 23.03.2021 21:34:04 | -3,600 | db37938963c1b6a430e9c88d1a189f26a53e9fab | qt channels list: add "features" column with icons (e.g. trampoline) | [
{
"change_type": "ADD",
"old_path": "electrum/gui/icons/kangaroo.png",
"new_path": "electrum/gui/icons/kangaroo.png",
"diff": "Binary files /dev/null and b/electrum/gui/icons/kangaroo.png differ\n"
},
{
"change_type": "ADD",
"old_path": "electrum/gui/icons/nocloud.png",
"new_path": "... | Python | MIT License | spesmilo/electrum | qt channels list: add "features" column with icons (e.g. trampoline) |
630,969 | 24.03.2021 06:11:53 | -3,600 | ca6cfbc6b0d85894509ea2bdc3839fc867fcde93 | channels list: group icons to save space | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/channels_list.py",
"new_path": "electrum/gui/qt/channels_list.py",
"diff": "@@ -35,9 +35,9 @@ class ChannelsList(MyTreeView):\ngossip_db_loaded = QtCore.pyqtSignal()\nclass Columns(IntEnum):\n- SHORT_CHANID = 0\n- NODE_ALIAS = 1\n- FEATURES = 2... | Python | MIT License | spesmilo/electrum | channels list: group icons to save space |
630,969 | 24.03.2021 06:25:35 | -3,600 | 2b3c64a9d7854f2d5a9a921482c1e6d037c63cb0 | qt: use the same 'nocloud' icon in wallet information | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/main_window.py",
"new_path": "electrum/gui/qt/main_window.py",
"diff": "@@ -2405,7 +2405,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\ngrid.addWidget(QLabel(_('Enabled')), 5, 1)\nelse:\nlabel = IconLabel(text='Enabled, non-r... | Python | MIT License | spesmilo/electrum | qt: use the same 'nocloud' icon in wallet information |
630,969 | 24.03.2021 06:48:17 | -3,600 | f2aa52e5aa213ae74d9aff18c1758ca6ad6d030e | minor: fix channel backup icon | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/channels_list.py",
"new_path": "electrum/gui/qt/channels_list.py",
"diff": "@@ -539,8 +539,6 @@ class ChannelFeatureIcons:\n@classmethod\ndef from_channel(cls, chan: AbstractChannel) -> 'ChannelFeatureIcons':\n- if not isinstance(chan, Channel)... | Python | MIT License | spesmilo/electrum | minor: fix channel backup icon |
630,969 | 23.03.2021 17:25:27 | -3,600 | 18d7db12da1abfea386153851e02d413241d9e2b | Change warning shown on first channel creation
Qt: if created channel is not recoverable, show channel backup after creation | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/main_window.py",
"new_path": "electrum/gui/kivy/main_window.py",
"diff": "@@ -24,6 +24,8 @@ from electrum import blockchain\nfrom electrum.network import Network, TxBroadcastError, BestEffortRequestFailed\nfrom electrum.interface import PREFE... | Python | MIT License | spesmilo/electrum | Change warning shown on first channel creation
Qt: if created channel is not recoverable, show channel backup after creation |
630,969 | 24.03.2021 10:33:56 | -3,600 | a95bdbb331ab86af5734d19a13b3071732c8bff0 | kivy: count open channels | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py",
"new_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py",
"diff": "@@ -633,7 +633,8 @@ class LightningChannelsDialog(Factory.Popup):\nself.can_send = 'n/a'\nself.can_receive = 'n/a'\nreturn\n- self... | Python | MIT License | spesmilo/electrum | kivy: count open channels |
630,969 | 24.03.2021 10:48:01 | -3,600 | ed6eea9161e3600e33a4c173d252475f3b108d6c | kivy: make sure there is only one resume dialog | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/main_window.py",
"new_path": "electrum/gui/kivy/main_window.py",
"diff": "@@ -382,6 +382,7 @@ class ElectrumWindow(App, Logger):\nself.asyncio_loop = asyncio.get_event_loop()\nself.password = None\nself._use_single_password = False\n+ self.re... | Python | MIT License | spesmilo/electrum | kivy: make sure there is only one resume dialog |
630,969 | 24.03.2021 11:13:24 | -3,600 | 130842ecd40ceb14d61fa192dffaba8d5e7fec3e | Add 'has_onchain_backup' to channel storage, to fix the displayed icon.
Note that this will not fix the value for already existing channels
that have been created with onchain backup; one would need a wallet_db
upgrade in order to fix them (probably not worth the effort). | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/uix/dialogs/lightning_open_channel.py",
"new_path": "electrum/gui/kivy/uix/dialogs/lightning_open_channel.py",
"diff": "@@ -211,7 +211,7 @@ class LightningOpenChannelDialog(Factory.Popup, Logger):\nself.app.show_error(_('Problem opening chann... | Python | MIT License | spesmilo/electrum | Add 'has_onchain_backup' to channel storage, to fix the displayed icon.
Note that this will not fix the value for already existing channels
that have been created with onchain backup; one would need a wallet_db
upgrade in order to fix them (probably not worth the effort). |
630,969 | 24.03.2021 13:34:51 | -3,600 | 4b0f43930110afc36f4258c569135bc91071391b | (minor) follow-up | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/main_window.py",
"new_path": "electrum/gui/kivy/main_window.py",
"diff": "@@ -1007,12 +1007,12 @@ class ElectrumWindow(App, Logger):\nreturn\nnow = time.time()\nif self.wallet and self.has_pin_code() and now - self.pause_time > 5*60:\n- def o... | Python | MIT License | spesmilo/electrum | (minor) follow-up ed6eea9161e3600e33a4c173d252475f3b108d6c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.