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
26.05.2022 09:04:46
-7,200
035c8778133cd50ba914b87d0be98e320657db17
channels_list: do not add extra whitespaces when displaying amounts in HTLCs
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/channels_list.py", "new_path": "electrum/gui/qt/channels_list.py", "diff": "@@ -87,7 +87,7 @@ class ChannelsList(MyTreeView):\nbal_other = chan.balance(other)//1000\nbal_minus_htlcs_other = chan.balance_minus_outgoing_htlcs(other)//1000\nif bal...
Python
MIT License
spesmilo/electrum
channels_list: do not add extra whitespaces when displaying amounts in HTLCs
630,969
26.05.2022 12:00:11
-7,200
672326bd12ffe2ca87bd17fe3833c878be93514e
lnwatcher: a bit less verbose
[ { "change_type": "MODIFY", "old_path": "electrum/lnwatcher.py", "new_path": "electrum/lnwatcher.py", "diff": "@@ -253,9 +253,11 @@ class LNWatcher(AddressSynchronizer):\nwitness = o.witness_elements()\nredeem_script = witness[-1]\nif match_script_against_template(redeem_script, WITNESS_TEMPLATE_OFFE...
Python
MIT License
spesmilo/electrum
lnwatcher: a bit less verbose
630,969
26.05.2022 11:59:29
-7,200
f0237e46beca095f4b79f4ae6a2bf32175e31c48
lnsweep: do not redeem offered HTLCs unless payment was received in full
[ { "change_type": "MODIFY", "old_path": "electrum/lnsweep.py", "new_path": "electrum/lnsweep.py", "diff": "@@ -7,6 +7,7 @@ from enum import Enum, auto\nfrom .util import bfh, bh2u\nfrom .bitcoin import redeem_script_to_address, dust_threshold, construct_witness\n+from .invoices import PR_PAID\nfrom ....
Python
MIT License
spesmilo/electrum
lnsweep: do not redeem offered HTLCs unless payment was received in full
630,969
26.05.2022 14:49:22
-7,200
30a98578c867cd67a67f63d220caa9f4cfefe211
Refactor: move calls to lnworker methods out of the tx creation functions (follow-up f0237e46beca095f4b79f4ae6a2bf32175e31c48)
[ { "change_type": "MODIFY", "old_path": "electrum/lnsweep.py", "new_path": "electrum/lnsweep.py", "diff": "@@ -245,12 +245,11 @@ def create_sweeptxs_for_our_ctx(\n# HTLCs\ndef create_txns_for_htlc(\n- *, htlc: 'UpdateAddHtlc', htlc_direction: Direction,\n- ctx_output_idx: int, htlc_relative_idx: int)...
Python
MIT License
spesmilo/electrum
Refactor: move calls to lnworker methods out of the tx creation functions (follow-up f0237e46beca095f4b79f4ae6a2bf32175e31c48)
630,870
26.05.2022 18:08:15
-7,200
189390fb2d159413c5579fc12d8aa0092f8187da
qt new_channel_dialog: use lnutil.MIN_FUNDING_SAT instead of ad-hoc val
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/new_channel_dialog.py", "new_path": "electrum/gui/qt/new_channel_dialog.py", "diff": "@@ -4,7 +4,7 @@ from PyQt5.QtWidgets import QLabel, QVBoxLayout, QGridLayout, QPushButton, QComb\nfrom electrum.i18n import _\nfrom electrum.transaction impor...
Python
MIT License
spesmilo/electrum
qt new_channel_dialog: use lnutil.MIN_FUNDING_SAT instead of ad-hoc val
630,870
26.05.2022 19:10:29
-7,200
b7a3e07db89c3f1f8c5a10fc91d48675f8185228
bump version to 4.3.0a0
[ { "change_type": "MODIFY", "old_path": "electrum/version.py", "new_path": "electrum/version.py", "diff": "-ELECTRUM_VERSION = '4.2.1' # version of the client package\n-APK_VERSION = '4.2.1.0' # read by buildozer.spec\n+ELECTRUM_VERSION = '4.3.0a0' # version of the client package\n+APK_VERSION = '4.3...
Python
MIT License
spesmilo/electrum
bump version to 4.3.0a0
630,870
26.05.2022 21:41:29
-7,200
58be69afd3cbe9cfcf36a591feb932c5c804212d
commands: add "encrypt_file" arg to "password" command
[ { "change_type": "MODIFY", "old_path": "electrum/commands.py", "new_path": "electrum/commands.py", "diff": "@@ -280,12 +280,17 @@ class Commands:\n}\n@command('wp')\n- async def password(self, password=None, new_password=None, wallet: Abstract_Wallet = None):\n+ async def password(self, password=Non...
Python
MIT License
spesmilo/electrum
commands: add "encrypt_file" arg to "password" command
630,969
27.05.2022 11:07:32
-7,200
7cf495d1e05110d478fe88051286ff197c44600c
Windows build scripts: Read codesign passphrase. Lazy check if unsigned binaries are there.
[ { "change_type": "MODIFY", "old_path": "contrib/build-wine/sign.sh", "new_path": "contrib/build-wine/sign.sh", "diff": "@@ -20,9 +20,14 @@ mkdir -p signed >/dev/null 2>&1\ncd dist\necho \"Found $(ls *.exe | wc -w) files to sign.\"\n+\n+echo -n \"Windows codesign passphrase:\"\n+read -s password\n+\n...
Python
MIT License
spesmilo/electrum
Windows build scripts: Read codesign passphrase. Lazy check if unsigned binaries are there.
630,870
27.05.2022 17:33:35
-7,200
3e290c9d479dbcde65badab8816450e586cf2b51
update release notes for 4.2.2 (from 4.2.x branch)
[ { "change_type": "MODIFY", "old_path": "RELEASE-NOTES", "new_path": "RELEASE-NOTES", "diff": "+# Release 4.2.2 - (May 27, 2022)\n+ * Lightning:\n+ - watching onchain outputs: significant perf. improvements (#7781)\n+ - enforce relative order of some msgs during chan reestablishment,\n+ lack of which...
Python
MIT License
spesmilo/electrum
update release notes for 4.2.2 (from 4.2.x branch)
630,870
27.05.2022 17:48:18
-7,200
ecf4e3db48c0b6ba69f4133801a5fa40e4e04aaa
mac build: compare_dmg script: if binaries mismatch, print the diff
[ { "change_type": "MODIFY", "old_path": "contrib/osx/compare_dmg", "new_path": "contrib/osx/compare_dmg", "diff": "@@ -48,7 +48,9 @@ QUIET=\"1\" \"$CONTRIB_OSX/apply_sigs.sh\" \"$DMG_UNSIGNED_UNPACKED\"/Electrum.app mac\nrm mac_extracted_sigs.tar.gz\nrm -rf \"$DMG_UNSIGNED_UNPACKED\"\n+set -x\ndiff=$...
Python
MIT License
spesmilo/electrum
mac build: compare_dmg script: if binaries mismatch, print the diff
630,870
27.05.2022 17:51:53
-7,200
8e9274bde4be7ec885894a2e3d1bb51e5c951e18
mac build: README: add more details about installing Xcode
[ { "change_type": "MODIFY", "old_path": "contrib/osx/README.md", "new_path": "contrib/osx/README.md", "diff": "@@ -68,20 +68,30 @@ Unfortunately, you need an \"Apple ID\" account.\n(note: the last Xcode that runs on macOS 10.14.6 is Xcode 11.3.1)\n-The recommended versions are:\n+Install full Xcode:\...
Python
MIT License
spesmilo/electrum
mac build: README: add more details about installing Xcode
630,969
28.05.2022 17:52:07
-7,200
00183b541283a11e37845a3113cdd0b515f01fff
Qt: move current_request logic from main_window to requests_list
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -203,7 +203,6 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nself.showing_cert_mismatch_error = False\nself.tl_windows = []\nself.pending_invoice = None...
Python
MIT License
spesmilo/electrum
Qt: move current_request logic from main_window to requests_list
630,870
29.05.2022 03:26:20
-7,200
ae76a0daf52e79bd617a35b29b2cb912f7d7f674
windows binaries: try to prevent users from renaming exe while running closes (this fix AFAICT only works on Windows, and contains some macOS reports as well, however all recent reports are for Windows and overall most reports are for Windows, so let's close it optimistically for now)
[ { "change_type": "MODIFY", "old_path": "run_electrum", "new_path": "run_electrum", "diff": "@@ -56,6 +56,12 @@ if is_git_clone:\nif is_local or is_android:\nsys.path.insert(0, os.path.join(script_dir, 'packages'))\n+if is_pyinstaller:\n+ # Keep an open file handle for the binary that started us. On ...
Python
MIT License
spesmilo/electrum
windows binaries: try to prevent users from renaming exe while running closes https://github.com/spesmilo/electrum/issues/4072 (this fix AFAICT only works on Windows, and #4072 contains some macOS reports as well, however all recent reports are for Windows and overall most reports are for Windows, so let's close it op...
630,969
29.05.2022 11:57:34
-7,200
cd54244956ed4ba9782dfeb18cd137e866136dc8
lnworker: in sugest_channels_for_rebalance, delta depends on the channel Also, safety margin can be reduced.
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -2182,15 +2182,14 @@ class LNWallet(LNWorker):\n\"\"\"\nwith self.lock:\nfunc = self.num_sats_can_send if direction == SENT else self.num_sats_can_receive\n- delta = amount_sat - func()\n- ...
Python
MIT License
spesmilo/electrum
lnworker: in sugest_channels_for_rebalance, delta depends on the channel Also, safety margin can be reduced.
630,969
29.05.2022 12:37:33
-7,200
ce96d1f97b5e27c95c9c59e6f406efa2a55f799c
lnworker: create_routes_for_payment: try random order without this, we keep retrying with the same trampoline when payment fails
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -1532,6 +1532,8 @@ class LNWallet(LNWorker):\nmy_active_channels = [\nchan for chan in self.channels.values() if\nchan.is_active() and not chan.is_frozen_for_sending()]\n+ # try random orde...
Python
MIT License
spesmilo/electrum
lnworker: create_routes_for_payment: try random order without this, we keep retrying with the same trampoline when payment fails
630,969
29.05.2022 13:54:38
-7,200
38b155c631f16e9a8d972ff25570b0eeeb9ae33f
Qt receive widgets: factorize code
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -138,6 +138,36 @@ class StatusBarButton(QToolButton):\nif e.key() in [Qt.Key_Return, Qt.Key_Enter]:\nself.func()\n+class ReceiveTabWidget(QWidget):\n+ min_size = QSize(2...
Python
MIT License
spesmilo/electrum
Qt receive widgets: factorize code
630,969
29.05.2022 18:39:18
-7,200
87509366797fffff7d1d9c40162b25fad16ef6bd
Rebalance dialog: - move dialog code to own submodule and class - disable ok button if amount is out of bounds - add max button - add Rebalance button to channels tab
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/channels_list.py", "new_path": "electrum/gui/qt/channels_list.py", "diff": "@@ -71,6 +71,7 @@ class ChannelsList(MyTreeView):\nself.network = self.parent.network\nself.wallet = self.parent.wallet\nself.setSortingEnabled(True)\n+ self.selectionM...
Python
MIT License
spesmilo/electrum
Rebalance dialog: - move dialog code to own submodule and class - disable ok button if amount is out of bounds - add max button - add Rebalance button to channels tab
630,969
29.05.2022 19:00:52
-7,200
c1c6c01e876762fb5ac4ea4f8d5c6f2055af1bee
rebalance dialog: fix button disabling
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/rebalance_dialog.py", "new_path": "electrum/gui/qt/rebalance_dialog.py", "diff": "@@ -57,7 +57,7 @@ class RebalanceDialog(WindowModalDialog):\nself.label1.setText(self.chan1.short_id_for_GUI())\nself.label2.setText(self.chan2.short_id_for_GUI()...
Python
MIT License
spesmilo/electrum
rebalance dialog: fix button disabling
630,969
30.05.2022 09:30:18
-7,200
cc1b4a5c903ac82d20d8107f45d829d8d1270a80
lnpeer: fix ping behavior. - Do not send ping if messages have been received recently. - Do not send more than one ping. - Await pong before sending commitment_signed (per - Lower ping time to 30s
[ { "change_type": "MODIFY", "old_path": "electrum/lnpeer.py", "new_path": "electrum/lnpeer.py", "diff": "@@ -95,7 +95,8 @@ class Peer(Logger):\nself.their_features = LnFeatures(0) # type: LnFeatures\nself.node_ids = [self.pubkey, privkey_to_pubkey(self.privkey)]\nassert self.node_ids[0] != self.node_...
Python
MIT License
spesmilo/electrum
lnpeer: fix ping behavior. - Do not send ping if messages have been received recently. - Do not send more than one ping. - Await pong before sending commitment_signed (per BOLT-2) - Lower ping time to 30s
630,870
30.05.2022 16:46:31
-7,200
06687e06d8f4b699c2a1e6580300bfc5f258d186
lnpeer: forwarding: better handle if next_peer is offline
[ { "change_type": "MODIFY", "old_path": "electrum/lnpeer.py", "new_path": "electrum/lnpeer.py", "diff": "@@ -1607,14 +1607,17 @@ class Peer(Logger):\nif htlc.amount_msat - next_amount_msat_htlc < forwarding_fees:\ndata = next_amount_msat_htlc.to_bytes(8, byteorder=\"big\") + outgoing_chan_upd_message...
Python
MIT License
spesmilo/electrum
lnpeer: forwarding: better handle if next_peer is offline
630,870
30.05.2022 21:42:52
-7,200
32f88ae419a863d97e8904c3ea0ad16bb265d991
util: rm a magic number
[ { "change_type": "MODIFY", "old_path": "electrum/util.py", "new_path": "electrum/util.py", "diff": "@@ -1069,7 +1069,8 @@ def maybe_extract_bolt11_invoice(data: str) -> Optional[str]:\ndata = data.strip() # whitespaces\ndata = data.lower()\nif data.startswith(LIGHTNING_URI_SCHEME + ':ln'):\n- data =...
Python
MIT License
spesmilo/electrum
util: rm a magic number
630,870
31.05.2022 16:37:27
-7,200
abe3955d916521f37e06b96d8996b270413e175f
qt.util.ButtonsWidget: add custom setText arg to methods I am planning to use this in qt.PayToEdit.
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/util.py", "new_path": "electrum/gui/qt/util.py", "diff": "@@ -858,19 +858,24 @@ class ButtonsWidget(QWidget):\nreturn button\ndef addCopyButton(self, app: QApplication):\n- self.app = app\n- self.addButton(\"copy.png\", self.on_copy, _(\"Copy t...
Python
MIT License
spesmilo/electrum
qt.util.ButtonsWidget: add custom setText arg to methods I am planning to use this in qt.PayToEdit.
630,913
01.06.2022 17:01:21
-7,200
798dbca880194902081b97376e8e4a7eb4f78396
qt ButtonsWidget: Don't pass app instance to addCopyButton Doesn't make sense to pass the application when we can just use QApplication.instance() instead. from
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/address_dialog.py", "new_path": "electrum/gui/qt/address_dialog.py", "diff": "@@ -66,7 +66,7 @@ class AddressDialog(WindowModalDialog):\nvbox.addWidget(QLabel(_(\"Address\") + \":\"))\nself.addr_e = ButtonsLineEdit(self.address)\n- self.addr_e....
Python
MIT License
spesmilo/electrum
qt ButtonsWidget: Don't pass app instance to addCopyButton Doesn't make sense to pass the application when we can just use QApplication.instance() instead. from https://github.com/Electron-Cash/Electron-Cash/commit/54ccf640c5f9f1eb3e38a644f8da3bd7ed1f93dd
630,913
01.06.2022 17:27:32
-7,200
2d1727520fb9a4a768adb4f261c29b15c12a3fa9
qt ButtonsWidget: refactor into OverlayControlMixin; fix alignmt/hover This ports the following:
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/paytoedit.py", "new_path": "electrum/gui/qt/paytoedit.py", "diff": "@@ -85,8 +85,7 @@ class PayToEdit(CompletionTextEdit, ScanQRTextEdit, Logger):\ndef setFrozen(self, b):\nself.setReadOnly(b)\nself.setStyleSheet(frozen_style if b else normal_s...
Python
MIT License
spesmilo/electrum
qt ButtonsWidget: refactor into OverlayControlMixin; fix alignmt/hover This ports the following: https://github.com/Electron-Cash/Electron-Cash/commit/782f213bbd945bb4e74dc73116afdaac5ddc9d84 https://github.com/Electron-Cash/Electron-Cash/commit/2e5af27a7ce65c3da6632b4787c70ff8359a8d2c https://github.com/Electron-Cash...
630,870
01.06.2022 18:52:11
-7,200
9d125118da109bf187e2ca6a4b239b35b86b38b9
qrreader.get_qr_reader: raise instead of returning None move MissingQrDetectionLib to core lib
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/qrreader/__init__.py", "new_path": "electrum/gui/qt/qrreader/__init__.py", "diff": "@@ -29,6 +29,7 @@ from PyQt5.QtWidgets import QMessageBox, QWidget\nfrom electrum.i18n import _\nfrom electrum.util import UserFacingException\nfrom electrum.lo...
Python
MIT License
spesmilo/electrum
qrreader.get_qr_reader: raise instead of returning None move MissingQrDetectionLib to core lib
630,870
02.06.2022 15:25:07
-7,200
fbc750bab1cda7e790f1e7319a68883d8df8a385
qt.util: HelpLabel, HelpButton, InfoButton: factor out HelpMixin based on
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/util.py", "new_path": "electrum/gui/qt/util.py", "diff": "@@ -105,19 +105,36 @@ class WWLabel(QLabel):\nself.setTextInteractionFlags(Qt.TextSelectableByMouse)\n-class HelpLabel(QLabel):\n+class HelpMixin:\n+ def __init__(self, help_text: str, *...
Python
MIT License
spesmilo/electrum
qt.util: HelpLabel, HelpButton, InfoButton: factor out HelpMixin based on https://github.com/Electron-Cash/Electron-Cash/commit/3ca8854007556363c6ef201aac5fe275294abf7e Co-authored-by: Calin Culianu <calin.culianu@gmail.com>
630,969
03.06.2022 16:36:02
-7,200
a0e791a6e5fd6b225b7e2678c3e90d025e490b92
If util.trigger_callback() is called from the asyncio loop, run the callback synchronously.
[ { "change_type": "MODIFY", "old_path": "electrum/util.py", "new_path": "electrum/util.py", "diff": "@@ -1619,6 +1619,10 @@ class CallbackManager:\n# FIXME: if callback throws, we will lose the traceback\nif asyncio.iscoroutinefunction(callback):\nasyncio.run_coroutine_threadsafe(callback(event, *arg...
Python
MIT License
spesmilo/electrum
If util.trigger_callback() is called from the asyncio loop, run the callback synchronously.
630,870
03.06.2022 15:11:48
-7,200
745e6971889b233bfed42159e4b358fa6d33a725
hww: move trigger_pairings to DeviceMgr
[ { "change_type": "MODIFY", "old_path": "electrum/plugin.py", "new_path": "electrum/plugin.py", "diff": "@@ -43,7 +43,7 @@ from .logging import get_logger, Logger\nif TYPE_CHECKING:\nfrom .plugins.hw_wallet import HW_PluginBase, HardwareClientBase, HardwareHandlerBase\n- from .keystore import Hardwar...
Python
MIT License
spesmilo/electrum
hww: move trigger_pairings to DeviceMgr
630,870
03.06.2022 15:29:25
-7,200
b5d3f1458a7403c3cd75c2689f3134cfe50f42a3
hww: impl get_client in Hardware_KeyStore instead of subclasses
[ { "change_type": "MODIFY", "old_path": "electrum/keystore.py", "new_path": "electrum/keystore.py", "diff": "@@ -50,6 +50,7 @@ if TYPE_CHECKING:\nfrom .gui.qt.util import TaskThread\nfrom .plugins.hw_wallet import HW_PluginBase, HardwareClientBase, HardwareHandlerBase\nfrom .wallet_db import WalletDB...
Python
MIT License
spesmilo/electrum
hww: impl get_client in Hardware_KeyStore instead of subclasses
630,870
03.06.2022 16:18:16
-7,200
998cd0d356fcd9ed1bd835c3a1abe81737a8b73b
hww: make DeviceMgr.select_device dlg msg more explicit (add details) related
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -2153,6 +2153,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\ndef query_choice(self, msg, choices):\n# Needed by QtHandler for hardware wallets\ndialog...
Python
MIT License
spesmilo/electrum
hww: make DeviceMgr.select_device dlg msg more explicit (add details) related https://github.com/spesmilo/electrum/issues/4199#issuecomment-1145063552
630,870
03.06.2022 17:07:36
-7,200
574243b897f345208a3b9197c6b0b1e229d61271
hww ledger: call scan_devices fewer times
[ { "change_type": "MODIFY", "old_path": "electrum/plugins/ledger/ledger.py", "new_path": "electrum/plugins/ledger/ledger.py", "diff": "@@ -254,9 +254,10 @@ class Ledger_KeyStore(Hardware_KeyStore):\nobj['cfg'] = self.cfg\nreturn obj\n- def get_client_dongle_object(self) -> 'btchip':\n- client_electru...
Python
MIT License
spesmilo/electrum
hww ledger: call scan_devices fewer times
630,870
03.06.2022 18:02:58
-7,200
780408285cc1e8b871bead0c0691b1ae2f921e67
qt "Wallet Info" dialog: show bip32 root fingerprint and also show it in DeviceMgr.select_device follow-up
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -2817,20 +2817,27 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nmpk_text.setMaximumHeight(150)\nmpk_text.addCopyButton()\nrun_hook('show_xpub_button', ...
Python
MIT License
spesmilo/electrum
qt "Wallet Info" dialog: show bip32 root fingerprint and also show it in DeviceMgr.select_device follow-up https://github.com/spesmilo/electrum/commit/998cd0d356fcd9ed1bd835c3a1abe81737a8b73b
630,870
03.06.2022 19:05:48
-7,200
450476dcb60f02935ec6960021d12c843dbf73dd
qt seed_dialog: warn when trying to restore standard seed as 2FA wallet closes
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/seed_dialog.py", "new_path": "electrum/gui/qt/seed_dialog.py", "diff": "@@ -281,6 +281,15 @@ class SeedLayout(QVBoxLayout):\nelse:\nt = seed_type(s)\nlabel = _('Seed Type') + ': ' + t if t else ''\n+ if t and not b: # electrum seed, but does no...
Python
MIT License
spesmilo/electrum
qt seed_dialog: warn when trying to restore standard seed as 2FA wallet closes https://github.com/spesmilo/electrum/issues/7837
630,969
04.06.2022 11:17:21
-7,200
c06a9ccb9cd1557cd0ef6698aa7d44b097c8232f
num_sats_can_receive: bucket channels that we have with the same node
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -2166,9 +2166,12 @@ class LNWallet(LNWorker):\nelse:\ndelta_msat = 0\nreturn chan.available_to_spend(REMOTE) + delta_msat\n+ # bucket channels that we have with the same node\n+ can_recv_di...
Python
MIT License
spesmilo/electrum
num_sats_can_receive: bucket channels that we have with the same node
630,870
07.06.2022 16:24:07
-7,200
82518304b3594f037a2f266231471ea2ae73008c
release notes: mention security fix in 4.2.2
[ { "change_type": "MODIFY", "old_path": "RELEASE-NOTES", "new_path": "RELEASE-NOTES", "diff": "* fix AppImage failing to run on certain systems (#7784)\n* fix \"Automated BIP39 recovery\" not scanning change paths (#7804)\n* bypass network proxy for localhost electrum server (#3126)\n+ * security fix...
Python
MIT License
spesmilo/electrum
release notes: mention security fix in 4.2.2
630,870
07.06.2022 19:53:27
-7,200
90dbac5a65a8b7804a5b02a6cf598588a06a71a3
lnpeer: make "trigger_force_close" work with eclair 0.7+ remotes
[ { "change_type": "MODIFY", "old_path": "electrum/lnpeer.py", "new_path": "electrum/lnpeer.py", "diff": "@@ -1051,6 +1051,8 @@ class Peer(Logger):\nasync def trigger_force_close(self, channel_id: bytes):\nawait self.initialized\n+ # First, we intentionally send a \"channel_reestablish\" msg with an o...
Python
MIT License
spesmilo/electrum
lnpeer: make "trigger_force_close" work with eclair 0.7+ remotes
630,870
07.06.2022 19:57:53
-7,200
f7573dbce60fff26f57ccde2c2435f9fc68e9ce6
qt main_window: (trivial) rm dead code, and fix copy-paste error
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1390,12 +1390,6 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nself.request_list.delete_item(key)\nself.clear_receive_tab()\n- def delete_lightning_pay...
Python
MIT License
spesmilo/electrum
qt main_window: (trivial) rm dead code, and fix copy-paste error
630,870
07.06.2022 22:37:25
-7,200
8674fd96d517f8dd3f46b3f0ddb063b38487ed11
lnworker: also check expiring_htlcs in ChannelState.SHUTDOWN otherwise the remote could intentionally send "shutdown" during an attack
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -971,7 +971,8 @@ class LNWallet(LNWorker):\nutil.trigger_callback('channel', self.wallet, chan)\nreturn\n- if chan.get_state() == ChannelState.OPEN and chan.should_be_closed_due_to_expiring...
Python
MIT License
spesmilo/electrum
lnworker: also check expiring_htlcs in ChannelState.SHUTDOWN otherwise the remote could intentionally send "shutdown" during an attack
630,870
09.06.2022 17:23:28
-7,200
0d854555c836e230069c5def96cd8951555fc5b7
change top-level README from .rst to .md markdown is just simpler. less powerful but more than sufficient here all the other doc files in this repo are markdown
[ { "change_type": "ADD", "old_path": null, "new_path": "README.md", "diff": "+# Electrum - Lightweight Bitcoin client\n+\n+```\n+Licence: MIT Licence\n+Author: Thomas Voegtlin\n+Language: Python (>= 3.8)\n+Homepage: https://electrum.org/\n+```\n+\n+[![Build Status](https://api.cirrus-ci.com/github/sp...
Python
MIT License
spesmilo/electrum
change top-level README from .rst to .md - markdown is just simpler. less powerful but more than sufficient here - all the other doc files in this repo are markdown
630,870
09.06.2022 17:40:57
-7,200
941db4214c74d51c193c942e9e7ff633a5ff3a36
README: add Windows- & macOS-specific "how to run from source" readmes note: unclear where to put these files... `contrib/build-wine/` and `contrib/osx/` contain binary-building-related files. maybe we could have a `doc/` folder if the need for more similar files arise. atm there are these two, plus maybe `contrib/dock...
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -82,9 +82,12 @@ so make sure that is on your :code:`PATH` variable.\n### Development version (git clone)\n+_(For OS-specific instructions, see [here for Windows](contrib/build-wine/README_windows.md),\n+and [for...
Python
MIT License
spesmilo/electrum
README: add Windows- & macOS-specific "how to run from source" readmes note: unclear where to put these files... `contrib/build-wine/` and `contrib/osx/` contain binary-building-related files. maybe we could have a `doc/` folder if the need for more similar files arise. atm there are these two, plus maybe `contrib/doc...
630,870
09.06.2022 19:24:55
-7,200
2841cbeade52550e52be40009c97d270ba44469a
addr_sync: also trigger address_history_changed when a tx is removed
[ { "change_type": "MODIFY", "old_path": "electrum/address_synchronizer.py", "new_path": "electrum/address_synchronizer.py", "diff": "@@ -559,6 +559,7 @@ class AddressSynchronizer(Logger):\npass\nelse:\nself._history_local[addr] = cur_hist\n+ self._mark_address_history_changed(addr)\ndef _mark_address...
Python
MIT License
spesmilo/electrum
addr_sync: also trigger address_history_changed when a tx is removed
630,870
09.06.2022 19:46:42
-7,200
b6de15b95d289f3be94dc052e4ffa4b521e7c3a4
util.profiler: make log line easier to understand
[ { "change_type": "MODIFY", "old_path": "electrum/util.py", "new_path": "electrum/util.py", "diff": "@@ -434,7 +434,7 @@ def profiler(func):\nt0 = time.time()\no = func(*args, **kw_args)\nt = time.time() - t0\n- _profiler_logger.debug(f\"{name} {t:,.4f}\")\n+ _profiler_logger.debug(f\"{name} {t:,.4f}...
Python
MIT License
spesmilo/electrum
util.profiler: make log line easier to understand
630,969
03.06.2022 12:52:42
-7,200
c47057b48410dc8618fb1df4bba67cf54ced22d5
Move get_wallet_delta to wallet class, because it requires wallet.is_mine Do not call it in AddressSynchronizer.get_tx_fee
[ { "change_type": "MODIFY", "old_path": "electrum/address_synchronizer.py", "new_path": "electrum/address_synchronizer.py", "diff": "@@ -57,14 +57,6 @@ class HistoryItem(NamedTuple):\nbalance: int\n-class TxWalletDelta(NamedTuple):\n- is_relevant: bool # \"related to wallet?\"\n- is_any_input_ismine:...
Python
MIT License
spesmilo/electrum
Move get_wallet_delta to wallet class, because it requires wallet.is_mine Do not call it in AddressSynchronizer.get_tx_fee
630,969
04.06.2022 16:48:19
-7,200
0ca3d66d15aac6900575c54a7fa26e19b8bd99fb
persist_lnwatcher: split try_redeem into two methods: - maybe_add_redeem_tx - maybe_broadcast Before this commit, local tx that are now persisted are bot broadcast
[ { "change_type": "MODIFY", "old_path": "electrum/address_synchronizer.py", "new_path": "electrum/address_synchronizer.py", "diff": "@@ -639,12 +639,9 @@ class AddressSynchronizer(Logger):\nreturn cached_local_height\nreturn self.network.get_local_height() if self.network else self.db.get('stored_hei...
Python
MIT License
spesmilo/electrum
persist_lnwatcher: split try_redeem into two methods: - maybe_add_redeem_tx - maybe_broadcast Before this commit, local tx that are now persisted are bot broadcast
630,969
07.06.2022 16:52:09
-7,200
6e7ffa29ae3938172c2bfd20fbc5ad16172b5b05
Move address_is_old to AddressSynchronizer. Cache local_height at that level instead of wallet.synchronize
[ { "change_type": "MODIFY", "old_path": "electrum/address_synchronizer.py", "new_path": "electrum/address_synchronizer.py", "diff": "@@ -65,8 +65,9 @@ class AddressSynchronizer(Logger):\nsynchronizer: Optional['Synchronizer']\nverifier: Optional['SPV']\n- def __init__(self, db: 'WalletDB'):\n+ def __...
Python
MIT License
spesmilo/electrum
Move address_is_old to AddressSynchronizer. Cache local_height at that level instead of wallet.synchronize
630,969
10.06.2022 10:19:47
-7,200
d81610b2e110c14250bec1ede47fedbe85152ce3
wallet: filter non-wallet transactions before rebroadcasting event
[ { "change_type": "MODIFY", "old_path": "electrum/wallet.py", "new_path": "electrum/wallet.py", "diff": "@@ -431,6 +431,10 @@ class Abstract_Wallet(ABC):\ntx = self.db.get_transaction(tx_hash)\nif not tx:\nraise Exception(tx_hash)\n+ is_mine = any([self.is_mine(out.address) for out in tx.outputs()])\...
Python
MIT License
spesmilo/electrum
wallet: filter non-wallet transactions before rebroadcasting event
630,870
10.06.2022 14:34:20
-7,200
ff1c8b912e5bf212d20ed1040657156ff5a9f38b
follow-up README rename, again follow-up
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -76,8 +76,8 @@ $ python3 -m pip install --user .\nThis will download and install the Python dependencies used by\nElectrum instead of using the 'packages' directory.\n-It will also place an executable named :cod...
Python
MIT License
spesmilo/electrum
follow-up README rename, again follow-up 0d854555c836e230069c5def96cd8951555fc5b7
630,870
10.06.2022 15:10:52
-7,200
ee85f98fd6e1e1d889e8cb401f40515c0ca990f1
lnchannel: rm "is_closing" method - has confusing semantics (and there is intentional behaviour changes here, due to erroneous use of "is_closing")
[ { "change_type": "MODIFY", "old_path": "electrum/lnchannel.py", "new_path": "electrum/lnchannel.py", "diff": "@@ -196,9 +196,6 @@ class AbstractChannel(Logger, ABC):\ndef is_open(self):\nreturn self.get_state() == ChannelState.OPEN\n- def is_closing(self):\n- return ChannelState.SHUTDOWN <= self.get...
Python
MIT License
spesmilo/electrum
lnchannel: rm "is_closing" method - has confusing semantics (and there is intentional behaviour changes here, due to erroneous use of "is_closing")
630,870
10.06.2022 17:13:11
-7,200
1613736b45d03e8a8d23a503012df730e22db6e4
lnpeer: rename trigger_force_close to request_force_close for more consistent naming with rest of the code
[ { "change_type": "MODIFY", "old_path": "electrum/lnpeer.py", "new_path": "electrum/lnpeer.py", "diff": "@@ -1049,7 +1049,8 @@ class Peer(Logger):\nchan.set_state(ChannelState.OPENING)\nself.lnworker.add_new_channel(chan)\n- async def trigger_force_close(self, channel_id: bytes):\n+ async def request...
Python
MIT License
spesmilo/electrum
lnpeer: rename trigger_force_close to request_force_close for more consistent naming with rest of the code
630,870
12.06.2022 00:54:35
-7,200
ffe36e2f56f8b0b4775973ab85c8614ef3fb6f51
make "-v" (logging to stderr) work with commands When running a command, file logging is disabled as every command-invocation would create a new logfile. However if the user explicitly sets "-v" on the commandline, there's no reason why that shouldn't work.
[ { "change_type": "MODIFY", "old_path": "electrum/logging.py", "new_path": "electrum/logging.py", "diff": "@@ -9,10 +9,13 @@ import sys\nimport pathlib\nimport os\nimport platform\n-from typing import Optional\n+from typing import Optional, TYPE_CHECKING\nimport copy\nimport subprocess\n+if TYPE_CHEC...
Python
MIT License
spesmilo/electrum
make "-v" (logging to stderr) work with commands When running a command, file logging is disabled as every command-invocation would create a new logfile. However if the user explicitly sets "-v" on the commandline, there's no reason why that shouldn't work.
630,969
10.06.2022 16:00:30
-7,200
7d5125c93584d4ff8d908e0783358a4190516397
lnwatcher: fix tx replacement and notifications - revert the logic of do_breach_remedy to what it was before but now calling self.maybe_redeem unconditionally. - replace mempool transactions only if the fee increases - do not notify the GUI if a local tx is replaced - delete labels when replacing
[ { "change_type": "MODIFY", "old_path": "electrum/address_synchronizer.py", "new_path": "electrum/address_synchronizer.py", "diff": "@@ -240,7 +240,7 @@ class AddressSynchronizer(Logger):\ndef get_transaction(self, txid: str) -> Transaction:\nreturn self.db.get_transaction(txid)\n- def add_transactio...
Python
MIT License
spesmilo/electrum
lnwatcher: fix tx replacement and notifications - revert the logic of do_breach_remedy to what it was before 0ca3d66d15aac6900575c54a7fa26e19b8bd99fb, but now calling self.maybe_redeem unconditionally. - replace mempool transactions only if the fee increases - do not notify the GUI if a local tx is replaced -...
630,969
13.06.2022 10:26:07
-7,200
599ad1c0173427c008767f201daffd8b80d780b8
lnworker: get_onchain_history does not need to be online anymore
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -856,10 +856,8 @@ class LNWallet(LNWorker):\nitem = chan.get_funding_height()\nif item is None:\ncontinue\n- if not self.lnwatcher:\n- continue # lnwatcher not available with --offline (its...
Python
MIT License
spesmilo/electrum
lnworker: get_onchain_history does not need to be online anymore
630,969
13.06.2022 10:27:30
-7,200
53c054ece4de01dad0060a4dfbaf2c0a1a0976ae
swaps: set spending_txid as soon as tx is added to wallet This fixes the GUI not displaying the label of the transaction immediately
[ { "change_type": "MODIFY", "old_path": "electrum/submarine_swaps.py", "new_path": "electrum/submarine_swaps.py", "diff": "@@ -231,6 +231,7 @@ class SwapManager(Logger):\nself.sign_tx(tx, swap)\nself.logger.info(f'adding claim tx {tx.txid()}')\nself.wallet.adb.add_transaction(tx)\n+ swap.spending_txi...
Python
MIT License
spesmilo/electrum
swaps: set spending_txid as soon as tx is added to wallet This fixes the GUI not displaying the label of the transaction immediately
630,969
13.06.2022 10:37:25
-7,200
c316d406dbf17b0fdf1c97743a296aba01f67f00
unconfirmed swaps: revert label change (follow-up 599ad1c0173427c008767f201daffd8b80d780b8)
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -910,7 +910,7 @@ class LNWallet(LNWorker):\ndelta = current_height - swap.locktime\ntx_height = self.wallet.adb.get_tx_height(swap.funding_txid)\nif swap.is_reverse and tx_height.height <= ...
Python
MIT License
spesmilo/electrum
unconfirmed swaps: revert label change (follow-up 599ad1c0173427c008767f201daffd8b80d780b8)
630,969
13.06.2022 10:53:43
-7,200
6bef6fab86ce0b85cb446b8d94a860f29f64d150
adb: do not notify GUI about already known transactions
[ { "change_type": "MODIFY", "old_path": "electrum/address_synchronizer.py", "new_path": "electrum/address_synchronizer.py", "diff": "@@ -422,7 +422,7 @@ class AddressSynchronizer(Logger):\ntx = self.db.get_transaction(tx_hash)\nif tx is None:\ncontinue\n- self.add_transaction(tx, allow_unrelated=True...
Python
MIT License
spesmilo/electrum
adb: do not notify GUI about already known transactions
630,969
14.06.2022 12:50:04
-7,200
a3faf85e3cce83f90d5a3af8e0fd48f06ce0cabd
wallet: - add new index: requests_rhash_to_key (fixes - when creating a request, do not save its description in labels. Instead, return it as default value in wallet.get_label_by_rhash lnworker: - rename 'payments' to 'payment_info' - add note to delete_payment_info commands: rename 'rmrequest' to 'delete_request'
[ { "change_type": "MODIFY", "old_path": "electrum/commands.py", "new_path": "electrum/commands.py", "diff": "@@ -980,9 +980,9 @@ class Commands:\nwallet.sign_payment_request(address, alias, alias_addr, password)\n@command('w')\n- async def rmrequest(self, address, wallet: Abstract_Wallet = None):\n+ ...
Python
MIT License
spesmilo/electrum
wallet: - add new index: requests_rhash_to_key (fixes #7845) - when creating a request, do not save its description in labels. Instead, return it as default value in wallet.get_label_by_rhash lnworker: - rename 'payments' to 'payment_info' - add note to delete_payment_info commands: rename 'rmrequest' to 'dele...
630,969
14.06.2022 20:10:20
-7,200
c7418d4dc7d50f97f625de46f143999a56cc4a61
Qt: payment received notification, show label and amount instead of key The key may be a bitcoin address, even for a lightning payment.
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1820,7 +1820,12 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nif req is None:\nreturn\nif status == PR_PAID:\n- self.notify(_('Payment received') + '\...
Python
MIT License
spesmilo/electrum
Qt: payment received notification, show label and amount instead of key The key may be a bitcoin address, even for a lightning payment.
630,969
14.06.2022 20:26:47
-7,200
1915330039c394bf0447a9186d0f63581cc1ee62
Qt receive widgets: do not show request that have expired They may still be retrieved from the menu
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -67,7 +67,7 @@ from electrum.util import (format_time,\nAddTransactionException, BITCOIN_BIP21_URI_SCHEME,\nInvoiceError, parse_max_spend)\nfrom electrum.invoices import...
Python
MIT License
spesmilo/electrum
Qt receive widgets: do not show request that have expired They may still be retrieved from the menu
630,969
15.06.2022 19:13:13
-7,200
cfb6ab6822ba0add179b51f7c9d2389ee4f40e8b
Trampoline: always increase fees, to ensure we do not get stuck in a loop. Also handle TEMPORARY_CHANNEL_FAILURE, which is sometimes returned by Eclair.
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -1274,25 +1274,32 @@ class LNWallet(LNWorker):\nraise PaymentFailure(failure_msg.code_name())\n# trampoline\nif not self.channel_db:\n+ def maybe_raise_trampoline_fee(htlc_log):\n+ global t...
Python
MIT License
spesmilo/electrum
Trampoline: always increase fees, to ensure we do not get stuck in a loop. Also handle TEMPORARY_CHANNEL_FAILURE, which is sometimes returned by Eclair.
630,969
16.06.2022 08:52:30
-7,200
f1289a2a5e99d23a11c120327fb268ebc826432f
fix store addresses_beyond_gap_limit in address_list
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/address_list.py", "new_path": "electrum/gui/qt/address_list.py", "diff": "@@ -163,7 +163,7 @@ class AddressList(MyTreeView):\nself.refresh_headers()\nfx = self.parent.fx\nset_address = None\n- addresses_beyond_gap_limit = self.wallet.get_all_kn...
Python
MIT License
spesmilo/electrum
fix #7851: store addresses_beyond_gap_limit in address_list
630,969
16.06.2022 16:50:25
-7,200
79428756b281df02b128e2450307041a17b49bd5
kivy: in event handlers, check wallet. We might receive events before the wallet is loaded.
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main_window.py", "new_path": "electrum/gui/kivy/main_window.py", "diff": "@@ -267,6 +267,8 @@ class ElectrumWindow(App, Logger):\nself._trigger_update_history()\ndef on_request_status(self, event, wallet, key, status):\n+ if wallet != self.wa...
Python
MIT License
spesmilo/electrum
kivy: in event handlers, check wallet. We might receive events before the wallet is loaded.
630,969
16.06.2022 20:51:50
-7,200
e1d34300e59c6b35c7a97a776603ed7085b9e413
lnworker: get_payment_value - the detection of self-payments was using the length of the htlc list, incorrectly categorizing all MPPs. - the fee for self-payments was not correctly computed.
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -8,6 +8,7 @@ from decimal import Decimal\nimport random\nimport time\nimport operator\n+from enum import IntFlag\nfrom typing import (Optional, Sequence, Tuple, List, Set, Dict, TYPE_CHECKI...
Python
MIT License
spesmilo/electrum
lnworker: get_payment_value - the detection of self-payments was using the length of the htlc list, incorrectly categorizing all MPPs. - the fee for self-payments was not correctly computed.
630,969
17.06.2022 10:04:28
-7,200
55f46fb61e71bc002a2cd410ff3e9a625d882cb6
adb fixes for text and stdio GUIs
[ { "change_type": "MODIFY", "old_path": "electrum/gui/stdio.py", "new_path": "electrum/gui/stdio.py", "diff": "@@ -97,8 +97,8 @@ class ElectrumGui(BaseElectrumGui):\nformat_str = \"%\"+\"%d\"%width[0]+\"s\"+\"%\"+\"%d\"%(width[1]+delta)+\"s\"+\"%\" \\\n+ \"%d\"%(width[2]+delta)+\"s\"+\"%\"+\"%d\"%(wi...
Python
MIT License
spesmilo/electrum
adb fixes for text and stdio GUIs
630,969
17.06.2022 12:59:35
-7,200
034bd42d9c4a67a69a1535c3896dbca33cd25974
text guii: display full history
[ { "change_type": "MODIFY", "old_path": "electrum/gui/text.py", "new_path": "electrum/gui/text.py", "diff": "@@ -125,22 +125,29 @@ class ElectrumGui(BaseElectrumGui):\ndomain = self.wallet.get_addresses()\nself.history = []\nself.txid = []\n- for hist_item in self.wallet.adb.get_history(domain):\n- i...
Python
MIT License
spesmilo/electrum
text guii: display full history
630,870
22.06.2022 00:38:41
-7,200
fbb3491e977da28c48a2848e7e48918160475af7
fix typo: stdio gui with no wallet same as - should have been included there
[ { "change_type": "MODIFY", "old_path": "electrum/gui/stdio.py", "new_path": "electrum/gui/stdio.py", "diff": "@@ -26,7 +26,7 @@ class ElectrumGui(BaseElectrumGui):\nBaseElectrumGui.__init__(self, config=config, daemon=daemon, plugins=plugins)\nself.network = daemon.network\nstorage = WalletStorage(c...
Python
MIT License
spesmilo/electrum
fix typo: stdio gui with no wallet same as https://github.com/spesmilo/electrum/pull/3223 - should have been included there
630,870
22.06.2022 01:24:19
-7,200
5b000a871f319a0ec4ffd7d622b0824ec60fa431
EventListener follow-ups: adapt left-out classes and minor clean-ups
[ { "change_type": "MODIFY", "old_path": "electrum/daemon.py", "new_path": "electrum/daemon.py", "diff": "@@ -44,6 +44,7 @@ from .network import Network\nfrom .util import (json_decode, to_bytes, to_string, profiler, standardize_path, constant_time_compare)\nfrom .invoices import PR_PAID, PR_EXPIRED\n...
Python
MIT License
spesmilo/electrum
EventListener follow-ups: adapt left-out classes and minor clean-ups
630,870
22.06.2022 01:38:35
-7,200
be322f7ea7e1789fa044e857202cb2a8f24dadde
qt dialogs: disconnect signals and unregister callbacks in closeEvent
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/channel_details.py", "new_path": "electrum/gui/qt/channel_details.py", "diff": "@@ -224,3 +224,7 @@ class ChannelDetailsDialog(QtWidgets.QDialog, MessageBoxMixin, QtEventListener):\nvbox.addLayout(Buttons(CloseButton(self)))\n# initialize sent/...
Python
MIT License
spesmilo/electrum
qt dialogs: disconnect signals and unregister callbacks in closeEvent
630,870
22.06.2022 02:26:54
-7,200
cafd5c4af075dbae5105a4c3858f8db97d210236
lnworker.add_request: force keyword args and change type-hint to reflect that fallback_address can be None
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -1808,7 +1808,7 @@ class LNWallet(LNWorker):\namount_msat: Optional[int],\nmessage: str,\nexpiry: int,\n- fallback_address: str,\n+ fallback_address: Optional[str],\nwrite_to_disk: bool = T...
Python
MIT License
spesmilo/electrum
lnworker.add_request: force keyword args and change type-hint to reflect that fallback_address can be None
630,870
22.06.2022 02:46:22
-7,200
c09903be68a68b7e1e1fc598c28152f83d9d40e9
daemon.PayServer.create_request: mark as broken... looks like it's been broken for a long time. self.root ?? lnworker.add_request API change
[ { "change_type": "MODIFY", "old_path": "electrum/daemon.py", "new_path": "electrum/daemon.py", "diff": "@@ -395,6 +395,7 @@ class PayServer(Logger, EventListener):\nself.logger.info(f\"now running and listening. addr={self.addr}\")\nasync def create_request(self, request):\n+ raise NotImplementedErr...
Python
MIT License
spesmilo/electrum
daemon.PayServer.create_request: mark as broken... looks like it's been broken for a long time. - self.root ?? - lnworker.add_request API change
630,969
22.06.2022 21:59:47
-7,200
fe74e4b9c95cc6e83056dd630c6f824830ee57a3
EventListener: pre-register event listeners in the decorator, and use that registration in the iterator. That way, we do not invoke getattr on arbitrary methods, which could trigger unwanted code execution (for example, if a method is decorated with getattr will execute its code).
[ { "change_type": "MODIFY", "old_path": "electrum/util.py", "new_path": "electrum/util.py", "diff": "@@ -1631,20 +1631,18 @@ callback_mgr = CallbackManager()\ntrigger_callback = callback_mgr.trigger_callback\nregister_callback = callback_mgr.register_callback\nunregister_callback = callback_mgr.unreg...
Python
MIT License
spesmilo/electrum
EventListener: pre-register event listeners in the decorator, and use that registration in the iterator. That way, we do not invoke getattr on arbitrary methods, which could trigger unwanted code execution (for example, if a method is decorated with @property, getattr will execute its code).
630,870
27.06.2022 17:23:08
-7,200
81880e85381b5725c47877cd0a81111fef2881ee
EventListener: key global dict by modulepath+clsname instead of clsname follow-up Just for sanity -- there could be a collision of class names (defined in separate modules). ``` >>> wallet.is_up_to_date.__qualname__ 'Abstract_Wallet.is_up_to_date' >>> wallet.is_up_to_date.__module__ 'electrum.wallet' ```
[ { "change_type": "MODIFY", "old_path": "electrum/util.py", "new_path": "electrum/util.py", "diff": "@@ -1631,15 +1631,15 @@ callback_mgr = CallbackManager()\ntrigger_callback = callback_mgr.trigger_callback\nregister_callback = callback_mgr.register_callback\nunregister_callback = callback_mgr.unreg...
Python
MIT License
spesmilo/electrum
EventListener: key global dict by modulepath+clsname instead of clsname follow-up https://github.com/spesmilo/electrum/commit/fe74e4b9c95cc6e83056dd630c6f824830ee57a3 Just for sanity -- there could be a collision of class names (defined in separate modules). ``` >>> wallet.is_up_to_date.__qualname__ 'Abstract_Wallet....
630,870
28.06.2022 18:51:21
-7,200
5b0aad508472614bdf75a0e225bcbfd7b9277b58
network: rename _send_http_on_proxy and make it part of public API
[ { "change_type": "MODIFY", "old_path": "electrum/network.py", "new_path": "electrum/network.py", "diff": "@@ -1291,9 +1291,15 @@ class Network(Logger, NetworkRetryManager[ServerAddr]):\nawait asyncio.sleep(0.1)\n@classmethod\n- async def _send_http_on_proxy(cls, method: str, url: str, params: str = ...
Python
MIT License
spesmilo/electrum
network: rename _send_http_on_proxy and make it part of public API
630,870
28.06.2022 18:55:51
-7,200
3db79210b5d490bd98ecd6571c995f53cece3cd2
network.run_from_another_thread: add type hint
[ { "change_type": "MODIFY", "old_path": "electrum/network.py", "new_path": "electrum/network.py", "diff": "@@ -32,7 +32,7 @@ import socket\nimport json\nimport sys\nimport asyncio\n-from typing import NamedTuple, Optional, Sequence, List, Dict, Tuple, TYPE_CHECKING, Iterable, Set, Any\n+from typing i...
Python
MIT License
spesmilo/electrum
network.run_from_another_thread: add type hint
630,870
28.06.2022 19:51:26
-7,200
4a791f92858dea1f8d8e7ebf3c5a0f4b9818edc1
qt.completion_text_edit: fix logic bug re shift/ctrl
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/completion_text_edit.py", "new_path": "electrum/gui/qt/completion_text_edit.py", "diff": "@@ -82,7 +82,7 @@ class CompletionTextEdit(ButtonsTextEdit):\nQPlainTextEdit.keyPressEvent(self, e)\n- ctrlOrShift = e.modifiers() and (Qt.ControlModifier...
Python
MIT License
spesmilo/electrum
qt.completion_text_edit: fix logic bug re shift/ctrl
630,870
28.06.2022 20:34:47
-7,200
c1d34243a1fceaa277e8c9c9dcaeab6fca492905
lnpeer: (trivial) better log message
[ { "change_type": "MODIFY", "old_path": "electrum/lnpeer.py", "new_path": "electrum/lnpeer.py", "diff": "@@ -384,7 +384,7 @@ class Peer(Logger):\nfor chan in self.channels.values():\nif chan.short_channel_id == payload['short_channel_id']:\nchan.set_remote_update(payload)\n- self.logger.info(\"saved ...
Python
MIT License
spesmilo/electrum
lnpeer: (trivial) better log message
630,969
29.06.2022 13:33:04
-7,200
dc15d59fcf04418c7ed36838beac30efd8d4774f
get_payment_value: rm failing assert
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -812,7 +812,7 @@ class LNWallet(LNWorker):\namount_msat = sum(int(x.direction) * x.htlc.amount_msat for x in plist)\nif all(x.direction == SENT for x in plist):\ndirection = PaymentDirectio...
Python
MIT License
spesmilo/electrum
get_payment_value: rm failing assert
630,870
25.02.2022 22:40:05
-3,600
82e33984ad2ce7aaea5d43162f977360d3b225bd
lnurl for kivy: I need this to buy beers
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main_window.py", "new_path": "electrum/gui/kivy/main_window.py", "diff": "@@ -18,7 +18,7 @@ from electrum.plugin import run_hook\nfrom electrum import util\nfrom electrum.util import (profiler, InvalidPassword, send_exception_to_crash_reporte...
Python
MIT License
spesmilo/electrum
lnurl for kivy: I need this to buy beers
630,870
30.05.2022 20:49:08
-7,200
649cad0122c877307948d322652955df9f9f1b90
lnurl: clean-up
[ { "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+from typing import Optional, Tuple\n+\nimport dns\nimport threading\nfrom dns.exception import DNSE...
Python
MIT License
spesmilo/electrum
lnurl: clean-up
630,870
30.05.2022 21:07:58
-7,200
a2d66ac90cb3a08e67eeb9c8e5480ee80b470118
kivy: rm code dupe between app.on_qr and send_screen.do_paste
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main_window.py", "new_path": "electrum/gui/kivy/main_window.py", "diff": "@@ -475,20 +475,16 @@ class ElectrumWindow(App, Logger, EventListener):\nself.show_error(\"invoice error:\" + pr.error)\nself.send_screen.do_clear()\n- def on_qr(self, ...
Python
MIT License
spesmilo/electrum
kivy: rm code dupe between app.on_qr and send_screen.do_paste
630,870
29.06.2022 18:02:55
-7,200
9f1da8422b41947f66bd432b084c1d26642f39cd
qt LightningTxDialog: (fix regression) show fee for ln payments follow-up
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/lightning_tx_dialog.py", "new_path": "electrum/gui/qt/lightning_tx_dialog.py", "diff": "@@ -31,6 +31,7 @@ from PyQt5.QtGui import QFont\nfrom PyQt5.QtWidgets import QVBoxLayout, QLabel, QGridLayout\nfrom electrum.i18n import _\n+from electrum.l...
Python
MIT License
spesmilo/electrum
qt LightningTxDialog: (fix regression) show fee for ln payments follow-up https://github.com/spesmilo/electrum/commit/e1d34300e59c6b35c7a97a776603ed7085b9e413
630,870
29.06.2022 18:07:03
-7,200
1b6706bed6f8db8afd958a25bf91e154a19f909e
replace some erroneous usages of IntFlag with IntEnum
[ { "change_type": "MODIFY", "old_path": "electrum/lnonion.py", "new_path": "electrum/lnonion.py", "diff": "import io\nimport hashlib\nfrom typing import Sequence, List, Tuple, NamedTuple, TYPE_CHECKING, Dict, Any, Optional\n-from enum import IntEnum, IntFlag\n+from enum import IntEnum\nfrom . import ...
Python
MIT License
spesmilo/electrum
replace some erroneous usages of IntFlag with IntEnum
630,992
30.06.2022 21:23:41
-7,200
8d57129ad6fa291e0b0e6323e6a814e7ae6ce2f7
p4a: update commit ref to head of qt5-wip (fixes cpu count used for build)
[ { "change_type": "MODIFY", "old_path": "contrib/android/Dockerfile", "new_path": "contrib/android/Dockerfile", "diff": "@@ -170,7 +170,7 @@ RUN cd /opt \\\n&& git remote add accumulator https://github.com/accumulator/python-for-android \\\n&& git fetch --all \\\n# commit: from branch accumulator/qt5...
Python
MIT License
spesmilo/electrum
p4a: update commit ref to head of qt5-wip (fixes cpu count used for build)
630,870
01.07.2022 16:21:56
-7,200
133c0f71c428339b52800292003c0e4998e97097
qt ReceiveTab: (trivial) rename clear_receive_tab to do_clear
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -488,7 +488,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger, QtEventListener):\nself.update_lock_icon()\nself.update_buttons_on_seed()\nself.update_consol...
Python
MIT License
spesmilo/electrum
qt ReceiveTab: (trivial) rename clear_receive_tab to do_clear
630,870
01.07.2022 16:23:06
-7,200
aea16f13227a7d66f39e84952455d36f66c3b0aa
qt main_window: (trivial) clean-up weird types passed to qt calls
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -261,7 +261,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger, QtEventListener):\nself.app.update_fiat_signal.connect(self.update_fiat)\nself.show_error_sig...
Python
MIT License
spesmilo/electrum
qt main_window: (trivial) clean-up weird types passed to qt calls
630,870
01.07.2022 18:17:17
-7,200
0fca35fa4068ea7c9da60cd5330b85c2ca1d0398
android build: increase buildozer log level (except on cirrus ci)
[ { "change_type": "MODIFY", "old_path": "contrib/android/make_apk", "new_path": "contrib/android/make_apk", "diff": "@@ -42,6 +42,11 @@ pushd \"$CONTRIB_ANDROID\"\ninfo \"apk building phase starts.\"\n+if [ ! $CI ]; then\n+ # override log level specified in buildozer.spec to \"debug\":\n+ export BUIL...
Python
MIT License
spesmilo/electrum
android build: increase buildozer log level (except on cirrus ci)
631,030
10.12.2021 12:00:00
0
45b8f11c68a170af74106d33f3604b7cbb9734f3
build: refactor out locale generation into build_locale.sh
[ { "change_type": "MODIFY", "old_path": "contrib/build-linux/sdist/make_sdist.sh", "new_path": "contrib/build-linux/sdist/make_sdist.sh", "diff": "@@ -6,7 +6,7 @@ PROJECT_ROOT=\"$(dirname \"$(readlink -e \"$0\")\")/../../..\"\nCONTRIB=\"$PROJECT_ROOT/contrib\"\nCONTRIB_SDIST=\"$CONTRIB/build-linux/sd...
Python
MIT License
spesmilo/electrum
build: refactor out locale generation into build_locale.sh
631,030
10.12.2021 12:00:00
0
a7e17ae4eef53a48113285ef2b93411334f3c011
build: add OMIT_UNCLEAN_FILES option to make_sdist.sh
[ { "change_type": "MODIFY", "old_path": "contrib/build-linux/sdist/make_sdist.sh", "new_path": "contrib/build-linux/sdist/make_sdist.sh", "diff": "@@ -19,19 +19,27 @@ break_legacy_easy_install\n# (make_packages will later install a pinned version of pip in a venv)\npython3 -m pip install --upgrade pi...
Python
MIT License
spesmilo/electrum
build: add OMIT_UNCLEAN_FILES option to make_sdist.sh
631,030
10.12.2021 12:00:00
0
2da1859110d86b18db2f3b30e5d4ffaa34c496a9
build: support OMIT_UNCLEAN_FILES in sdist/build.sh
[ { "change_type": "MODIFY", "old_path": "contrib/build-linux/sdist/build.sh", "new_path": "contrib/build-linux/sdist/build.sh", "diff": "@@ -47,6 +47,7 @@ docker run -it \\\n-v \"$PROJECT_ROOT_OR_FRESHCLONE_ROOT\":/opt/electrum \\\n--rm \\\n--workdir /opt/electrum/contrib/build-linux/sdist \\\n+ --en...
Python
MIT License
spesmilo/electrum
build: support OMIT_UNCLEAN_FILES in sdist/build.sh
631,030
10.12.2021 12:00:00
0
04b81d6b824cd82a7a951635eeeb89cdc39ce6ac
contrib: add generate_payreqpb2.sh script
[ { "change_type": "ADD", "old_path": null, "new_path": "contrib/generate_payreqpb2.sh", "diff": "+#!/bin/bash\n+# Generates the file paymentrequest_pb2.py\n+\n+CONTRIB=\"$(dirname \"$(readlink -e \"$0\")\")\"\n+EL=\"$CONTRIB\"/../electrum\n+\n+if ! which protoc > /dev/null 2>&1; then\n+ echo \"Please...
Python
MIT License
spesmilo/electrum
contrib: add generate_payreqpb2.sh script
631,030
04.01.2022 12:00:00
0
501c06559c2a060ed7c455b3f28c237ce0c414ae
ci: make source-only tarballs in Cirrus
[ { "change_type": "MODIFY", "old_path": ".cirrus.yml", "new_path": ".cirrus.yml", "diff": "@@ -208,7 +208,6 @@ task:\npath: \"dist/*\"\ntask:\n- name: tarball build\ncontainer:\ndockerfile: contrib/build-linux/sdist/Dockerfile\ncpu: 1\n@@ -217,6 +216,11 @@ task:\n- ./contrib/build-linux/sdist/make_sd...
Python
MIT License
spesmilo/electrum
ci: make source-only tarballs in Cirrus
630,969
16.06.2022 10:13:19
-7,200
7d9f20f8ab3d6a77f68de9c4a47acfcae3724d6e
update trampoline feature bits. fixes
[ { "change_type": "MODIFY", "old_path": "electrum/lnutil.py", "new_path": "electrum/lnutil.py", "diff": "@@ -1090,12 +1090,27 @@ class LnFeatures(IntFlag):\n_ln_feature_contexts[OPTION_SUPPORT_LARGE_CHANNEL_OPT] = (LNFC.INIT | LNFC.NODE_ANN)\n_ln_feature_contexts[OPTION_SUPPORT_LARGE_CHANNEL_REQ] = (...
Python
MIT License
spesmilo/electrum
update trampoline feature bits. fixes #7801
630,969
05.07.2022 10:17:59
-7,200
ce552713a86a28038036940ba716768a7032dca2
rename label: Confirmed -> On-chain
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/balance_dialog.py", "new_path": "electrum/gui/qt/balance_dialog.py", "diff": "@@ -171,7 +171,7 @@ class BalanceDialog(WindowModalDialog):\n(_('Frozen'), COLOR_FROZEN, frozen),\n(_('Unmatured'), COLOR_UNMATURED, unmatured),\n(_('Unconfirmed'), C...
Python
MIT License
spesmilo/electrum
rename label: Confirmed -> On-chain
630,969
05.07.2022 15:31:53
-7,200
1d343657f153ba8783704b16fe69e4ad962c8fd5
Qt: require left-click to toggle receive qr-code
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/receive_tab.py", "new_path": "electrum/gui/qt/receive_tab.py", "diff": "@@ -191,6 +191,8 @@ class ReceiveTab(QWidget, MessageBoxMixin, Logger):\nself.request_list.update() # after parented and put into a layout, can update without flickering\nd...
Python
MIT License
spesmilo/electrum
Qt: require left-click to toggle receive qr-code
630,870
05.07.2022 18:56:52
-7,200
c71f00cc8ea495aa124f8909b790c15e5ddfafb5
transaction.deserialize: only set self._inputs after parsing witness re multi-threaded sanity... (see lazy deserialization in Transaction.inputs)
[ { "change_type": "MODIFY", "old_path": "electrum/transaction.py", "new_path": "electrum/transaction.py", "diff": "@@ -675,14 +675,15 @@ class Transaction:\nn_vin = vds.read_compact_size()\nif n_vin < 1:\nraise SerializationError('tx needs to have at least 1 input')\n- self._inputs = [parse_input(vds...
Python
MIT License
spesmilo/electrum
transaction.deserialize: only set self._inputs after parsing witness re multi-threaded sanity... (see lazy deserialization in Transaction.inputs)
630,969
05.03.2022 09:07:45
-3,600
49a67a5cd29484c461a77e9ac357bdf18b517f00
build android apk with qt5 update requirements file for building PyQt5
[ { "change_type": "MODIFY", "old_path": "contrib/android/Makefile", "new_path": "contrib/android/Makefile", "diff": "@@ -25,9 +25,10 @@ export BUILD_TIME := $(shell LC_ALL=C TZ=UTC date +'%H:%M:%S' -d @$(SOUR\ntheming:\n#bash -c 'for i in network lightning; do convert -background none theming/light/$...
Python
MIT License
spesmilo/electrum
build android apk with qt5 update requirements file for building PyQt5
630,992
01.04.2021 14:30:51
-7,200
1df5187719b80eebbc504bd2bdfbffeb1e49a97b
qml: add 'qml' gui option and add gui.qml.ELectrumGui to type hint for gui_object
[ { "change_type": "MODIFY", "old_path": "electrum/commands.py", "new_path": "electrum/commands.py", "diff": "@@ -1502,7 +1502,7 @@ def get_parser():\n# gui\nparser_gui = subparsers.add_parser('gui', description=\"Run Electrum's Graphical User Interface.\", help=\"Run GUI (default)\")\nparser_gui.add_...
Python
MIT License
spesmilo/electrum
qml: add 'qml' gui option and add gui.qml.ELectrumGui to type hint for gui_object
630,992
01.04.2021 14:32:43
-7,200
7eb733757ac47e43798a1198b1424101039d8d84
qml: add initial qml.ElectrumGui class, Electrum QObject wrappers and an initial QObject for QR en/decoding
[ { "change_type": "ADD", "old_path": null, "new_path": "electrum/gui/qml/__init__.py", "diff": "+import os\n+import signal\n+import sys\n+import traceback\n+import threading\n+from typing import Optional, TYPE_CHECKING, List\n+\n+try:\n+ import PyQt5\n+except Exception:\n+ sys.exit(\"Error: Could not...
Python
MIT License
spesmilo/electrum
qml: add initial qml.ElectrumGui class, Electrum QObject wrappers and an initial QObject for QR en/decoding
630,992
01.04.2021 19:54:53
-7,200
3dce09328e5656516c2ac90ec3c7a1398a220a84
qml: Initial QML to test QObject property binding, ListModels, Camera
[ { "change_type": "ADD", "old_path": null, "new_path": "electrum/gui/qml/components/EButton.qml", "diff": "+import QtQuick 2.6\n+\n+Item {\n+ id: rootItem\n+ width: visbut.width + 10\n+ height: visbut.height + 10\n+\n+ signal clicked\n+ property string text\n+\n+ Rectangle {\n+ id: visbut\n+ border {...
Python
MIT License
spesmilo/electrum
qml: Initial QML to test QObject property binding, ListModels, Camera
630,992
03.04.2021 21:55:12
-7,200
a3801ecae8b7717b3a30a2a05aa1a3539ac1b144
qml: map fields of tx history
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qml/qeqr.py", "new_path": "electrum/gui/qml/qeqr.py", "diff": "@@ -24,7 +24,7 @@ class QEQR(QObject):\nself.scan_ready_changed.emit()\npilimage = self.convertToPILImage(image)\n- parseQR(pilimage)\n+ self.parseQR(pilimage)\nself._ready = True\n@@ ...
Python
MIT License
spesmilo/electrum
qml: map fields of tx history
630,992
03.04.2021 21:56:42
-7,200
39048fdd105b0b8b84ec74558ecaf1a5f73ede3c
qml: UI: add most transaction fields to tx history page
[ { "change_type": "ADD", "old_path": null, "new_path": "electrum/gui/qml/components/EHeader.qml", "diff": "+import QtQuick 2.6\n+\n+Item {\n+ height: 60\n+\n+ property alias text: label.text\n+\n+ Rectangle {\n+ anchors.fill: parent\n+ color: '#cccccc'\n+ }\n+\n+ Text {\n+ id: label\n+ x: 10\n+ ancho...
Python
MIT License
spesmilo/electrum
qml: UI: add most transaction fields to tx history page