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
06.12.2020 12:37:25
-3,600
40fbf3a929abc040a4db675a69ae18427a647a4d
follow-up (simplification)
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main_window.py", "new_path": "electrum/gui/kivy/main_window.py", "diff": "@@ -192,40 +192,28 @@ class ElectrumWindow(App, Logger):\ndef on_use_unconfirmed(self, instance, x):\nself.electrum_config.set_key('confirmed_only', not self.use_unconf...
Python
MIT License
spesmilo/electrum
follow-up c66c54a (simplification)
630,863
06.12.2020 23:35:39
10,800
c32ac41c36febf867d4f86859ac0bb47ae207a87
Added new brazillian exchange to exchange rates plugin: Walltime.
[ { "change_type": "MODIFY", "old_path": "electrum/currencies.json", "new_path": "electrum/currencies.json", "diff": "],\n\"Biscoint\": [\n\"BRL\"\n+ ],\n+ \"Walltime\": [\n+ \"BRL\"\n]\n}\n" }, { "change_type": "MODIFY", "old_path": "electrum/exchange_rate.py", "new_path": "electrum/e...
Python
MIT License
spesmilo/electrum
Added new brazillian exchange to exchange rates plugin: Walltime.
630,969
07.12.2020 10:53:53
-3,600
dc810f131d17e14dea7c347e07021a0850b1640a
kivy: wizard does not need Factory
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main_window.py", "new_path": "electrum/gui/kivy/main_window.py", "diff": "@@ -641,7 +641,7 @@ class ElectrumWindow(App, Logger):\ndef on_open_wallet(self, password, storage):\nif not storage.file_exists():\n- wizard = Factory.InstallWizard(se...
Python
MIT License
spesmilo/electrum
kivy: wizard does not need Factory
630,870
08.12.2020 08:47:13
-3,600
376ee395f867466d207747f36c0064e069ea9d24
kivy: (fix) clicking "max" to send would raise for empty wallet fix
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main_window.py", "new_path": "electrum/gui/kivy/main_window.py", "diff": "@@ -1110,7 +1110,8 @@ class ElectrumWindow(App, Logger):\ndef cb(amount):\nif amount == '!':\nscreen.is_max = True\n- screen.amount = self.get_max_amount() + ' ' + self...
Python
MIT License
spesmilo/electrum
kivy: (fix) clicking "max" to send would raise for empty wallet fix #6812
630,870
08.12.2020 10:00:34
-3,600
933d8861ce2538c21d26a1e1f6c4d48f31044a93
mnemonic.make_seed: de-duplicate num_bits default magic number
[ { "change_type": "MODIFY", "old_path": "electrum/base_wizard.py", "new_path": "electrum/base_wizard.py", "diff": "@@ -707,7 +707,7 @@ class BaseWizard(Logger):\ndef create_seed(self, seed_type):\nfrom . import mnemonic\nself.seed_type = seed_type\n- seed = mnemonic.Mnemonic('en').make_seed(self.seed...
Python
MIT License
spesmilo/electrum
mnemonic.make_seed: de-duplicate num_bits default magic number
630,870
08.12.2020 10:33:43
-3,600
95b08e9961242aabfe0501b4b7a3102fce2dd03d
plugins: remove 'on_new_window' hook
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/__init__.py", "new_path": "electrum/gui/qt/__init__.py", "diff": "@@ -233,8 +233,6 @@ class ElectrumGui(Logger):\nw = ElectrumWindow(self, wallet)\nself.windows.append(w)\nself.build_tray_menu()\n- # FIXME: Remove in favour of the load_wallet h...
Python
MIT License
spesmilo/electrum
plugins: remove 'on_new_window' hook
630,969
08.12.2020 10:44:59
-3,600
8bdd44edcbd5d8a9d9c24031c44c138fa02a4271
kivy: remove redundant declaration
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/uix/dialogs/__init__.py", "new_path": "electrum/gui/kivy/uix/dialogs/__init__.py", "diff": "@@ -81,9 +81,6 @@ class EventsDialog(Factory.Popup):\ndef on_press(self, instance):\npass\n- def close(self):\n- self.dismiss()\n-\nclass SelectionDia...
Python
MIT License
spesmilo/electrum
kivy: remove redundant declaration
630,870
08.12.2020 11:48:01
-3,600
dbb7d7ce4d217b378976f8e29a9ec4aa419bc7a5
network: set _loop_thread again as it helps debugging related:
[ { "change_type": "MODIFY", "old_path": "electrum/network.py", "new_path": "electrum/network.py", "diff": "@@ -266,7 +266,11 @@ class Network(Logger, NetworkRetryManager[ServerAddr]):\nself.asyncio_loop = asyncio.get_event_loop()\nassert self.asyncio_loop.is_running(), \"event loop not running\"\n- s...
Python
MIT License
spesmilo/electrum
network: set _loop_thread again as it helps debugging related: #6825
630,870
08.12.2020 12:21:56
-3,600
f74ac1a74124a868bd48c75c405cd541d2ca470c
cli/rpc: fix 'sweep' command fixes
[ { "change_type": "MODIFY", "old_path": "electrum/commands.py", "new_path": "electrum/commands.py", "diff": "@@ -566,12 +566,14 @@ class Commands:\nprivkeys = privkey.split()\nself.nocheck = nocheck\n#dest = self._resolver(destination)\n- tx = sweep(privkeys,\n+ tx = await sweep(\n+ privkeys,\nnetwor...
Python
MIT License
spesmilo/electrum
cli/rpc: fix 'sweep' command fixes #6825
630,969
08.12.2020 13:12:57
-3,600
1684b348dfaf6aa25a3d100f0781993b66deae9c
Qt: keep pending_invoice logic in main_window (follow-up fixes
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -188,6 +188,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nself.pluginsdialog = None\nself.showing_cert_mismatch_error = False\nself.tl_windows = []\n...
Python
MIT License
spesmilo/electrum
Qt: keep pending_invoice logic in main_window (follow-up 56579c2, fixes #5829)
630,870
08.12.2020 16:35:29
-3,600
14372e0a948f178b658db3786bec4bc07df3448c
dependencies: support and require dnspython 2.0, rm monkey patches dnspython 2.0 requires cryptography 2.6 so we now always require that (no longer a choice between cryptography and pycryptodomex) test_dnssec.py is deleted as it was testing the monkey-patch related:
[ { "change_type": "MODIFY", "old_path": "README.rst", "new_path": "README.rst", "diff": "@@ -55,9 +55,8 @@ libsecp256k1 yourself::\nsudo apt-get install automake libtool\n./contrib/make_libsecp256k1.sh\n-Due to the need for fast symmetric ciphers, either one of `pycryptodomex`_\n-or `cryptography`_ i...
Python
MIT License
spesmilo/electrum
dependencies: support and require dnspython 2.0, rm monkey patches - dnspython 2.0 requires cryptography 2.6 so we now always require that (no longer a choice between cryptography and pycryptodomex) - test_dnssec.py is deleted as it was testing the monkey-patch related: #6538
630,870
08.12.2020 16:38:13
-3,600
5a2d588e8bfa36889117b205ae6b04ec7e0ddd3a
dependencies: rm python-ecdsa
[ { "change_type": "MODIFY", "old_path": "contrib/requirements/requirements.txt", "new_path": "contrib/requirements/requirements.txt", "diff": "-ecdsa>=0.14\nqrcode\nprotobuf>=3.12\nqdarkstyle<2.9\n" }, { "change_type": "MODIFY", "old_path": "electrum/tests/test_bitcoin.py", "new_path"...
Python
MIT License
spesmilo/electrum
dependencies: rm python-ecdsa
630,870
08.12.2020 17:18:01
-3,600
239776cb41f68132d40620a9f3c805fb9cd328c0
gitignore: add some more build artifacts
[ { "change_type": "MODIFY", "old_path": ".gitignore", "new_path": ".gitignore", "diff": "@@ -32,9 +32,13 @@ electrum/gui/kivy/theming/light.atlas\n# build workspaces\ncontrib/build-wine/tmp/\ncontrib/build-wine/fresh_clone/\n+contrib/build-linux/sdist/fresh_clone/\ncontrib/build-linux/appimage/build/...
Python
MIT License
spesmilo/electrum
gitignore: add some more build artifacts
630,969
08.12.2020 19:42:21
-3,600
6273b4808fc6748d1957e837c736665ce70b5295
kivy: ensure WizardDialog.on_release is not executed more than once (see
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/uix/dialogs/installwizard.py", "new_path": "electrum/gui/kivy/uix/dialogs/installwizard.py", "diff": "@@ -640,6 +640,8 @@ class WizardDialog(EventsDialog):\nreturn (None,)\ndef on_release(self, button):\n+ if self._on_release is True:\n+ retu...
Python
MIT License
spesmilo/electrum
kivy: ensure WizardDialog.on_release is not executed more than once (see #6822)
630,870
09.12.2020 08:20:46
-3,600
2ebd844b31b9d8fddf3b2c52084cd4a47f6d81ce
qt swap dialog: fix enabling OK button fixes
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/swap_dialog.py", "new_path": "electrum/gui/qt/swap_dialog.py", "diff": "@@ -34,7 +34,7 @@ class SwapDialog(WindowModalDialog):\nself.lnworker = self.window.wallet.lnworker\nself.swap_manager = self.lnworker.swap_manager\nself.network = window.n...
Python
MIT License
spesmilo/electrum
qt swap dialog: fix enabling OK button fixes #6831
630,870
09.12.2020 09:04:04
-3,600
8c5601a17263d5e29aeba2b83facd5386d3baed1
dnspython: fix deprecation warnings when using dnspython 2.0 related:
[ { "change_type": "MODIFY", "old_path": "electrum/dns_hacks.py", "new_path": "electrum/dns_hacks.py", "diff": "@@ -69,8 +69,8 @@ def _fast_getaddrinfo(host, *args, **kwargs):\naddrs = []\nexpected_errors = (dns.resolver.NXDOMAIN, dns.resolver.NoAnswer,\nconcurrent.futures.CancelledError, concurrent.f...
Python
MIT License
spesmilo/electrum
dnspython: fix deprecation warnings when using dnspython 2.0 related: #6828
630,969
09.12.2020 10:04:17
-3,600
9ddb6755504830402447599b9010a54e4b3fc287
kivy: handle lightning invoices on wallets that do not have lightning. fix
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/uix/dialogs/invoice_dialog.py", "new_path": "electrum/gui/kivy/uix/dialogs/invoice_dialog.py", "diff": "@@ -98,7 +98,7 @@ class InvoiceDialog(Factory.Popup):\nself.description = invoice.message\nself.is_lightning = invoice.is_lightning()\nsel...
Python
MIT License
spesmilo/electrum
kivy: handle lightning invoices on wallets that do not have lightning. fix #6371
630,969
09.12.2020 10:22:42
-3,600
07bc4c40ef5ae56fee1b34b7f07e650f983f511e
kivy: add on_dismiss method to crash reporter dialog
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main_window.py", "new_path": "electrum/gui/kivy/main_window.py", "diff": "@@ -626,7 +626,7 @@ class ElectrumWindow(App, Logger):\nself.daemon.add_wallet(wallet)\nself.load_wallet(wallet)\n- def on_wizard_aborted(self, wizard):\n+ def on_wizar...
Python
MIT License
spesmilo/electrum
kivy: add on_dismiss method to crash reporter dialog
630,870
28.06.2020 18:54:47
-7,200
6f14375a6821a994f8b307e9c63b5e1f4e71c440
qt StatusBarButton: use QToolButton instead of QPushButton related:
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -46,7 +46,7 @@ from PyQt5.QtWidgets import (QMessageBox, QComboBox, QSystemTrayIcon, QTabWidget\nQHBoxLayout, QPushButton, QScrollArea, QTextEdit,\nQShortcut, QMainWindo...
Python
MIT License
spesmilo/electrum
qt StatusBarButton: use QToolButton instead of QPushButton related: #6299
630,870
09.12.2020 12:41:19
-3,600
5b9c972499625469a71b0d3fbc207b81adbde97c
qt StatusBarButton: use custom theme for macOS if using default theme
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -104,7 +104,9 @@ if TYPE_CHECKING:\nLN_NUM_PAYMENT_ATTEMPTS = 10\n+\nclass StatusBarButton(QToolButton):\n+ # note: this class has a custom stylesheet applied in stylesh...
Python
MIT License
spesmilo/electrum
qt StatusBarButton: use custom theme for macOS if using default theme
630,969
09.12.2020 14:10:50
-3,600
f396ae0a298854441a2809d72d776323b3fcae9d
prepare 4.0.7
[ { "change_type": "MODIFY", "old_path": "RELEASE-NOTES", "new_path": "RELEASE-NOTES", "diff": "+# Release 4.0.7 - (Dec 9, 2020)\n+ * kivy: fix open channel with 'max' amount\n+ * kivy: fix regression introduced in last release (a9fc440)\n+ * other minor GUI fixes\n+ * Dependencies: as part of adaptin...
Python
MIT License
spesmilo/electrum
prepare 4.0.7
630,870
09.12.2020 16:09:12
-3,600
d40bedb2ac77ed9e91c67bfd69451f7af69fece7
also support uppercase bip21 URIs related
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main_window.py", "new_path": "electrum/gui/kivy/main_window.py", "diff": "@@ -75,7 +75,8 @@ Label.register('Roboto',\n'electrum/gui/kivy/data/fonts/Roboto-Bold.ttf')\n-from electrum.util import (NoDynamicFeeEstimates, NotEnoughFunds)\n+from e...
Python
MIT License
spesmilo/electrum
also support uppercase bip21 URIs related https://github.com/btcpayserver/btcpayserver/issues/2110
630,870
08.12.2020 17:36:03
-3,600
4ca2a5cf3e2048d8488bc446f52f6178dbded24e
appimage build: build most of our python dependencies from source instead of using pre-built binary wheels from PyPI
[ { "change_type": "MODIFY", "old_path": "contrib/build-linux/appimage/build.sh", "new_path": "contrib/build-linux/appimage/build.sh", "diff": "@@ -115,13 +115,23 @@ info \"preparing electrum-locale.\"\ninfo \"Installing build dependencies.\"\nmkdir -p \"$CACHEDIR/pip_cache\"\n-\"$python\" -m pip inst...
Python
MIT License
spesmilo/electrum
appimage build: build most of our python dependencies from source instead of using pre-built binary wheels from PyPI
630,870
09.12.2020 18:31:08
-3,600
1851ec962f6a6e42fbb464505122106bb12e7af3
trustedcoin: fix two-step wallet creation (offline->online) got broken in
[ { "change_type": "MODIFY", "old_path": "electrum/plugins/trustedcoin/qt.py", "new_path": "electrum/plugins/trustedcoin/qt.py", "diff": "@@ -44,7 +44,7 @@ from electrum.i18n import _\nfrom electrum.plugin import hook\nfrom electrum.util import is_valid_email\nfrom electrum.logging import Logger\n-fro...
Python
MIT License
spesmilo/electrum
trustedcoin: fix two-step wallet creation (offline->online) got broken in c46fbf08a525988f1a2f175906e00f084426c4ab
630,969
09.12.2020 19:10:51
-3,600
b6f63e1abf2cc3faa9c504e73af656889b9fab9e
kivy: dismiss wizard dialog before calling go_back
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/uix/dialogs/installwizard.py", "new_path": "electrum/gui/kivy/uix/dialogs/installwizard.py", "diff": "@@ -619,6 +619,7 @@ class WizardDialog(EventsDialog):\ndef on_keyboard(self, instance, key, keycode, codepoint, modifier):\nif key == 27:\ni...
Python
MIT License
spesmilo/electrum
kivy: dismiss wizard dialog before calling go_back
630,870
10.12.2020 14:30:27
-3,600
4bda6f5e61da3df0f2cd678c542fffd49045ee9c
test_wallet_vertical: add test case for pre-2.7 "2fa" seed
[ { "change_type": "MODIFY", "old_path": "electrum/tests/test_wallet_vertical.py", "new_path": "electrum/tests/test_wallet_vertical.py", "diff": "@@ -159,7 +159,43 @@ class TestWalletKeystoreAddressIntegrityForMainnet(ElectrumTestCase):\nself.assertEqual(w.get_change_addresses()[0], '1KRW8pH6HFHZh889V...
Python
MIT License
spesmilo/electrum
test_wallet_vertical: add test case for pre-2.7 "2fa" seed
630,870
10.12.2020 14:31:53
-3,600
d1302d33841bd18492ad622441b58a5110a77fb4
mnemonic: tighten seed_type check for old "2fa" type seeds Seeds in the set difference could already not be restored: they raised an exception in the wizard; now these are not recognised as valid seeds anymore (so e.g. OK button in wizard will be disabled). Also see comments in code.
[ { "change_type": "MODIFY", "old_path": "electrum/mnemonic.py", "new_path": "electrum/mnemonic.py", "diff": "@@ -241,13 +241,17 @@ def is_old_seed(seed: str) -> bool:\ndef seed_type(x: str) -> str:\n+ num_words = len(x.split())\nif is_old_seed(x):\nreturn 'old'\n- elif is_new_seed(x):\n+ elif is_new_...
Python
MIT License
spesmilo/electrum
mnemonic: tighten seed_type check for old "2fa" type seeds Seeds in the set difference could already not be restored: they raised an exception in the wizard; now these are not recognised as valid seeds anymore (so e.g. OK button in wizard will be disabled). Also see comments in code.
630,969
10.12.2020 17:21:41
-3,600
8872e43f27d92f2ed090b76bd589c7159485e20c
cleanup, remove if statement (follow-up 13b05f64e6a89b90b80a470538798c116f968170)
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main_window.py", "new_path": "electrum/gui/kivy/main_window.py", "diff": "@@ -623,7 +623,6 @@ class ElectrumWindow(App, Logger):\nreturn ''\ndef on_wizard_success(self, storage, db, password):\n- if storage:\nself.password = password\nwallet ...
Python
MIT License
spesmilo/electrum
cleanup, remove if statement (follow-up 13b05f64e6a89b90b80a470538798c116f968170)
630,870
10.12.2020 17:06:28
-3,600
c3c64a37c26f965c89479923f3fc5f3ae2bf24c2
keystore: ignore fingerprint for pubkeys in psbt, try to match all keys
[ { "change_type": "MODIFY", "old_path": "electrum/keystore.py", "new_path": "electrum/keystore.py", "diff": "@@ -371,8 +371,9 @@ class MasterPublicKeyMixin(ABC):\n*,\nonly_der_suffix=True,\n) -> Union[Sequence[int], str, None]:\n+ EXPECTED_DER_SUFFIX_LEN = 2\ndef test_der_suffix_against_pubkey(der_su...
Python
MIT License
spesmilo/electrum
keystore: ignore fingerprint for pubkeys in psbt, try to match all keys
630,969
11.12.2020 18:21:37
-3,600
cdfaaa260942b807f809c2c0414fb242a03e945a
Save height in invoices, use it to determine invoice status (fixes
[ { "change_type": "MODIFY", "old_path": "electrum/invoices.py", "new_path": "electrum/invoices.py", "diff": "@@ -118,6 +118,7 @@ class OnchainInvoice(Invoice):\noutputs = attr.ib(kw_only=True, converter=_decode_outputs) # type: List[PartialTxOutput]\nbip70 = attr.ib(type=str, kw_only=True) # type: Op...
Python
MIT License
spesmilo/electrum
Save height in invoices, use it to determine invoice status (fixes #6609)
630,969
15.12.2020 15:34:26
-3,600
0e420e6f9d6bd82786e3b873f14c81a556e8e282
lnworker: remove channel if it was not saved successfully after creation
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -839,8 +839,13 @@ class LNWallet(LNWorker):\nchannels_db[chan.channel_id.hex()] = chan.storage\nfor addr in chan.get_wallet_addresses_channel_might_want_reserved():\nself.wallet.set_reserve...
Python
MIT License
spesmilo/electrum
lnworker: remove channel if it was not saved successfully after creation
630,969
15.12.2020 15:51:06
-3,600
587ca5dd42e832db277e0a3d754ad98e71cfbefa
kivy: initialize app.android_backups from config, and show error message if save_backup raises an exception
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main_window.py", "new_path": "electrum/gui/kivy/main_window.py", "diff": "@@ -381,6 +381,7 @@ class ElectrumWindow(App, Logger):\nself.daemon = self.gui_object.daemon\nself.fx = self.daemon.fx\nself.use_rbf = config.get('use_rbf', True)\n+ se...
Python
MIT License
spesmilo/electrum
kivy: initialize app.android_backups from config, and show error message if save_backup raises an exception
630,866
17.11.2020 11:20:10
0
42366ba57dea5f2b08c7c95882bcd0b59c7ae422
network: increase MOST_RELAXED default timeout to 10 minutes related:
[ { "change_type": "MODIFY", "old_path": "electrum/interface.py", "new_path": "electrum/interface.py", "diff": "@@ -80,7 +80,8 @@ class NetworkTimeout:\nclass Generic:\nNORMAL = 30\nRELAXED = 45\n- MOST_RELAXED = 180\n+ MOST_RELAXED = 600\n+\nclass Urgent(Generic):\nNORMAL = 10\nRELAXED = 20\n" } ]
Python
MIT License
spesmilo/electrum
network: increase MOST_RELAXED default timeout to 10 minutes related: https://github.com/spesmilo/electrum/pull/6741
630,969
16.12.2020 12:25:41
-3,600
43614af2c4557726daa4576a381fe63f8387c542
wallet: use height to determine request status (similar to outgoing invoices)
[ { "change_type": "MODIFY", "old_path": "electrum/wallet.py", "new_path": "electrum/wallet.py", "diff": "@@ -1737,13 +1737,19 @@ class Abstract_Wallet(AddressSynchronizer, ABC):\ndef delete_address(self, address: str) -> None:\nraise Exception(\"this wallet cannot delete addresses\")\n- def get_payme...
Python
MIT License
spesmilo/electrum
wallet: use height to determine request status (similar to outgoing invoices)
630,969
16.12.2020 10:05:17
-3,600
06b9d485351e48967390b3b7edac181f0579a994
kivy: allow address reuse in imported wallets. (fix
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/uix/dialogs/request_dialog.py", "new_path": "electrum/gui/kivy/uix/dialogs/request_dialog.py", "diff": "@@ -116,6 +116,10 @@ class RequestDialog(Factory.Popup):\nif self.status == PR_UNPAID and self.is_lightning and self.app.wallet.lnworker:\...
Python
MIT License
spesmilo/electrum
kivy: allow address reuse in imported wallets. (fix #6852)
630,870
16.12.2020 14:22:22
-3,600
f453bfe82ecdc5b216f51b18b7cb110c6ba137d2
kivy: move "lightning" (gossip) btn inside "channels" dialog and show toast msg when opening "channels" dialog if lightning is not available for wallet
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main.kv", "new_path": "electrum/gui/kivy/main.kv", "diff": "@@ -456,9 +456,6 @@ BoxLayout:\nActionOvrButton:\nname: 'network'\ntext: _('Network')\n- ActionOvrButton:\n- name: 'lightning'\n- text: _('Lightning')\nActionOvrButton:\nname: 'addre...
Python
MIT License
spesmilo/electrum
kivy: move "lightning" (gossip) btn inside "channels" dialog and show toast msg when opening "channels" dialog if lightning is not available for wallet
630,870
16.12.2020 17:17:30
-3,600
ede9b4382a899b8b12c4c96dc892d54dffc59d11
qt swap dialog: attempt at clearer logic (at the cost of more lines) fixes
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/swap_dialog.py", "new_path": "electrum/gui/qt/swap_dialog.py", "diff": "@@ -104,6 +104,7 @@ class SwapDialog(WindowModalDialog):\nself.is_reverse = not self.is_reverse\nself.send_amount_e.setAmount(None)\nself.recv_amount_e.setAmount(None)\n+ s...
Python
MIT License
spesmilo/electrum
qt swap dialog: attempt at clearer logic (at the cost of more lines) fixes #6853
630,896
10.12.2020 08:29:53
-3,600
903ad55b0bd58542fe0f15a8df1d38aaec664674
swaps: disable button if no channel present
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/channels_list.py", "new_path": "electrum/gui/qt/channels_list.py", "diff": "@@ -225,6 +225,7 @@ class ChannelsList(MyTreeView):\nself._update_chan_frozen_bg(chan=chan, items=items)\nif wallet.lnworker:\nself.update_can_send(wallet.lnworker)\n+ ...
Python
MIT License
spesmilo/electrum
swaps: disable button if no channel present
630,896
17.12.2020 06:44:27
-3,600
c3776943477343d7bf943afee6e76969d8fdda3f
swaps: limit forward amount to receivable amount on lightning
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/swap_dialog.py", "new_path": "electrum/gui/qt/swap_dialog.py", "diff": "@@ -126,14 +126,15 @@ class SwapDialog(WindowModalDialog):\nself._update_tx('!')\nif self.tx:\namount = self.tx.output_value_for_address(ln_dummy_address())\n- max_amt = se...
Python
MIT License
spesmilo/electrum
swaps: limit forward amount to receivable amount on lightning
630,896
11.12.2020 10:44:23
-3,600
64ecf8539a53d467af55036282281c4cc31746b9
swaps: fix normal amount formulas In a normal (forward) swap (onchain->offchain): send_amount = receive_amount * (1 + service_percentage) + normal_fee , and vice versa: receive_amount = (send_amount + normal_fee) / (1 + service_percentage) , i.e., the service fee is charged on the received offchain amount.
[ { "change_type": "MODIFY", "old_path": "electrum/submarine_swaps.py", "new_path": "electrum/submarine_swaps.py", "diff": "@@ -281,7 +281,7 @@ class SwapManager(Logger):\nif locktime - self.network.get_local_height() >= 144:\nraise Exception(\"fswap check failed: locktime too far in future\")\n# crea...
Python
MIT License
spesmilo/electrum
swaps: fix normal amount formulas In a normal (forward) swap (onchain->offchain): send_amount = receive_amount * (1 + service_percentage) + normal_fee , and vice versa: receive_amount = (send_amount + normal_fee) / (1 + service_percentage) , i.e., the service fee is charged on the received offchain amount.
630,969
17.12.2020 17:49:51
-3,600
d44581e07225fd16eba6854c5618079311060c63
prepare release 4.0.8
[ { "change_type": "MODIFY", "old_path": "RELEASE-NOTES", "new_path": "RELEASE-NOTES", "diff": "+# Release 4.0.8 - (Dec 17, 2020)\n+ * fix decoding BIP21 URIs with uppercase schema (d40bedb2)\n+ * psbt: put full derivation paths into PSBT by default (c8155129)\n+ * invoices: allow address-reuse (#6609...
Python
MIT License
spesmilo/electrum
prepare release 4.0.8
630,896
18.12.2020 07:09:48
-3,600
7a62074f8e528f67bbd6ae3cf1afc4d7f57df512
lnchannel: reflect frozen amounts and disconnected channels in the num_sats_can_send/receive methods of the lnwallet.
[ { "change_type": "MODIFY", "old_path": "electrum/lnchannel.py", "new_path": "electrum/lnchannel.py", "diff": "@@ -530,6 +530,9 @@ class Channel(AbstractChannel):\ndef is_initiator(self):\nreturn self.constraints.is_initiator\n+ def is_active(self):\n+ return self.get_state() == ChannelState.OPEN and...
Python
MIT License
spesmilo/electrum
lnchannel: reflect frozen amounts and disconnected channels in the num_sats_can_send/receive methods of the lnwallet.
630,969
18.12.2020 10:49:45
-3,600
b08f9f3581794b32c5c34a1a8433a47beb20c152
fix height is must be passed to OnchainInvoice constructor
[ { "change_type": "MODIFY", "old_path": "electrum/invoices.py", "new_path": "electrum/invoices.py", "diff": "@@ -128,7 +128,7 @@ class OnchainInvoice(Invoice):\nreturn self.amount_sat or 0\n@classmethod\n- def from_bip70_payreq(cls, pr: 'PaymentRequest') -> 'OnchainInvoice':\n+ def from_bip70_payreq(...
Python
MIT License
spesmilo/electrum
fix #6859: height is must be passed to OnchainInvoice constructor
630,969
18.12.2020 14:30:47
-3,600
89ecc85c64fc3e410741daa71d946d43dbc970ec
convert_version_24: loop over list instead of dict items (see and
[ { "change_type": "MODIFY", "old_path": "electrum/wallet_db.py", "new_path": "electrum/wallet_db.py", "diff": "@@ -524,7 +524,7 @@ class WalletDB(JsonDB):\nself.data['channels'] = { x['channel_id']: x for x in channels }\n# convert txi & txo\ntxi = self.get('txi', {})\n- for tx_hash, d in txi.items()...
Python
MIT License
spesmilo/electrum
convert_version_24: loop over list instead of dict items (see #6863 and #6349)
630,969
18.12.2020 14:51:33
-3,600
95203b0a55a6ee2458999564bb573529d670795b
channels_list: display node_id if node_alias is not available
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/channels_list.py", "new_path": "electrum/gui/qt/channels_list.py", "diff": "@@ -81,7 +81,7 @@ class ChannelsList(MyTreeView):\nclosed = chan.is_closed()\nif self.network and self.network.has_channel_db():\nnode_info = self.parent.network.channe...
Python
MIT License
spesmilo/electrum
channels_list: display node_id if node_alias is not available
630,870
18.12.2020 19:15:45
-3,600
44e6bfbdd474ef44a0a492760949b381bd709804
travis: disable macOS build
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -76,7 +76,8 @@ jobs:\n- ls -la bin\n- if [ $(ls bin | grep -c Electrum-*) -eq 0 ]; then exit 1; fi\nafter_success: true\n- - if: (branch = master) OR (tag IS present)\n+ # disabled for now as travis started ...
Python
MIT License
spesmilo/electrum
travis: disable macOS build
630,969
18.12.2020 19:40:39
-3,600
ae15bccb8192532afc4908b43f68797cd6239fd6
prepare release 4.0.9
[ { "change_type": "MODIFY", "old_path": "RELEASE-NOTES", "new_path": "RELEASE-NOTES", "diff": "+# Release 4.0.9 - (Dec 18, 2020)\n+ * fixes a regression introduced in 4.0.8, that prevents from\n+ paying BIP70 invoices (#6859)\n+ * reflect frozen channels and disconnected peers in the displayed\n+ 'ca...
Python
MIT License
spesmilo/electrum
prepare release 4.0.9
630,969
19.12.2020 15:10:15
-3,600
89a14996ced2463379e3d7b252b48a852762cdc9
add method get_node_alias to lnworker
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/channels_list.py", "new_path": "electrum/gui/qt/channels_list.py", "diff": "@@ -79,11 +79,7 @@ class ChannelsList(MyTreeView):\nlabels[subject] = label\nstatus = chan.get_state_for_GUI()\nclosed = chan.is_closed()\n- if self.network and self.ne...
Python
MIT License
spesmilo/electrum
add method get_node_alias to lnworker
630,969
20.12.2020 11:30:18
-3,600
6daf8b7534698b0903c4e7ed7fbb19de8743e42f
kivy: show exception raised by lnworker.pay. fixes
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/uix/screens.py", "new_path": "electrum/gui/kivy/uix/screens.py", "diff": "@@ -360,14 +360,13 @@ class SendScreen(CScreen, Logger):\ndo_pay(False)\ndef _do_pay_lightning(self, invoice: LNInvoice, pw) -> None:\n+ def pay_thread():\n+ try:\n+ se...
Python
MIT License
spesmilo/electrum
kivy: show exception raised by lnworker.pay. fixes #6495
630,870
20.12.2020 13:26:35
-3,600
096d85348218398c09915e33cabd11e34e323329
qt: rm some usages of get_parent_main_window instead, pass around the main window or config (whichever is actually needed) fixes
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/installwizard.py", "new_path": "electrum/gui/qt/installwizard.py", "diff": "@@ -447,7 +447,7 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard):\ndef text_input(self, title, message, is_valid, allow_multi=False):\nslayout = KeysLayout...
Python
MIT License
spesmilo/electrum
qt: rm some usages of get_parent_main_window instead, pass around the main window or config (whichever is actually needed) fixes #6342
630,870
20.12.2020 14:39:15
-3,600
b28b3994c7c879d43325faa8db8f4691be1f920f
qt: move window.get{Open,Save}FileName to util Sometimes we want its "remember path" behaviour but it does not make sense to parent the dialog from main window. When so, caller code no longer needs to get a reference to a main window. Also rm last usages of get_parent_main_window().
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/address_dialog.py", "new_path": "electrum/gui/qt/address_dialog.py", "diff": "@@ -87,14 +87,14 @@ class AddressDialog(WindowModalDialog):\nredeem_script = self.wallet.get_redeem_script(address)\nif redeem_script:\nvbox.addWidget(QLabel(_(\"Rede...
Python
MIT License
spesmilo/electrum
qt: move window.get{Open,Save}FileName to util Sometimes we want its "remember path" behaviour but it does not make sense to parent the dialog from main window. When so, caller code no longer needs to get a reference to a main window. Also rm last usages of get_parent_main_window().
630,969
21.12.2020 13:26:56
-3,600
f83d2d9fee160e7b5475d397672559fc8f947470
Move the part of process_gossip that requires access to channel_db into in LNGossip.
[ { "change_type": "MODIFY", "old_path": "electrum/lnpeer.py", "new_path": "electrum/lnpeer.py", "diff": "@@ -84,7 +84,6 @@ class Peer(Logger):\nself.node_ids = [self.pubkey, privkey_to_pubkey(self.privkey)]\nassert self.node_ids[0] != self.node_ids[1]\nself.network = lnworker.network\n- self.channel_...
Python
MIT License
spesmilo/electrum
Move the part of process_gossip that requires access to channel_db into in LNGossip.
630,969
27.12.2020 12:01:43
-3,600
39fc72dad63b217ae040f82ffc0da2c5cfce2c92
add paste button to qt payto_e. fixes
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1310,6 +1310,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nfrom .paytoedit import PayToEdit\nself.amount_e = BTCAmountEdit(self.get_decimal_point)\n...
Python
MIT License
spesmilo/electrum
add paste button to qt payto_e. fixes #6878
630,969
22.12.2020 12:28:40
-3,600
b29cdc02da10836fc32e6be76b6ca5f463bd86ac
Require gossip_queries in LNWallet (follow-up f83d2d9fee160e7b5475d397672559fc8f947470) - workaround lnd bug - also reduces bandwidth usage
[ { "change_type": "MODIFY", "old_path": "electrum/lnpeer.py", "new_path": "electrum/lnpeer.py", "diff": "@@ -256,6 +256,8 @@ class Peer(Logger):\nself.gossip_queue.put_nowait(('channel_update', payload))\ndef maybe_save_remote_update(self, payload):\n+ if not self.channels:\n+ return\nfor chan in sel...
Python
MIT License
spesmilo/electrum
Require gossip_queries in LNWallet (follow-up f83d2d9fee160e7b5475d397672559fc8f947470) - workaround lnd bug https://github.com/lightningnetwork/lnd/issues/3651 - also reduces bandwidth usage
630,969
30.12.2020 11:51:02
-3,600
d70431c0e7f1eeb028099f6a40706b6ed39c9966
lnchannel.available_to_spend: return zero if frozen or not active. Without this, the channel details window displays can_send/can_receive values that are inconsistent with the main window
[ { "change_type": "MODIFY", "old_path": "electrum/lnchannel.py", "new_path": "electrum/lnchannel.py", "diff": "@@ -1095,6 +1095,9 @@ class Channel(AbstractChannel):\nsender = subject\nreceiver = subject.inverted()\ninitiator = LOCAL if self.constraints.is_initiator else REMOTE # the initiator/funder ...
Python
MIT License
spesmilo/electrum
lnchannel.available_to_spend: return zero if frozen or not active. Without this, the channel details window displays can_send/can_receive values that are inconsistent with the main window
630,969
31.12.2020 08:44:26
-3,600
eb6eac92544034b487fa04a6b422537c1de9f348
fix reserve_sat in local_config. see
[ { "change_type": "MODIFY", "old_path": "electrum/lnpeer.py", "new_path": "electrum/lnpeer.py", "diff": "@@ -498,15 +498,17 @@ class Peer(Logger):\nstatic_remotekey = bfh(wallet.get_public_key(addr))\nelse:\nstatic_remotekey = None\n+ dust_limit_sat = bitcoin.DUST_LIMIT_DEFAULT_SAT_LEGACY\n+ reserve_...
Python
MIT License
spesmilo/electrum
fix reserve_sat in local_config. see #6896
630,969
02.01.2021 14:24:11
-3,600
b2ab2a9f6a086cc7cd38ba17b2d211288c81e940
wizard: call on_restore_seed, on_restore_bip39 through self.run. fixes
[ { "change_type": "MODIFY", "old_path": "electrum/base_wizard.py", "new_path": "electrum/base_wizard.py", "diff": "@@ -509,13 +509,13 @@ class BaseWizard(Logger):\nself.opt_ext = True\nis_cosigning_seed = lambda x: mnemonic.seed_type(x) in ['standard', 'segwit']\ntest = mnemonic.is_seed if self.walle...
Python
MIT License
spesmilo/electrum
wizard: call on_restore_seed, on_restore_bip39 through self.run. fixes #6895
630,969
02.01.2021 16:38:05
-3,600
07b08738a8269e075faff3da9db336f0f26afd12
kivy wizard: checkum bip39 seeds, because the virtual keyboard imposes the English wordlist
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/uix/dialogs/installwizard.py", "new_path": "electrum/gui/kivy/uix/dialogs/installwizard.py", "diff": "@@ -894,7 +894,13 @@ class RestoreSeedDialog(WizardDialog):\nyield w\ndef update_next_button(self):\n- self.ids.next.disabled = False if sel...
Python
MIT License
spesmilo/electrum
kivy wizard: checkum bip39 seeds, because the virtual keyboard imposes the English wordlist
630,969
04.01.2021 12:39:24
-3,600
177766ac3794225b07dd902acf59c53d3971b2c0
lnpeer: fix a comment
[ { "change_type": "MODIFY", "old_path": "electrum/lnpeer.py", "new_path": "electrum/lnpeer.py", "diff": "@@ -1441,7 +1441,7 @@ class Peer(Logger):\nawait asyncio.sleep(0.1)\nself.send_message('shutdown', channel_id=chan.channel_id, len=len(scriptpubkey), scriptpubkey=scriptpubkey)\nchan.set_state(Cha...
Python
MIT License
spesmilo/electrum
lnpeer: fix a comment
630,870
06.01.2021 02:24:51
-3,600
422f7ad110b5053a794f48ec7df97a034c801248
qt tx dialog: fix visual artifact when opening (widget parenting issue)
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/locktimeedit.py", "new_path": "electrum/gui/qt/locktimeedit.py", "diff": "@@ -27,9 +27,9 @@ class LockTimeEdit(QWidget):\nhbox.setContentsMargins(0, 0, 0, 0)\nhbox.setSpacing(0)\n- self.locktime_raw_e = LockTimeRawEdit()\n- self.locktime_height...
Python
MIT License
spesmilo/electrum
qt tx dialog: fix visual artifact when opening (widget parenting issue)
630,870
06.01.2021 02:27:17
-3,600
85f76523b6b29d49099648725c5fccc337ad28a5
qt tx dialog: use WaitingDialog for network requests in __init__
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/transaction_dialog.py", "new_path": "electrum/gui/qt/transaction_dialog.py", "diff": "@@ -215,7 +215,11 @@ class BaseTxDialog(QDialog, MessageBoxMixin):\n# As a result, e.g. we might learn an imported address tx is segwit,\n# or that a beyond-g...
Python
MIT License
spesmilo/electrum
qt tx dialog: use WaitingDialog for network requests in __init__
630,870
06.01.2021 02:29:59
-3,600
4b5616ff148918d0afb1807b143853cee8718209
qt BlockingWaitingDialog: try harder to get label drawn (refresh bug)
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/util.py", "new_path": "electrum/gui/qt/util.py", "diff": "@@ -332,9 +332,14 @@ class BlockingWaitingDialog(WindowModalDialog):\nself.message_label = QLabel(message)\nvbox = QVBoxLayout(self)\nvbox.addWidget(self.message_label)\n+ # show popup\n...
Python
MIT License
spesmilo/electrum
qt BlockingWaitingDialog: try harder to get label drawn (refresh bug)
630,870
06.01.2021 03:05:13
-3,600
13c45bd798e0017d939dd5b4dc6fd9e8651bf727
qt send tab: mention frozen balance if "not enough funds" in more cases fixes
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/confirm_tx_dialog.py", "new_path": "electrum/gui/qt/confirm_tx_dialog.py", "diff": "@@ -229,12 +229,7 @@ class ConfirmTxDialog(TxEditor, WindowModalDialog):\nself._update_amount_label()\nif self.not_enough_funds:\n- text = _(\"Not enough funds\...
Python
MIT License
spesmilo/electrum
qt send tab: mention frozen balance if "not enough funds" in more cases fixes #6912
630,870
07.01.2021 18:55:18
-3,600
9e86bb171b78e3c47fad2377df3181c87528ce70
binaries: update bundled PyQt version to 5.15.2 related:
[ { "change_type": "MODIFY", "old_path": "contrib/requirements/requirements-binaries-mac.txt", "new_path": "contrib/requirements/requirements-binaries-mac.txt", "diff": "-PyQt5<5.13.2\n-cryptography>=2.1\n+PyQt5>=5.15.2\n+cryptography>=2.6\n" }, { "change_type": "MODIFY", "old_path": "cont...
Python
MIT License
spesmilo/electrum
binaries: update bundled PyQt version to 5.15.2 related: https://github.com/spesmilo/electrum/issues/6461#issuecomment-756240675
630,915
08.01.2021 13:16:13
18,000
a810bc50becb0c0c7eb0096fbc2e619b047584c9
plugins/coldcard/README.md: updates and cleanup
[ { "change_type": "MODIFY", "old_path": "electrum/plugins/coldcard/README.md", "new_path": "electrum/plugins/coldcard/README.md", "diff": "-\n# Coldcard Hardware Wallet Plugin\n## Just the glue please\n@@ -14,22 +13,18 @@ this reason, all PIN code entry is done directly on the device.\nColdcard does ...
Python
MIT License
spesmilo/electrum
plugins/coldcard/README.md: updates and cleanup
630,915
08.01.2021 13:16:54
18,000
e829f2a0bc0175c797ffa89da447845d2886bf7b
plugins/coldcard/coldcard.py: include derivation path for each part of multisig (for v3.2.1 of firmware)
[ { "change_type": "MODIFY", "old_path": "electrum/plugins/coldcard/coldcard.py", "new_path": "electrum/plugins/coldcard/coldcard.py", "diff": "@@ -570,28 +570,21 @@ class ColdcardPlugin(HW_PluginBase):\nprint(f'Format: {wallet.txin_type.upper()}' , file=fp)\nxpubs = []\n- derivs = set()\nfor xpub, ks...
Python
MIT License
spesmilo/electrum
plugins/coldcard/coldcard.py: include derivation path for each part of multisig (for v3.2.1 of firmware)
630,870
09.01.2021 18:41:41
-3,600
9a803cd1d683b72a2246ed70d76f77562f8d9981
ChannelDB: fix get_last_good_address
[ { "change_type": "MODIFY", "old_path": "electrum/channel_db.py", "new_path": "electrum/channel_db.py", "diff": "@@ -334,11 +334,12 @@ class ChannelDB(SqlDB):\nunshuffled = set(self._nodes.keys()) - node_ids\nreturn random.sample(unshuffled, min(200, len(unshuffled)))\n- def get_last_good_address(sel...
Python
MIT License
spesmilo/electrum
ChannelDB: fix get_last_good_address
630,870
09.01.2021 19:56:05
-3,600
2ec548dda3664834d4a50d4f323886130285257a
ChannelDB: avoid duplicate (host,port) entries in ChannelDB._addresses before: node_id -> set of (host, port, ts) after: node_id -> NetAddress -> timestamp Look at e.g. add_recent_peer; we only want to store the last connection time, not all of them.
[ { "change_type": "MODIFY", "old_path": "electrum/channel_db.py", "new_path": "electrum/channel_db.py", "diff": "@@ -34,6 +34,7 @@ import asyncio\nimport threading\nfrom enum import IntEnum\n+from aiorpcx import NetAddress\nfrom .sql_db import SqlDB, sql\nfrom . import constants, util\n@@ -53,14 +54,...
Python
MIT License
spesmilo/electrum
ChannelDB: avoid duplicate (host,port) entries in ChannelDB._addresses before: node_id -> set of (host, port, ts) after: node_id -> NetAddress -> timestamp Look at e.g. add_recent_peer; we only want to store the last connection time, not all of them.
630,969
10.01.2021 11:43:00
-3,600
de903103dafd46e1073d0e4de5df86e2407386bd
pass daemon to Commands instance in qt console. fixes
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -2135,7 +2135,9 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\n'lnutil': lnutil,\n})\n- c = commands.Commands(config=self.config,\n+ c = commands.Comman...
Python
MIT License
spesmilo/electrum
pass daemon to Commands instance in qt console. fixes #6926
630,870
11.01.2021 00:05:23
-3,600
2eb02931aea1d4bf0c869284959bdb9b584f19f4
hw plugins: log exception at import time (but only if interesting) related:
[ { "change_type": "MODIFY", "old_path": "electrum/plugins/bitbox02/bitbox02.py", "new_path": "electrum/plugins/bitbox02/bitbox02.py", "diff": "@@ -25,6 +25,9 @@ import electrum.ecc as ecc\nfrom ..hw_wallet import HW_PluginBase, HardwareClientBase\n+_logger = get_logger(__name__)\n+\n+\ntry:\nfrom bit...
Python
MIT License
spesmilo/electrum
hw plugins: log exception at import time (but only if interesting) related: https://github.com/spesmilo/electrum/issues/6928
630,896
01.01.2021 10:12:07
-3,600
863fe031f0e9dfa5376b78354e554a317c3b2d90
lnpeer: await on_message handlers to raise exceptions
[ { "change_type": "MODIFY", "old_path": "electrum/lnpeer.py", "new_path": "electrum/lnpeer.py", "diff": "@@ -193,7 +193,7 @@ class Peer(Logger):\npayload['raw'] = message\nexecution_result = f(*args)\nif asyncio.iscoroutinefunction(f):\n- asyncio.ensure_future(execution_result)\n+ asyncio.ensure_futu...
Python
MIT License
spesmilo/electrum
lnpeer: await on_message handlers to raise exceptions
630,896
18.12.2020 11:04:56
-3,600
cf6e3e4efa45c2df33a2c5453296f1e7a0a6b81d
lnwire: add upfront shutdown script tlvs
[ { "change_type": "MODIFY", "old_path": "electrum/lnwire/peer_wire.csv", "new_path": "electrum/lnwire/peer_wire.csv", "diff": "@@ -50,8 +50,9 @@ msgdata,open_channel,delayed_payment_basepoint,point,\nmsgdata,open_channel,htlc_basepoint,point,\nmsgdata,open_channel,first_per_commitment_point,point,\nm...
Python
MIT License
spesmilo/electrum
lnwire: add upfront shutdown script tlvs
630,896
18.12.2020 11:05:36
-3,600
e5458bb5348be6d73ff834f7db3cd4a993c7ed6a
wallet_db: migrate to upfront shutdown scripts
[ { "change_type": "MODIFY", "old_path": "electrum/wallet_db.py", "new_path": "electrum/wallet_db.py", "diff": "@@ -52,7 +52,7 @@ if TYPE_CHECKING:\nOLD_SEED_VERSION = 4 # electrum versions < 2.0\nNEW_SEED_VERSION = 11 # electrum versions >= 2.0\n-FINAL_SEED_VERSION = 33 # electrum >= 2.7 will set thi...
Python
MIT License
spesmilo/electrum
wallet_db: migrate to upfront shutdown scripts
630,896
18.12.2020 11:06:42
-3,600
6b90a2d36c52c577a786e8080e3c09531795b16d
lnpeer: implement upfront shutdown script logic Upfront shutdown script is a script provided on channel opening, which will be used by the peer to enforce us closing to this script on collaborative channel close.
[ { "change_type": "MODIFY", "old_path": "electrum/lnchannel.py", "new_path": "electrum/lnchannel.py", "diff": "@@ -649,6 +649,9 @@ class Channel(AbstractChannel):\ndef is_static_remotekey_enabled(self) -> bool:\nreturn bool(self.storage.get('static_remotekey_enabled'))\n+ def is_upfront_shutdown_scri...
Python
MIT License
spesmilo/electrum
lnpeer: implement upfront shutdown script logic Upfront shutdown script is a script provided on channel opening, which will be used by the peer to enforce us closing to this script on collaborative channel close.
630,896
18.12.2020 11:07:09
-3,600
f7e5c2d3b09f2d24b34ffe73c7289298f418f64e
lnworker: enable upfront shutdown script
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -556,6 +556,7 @@ class LNWallet(LNWorker):\nself.features |= LnFeatures.OPTION_STATIC_REMOTEKEY_REQ\n# we do not want to receive unrequested gossip (see lnpeer.maybe_save_remote_update)\nse...
Python
MIT License
spesmilo/electrum
lnworker: enable upfront shutdown script
630,896
19.12.2020 21:10:52
-3,600
5a72df2bb41b7306d360c7918597810b9f5d1974
lnrater: suggest nodes compatible with our LN features
[ { "change_type": "MODIFY", "old_path": "electrum/lnrater.py", "new_path": "electrum/lnrater.py", "diff": "@@ -10,7 +10,7 @@ from collections import defaultdict\nfrom pprint import pformat\nfrom random import choices\nfrom statistics import mean, median, stdev\n-from typing import TYPE_CHECKING, Dict...
Python
MIT License
spesmilo/electrum
lnrater: suggest nodes compatible with our LN features
630,896
24.12.2020 10:04:09
-3,600
673f89f0d2d7b0c5563361a41195d29d68e477d8
scripts: add Lightning feature analysis script
[ { "change_type": "ADD", "old_path": null, "new_path": "electrum/scripts/ln_features.py", "diff": "+#!/usr/bin/env python3\n+\"\"\"\n+Script to analyze the graph for Lightning features.\n+\n+https://github.com/lightningnetwork/lightning-rfc/blob/master/09-features.md\n+\"\"\"\n+\n+import asyncio\n+im...
Python
MIT License
spesmilo/electrum
scripts: add Lightning feature analysis script
630,896
29.12.2020 17:40:01
-3,600
e555ea650ef49ddd1bd9f9144cac7237261c1c8c
lnpeer: add unit test for upfront shutdown script
[ { "change_type": "MODIFY", "old_path": "electrum/tests/test_lnchannel.py", "new_path": "electrum/tests/test_lnchannel.py", "diff": "@@ -34,8 +34,6 @@ from electrum import lnchannel\nfrom electrum import lnutil\nfrom electrum import bip32 as bip32_utils\nfrom electrum.lnutil import SENT, LOCAL, REMOT...
Python
MIT License
spesmilo/electrum
lnpeer: add unit test for upfront shutdown script
630,896
19.12.2020 21:21:24
-3,600
bd178fbed5b4e532cc097b0e4ecfd8f546bb2707
lnpeer: remove unused imports, code cleanup
[ { "change_type": "MODIFY", "old_path": "electrum/lnpeer.py", "new_path": "electrum/lnpeer.py", "diff": "import zlib\nfrom collections import OrderedDict, defaultdict\n-import json\nimport asyncio\nimport os\nimport time\n-from functools import partial\n-from typing import List, Tuple, Dict, TYPE_CHE...
Python
MIT License
spesmilo/electrum
lnpeer: remove unused imports, code cleanup
630,969
11.01.2021 12:30:49
-3,600
805c5a2120bdc9861cf2cb8d4fee47e1dc31f1dc
upfront_shutdown_script: rm dead code, fix test
[ { "change_type": "MODIFY", "old_path": "electrum/lnchannel.py", "new_path": "electrum/lnchannel.py", "diff": "@@ -649,9 +649,6 @@ class Channel(AbstractChannel):\ndef is_static_remotekey_enabled(self) -> bool:\nreturn bool(self.storage.get('static_remotekey_enabled'))\n- def is_upfront_shutdown_scri...
Python
MIT License
spesmilo/electrum
upfront_shutdown_script: rm dead code, fix test
630,969
10.01.2021 18:41:22
-3,600
d5c360a958f3666ad137443f812e7923c039ab52
simplify lnrouter API
[ { "change_type": "MODIFY", "old_path": "electrum/lnrouter.py", "new_path": "electrum/lnrouter.py", "diff": "@@ -310,3 +310,10 @@ class LNPathFinder(Logger):\nnode_info=node_info))\nprev_node_id = node_id\nreturn route\n+\n+ def find_route(self, nodeA: bytes, nodeB: bytes, invoice_amount_msat: int, *...
Python
MIT License
spesmilo/electrum
simplify lnrouter API
630,969
11.01.2021 13:40:41
-3,600
9d7a3174042ffcd35d20833ba844c28123e30f0d
fix tests (follow-up 3f5c1a017120f1e7a0cde83bb737779a5bb9f418)
[ { "change_type": "MODIFY", "old_path": "electrum/tests/test_commands.py", "new_path": "electrum/tests/test_commands.py", "diff": "@@ -167,14 +167,14 @@ class TestCommandsTestnet(TestCaseForTestnet):\n{\n\"prevout_hash\": \"9d221a69ca3997cbeaf5624d723e7dc5f829b1023078c177d37bdae95f37c539\",\n\"prevou...
Python
MIT License
spesmilo/electrum
fix tests (follow-up 3f5c1a017120f1e7a0cde83bb737779a5bb9f418)
630,969
11.01.2021 15:19:50
-3,600
ad91257729dc67cc8813d18ee8f1464c5571d72e
pass blacklist to lnrouter.find_route, so that lnrouter is stateless (see
[ { "change_type": "MODIFY", "old_path": "electrum/lnrouter.py", "new_path": "electrum/lnrouter.py", "diff": "@@ -135,24 +135,12 @@ def is_fee_sane(fee_msat: int, *, payment_amount_msat: int) -> bool:\nreturn False\n-BLACKLIST_DURATION = 3600\nclass LNPathFinder(Logger):\ndef __init__(self, channel_db...
Python
MIT License
spesmilo/electrum
pass blacklist to lnrouter.find_route, so that lnrouter is stateless (see #6778)
630,969
11.01.2021 15:51:52
-3,600
b2be29b508deb310631cacfb51bb1561bce75ff9
follow-up previous commit (variable name)
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -1015,7 +1015,7 @@ class LNWallet(LNWorker):\nexcept IndexError:\nself.logger.info(\"payment destination reported error\")\nelse:\n- self.logger.info(f'blacklisting channel {short_channel_i...
Python
MIT License
spesmilo/electrum
follow-up previous commit (variable name)
630,969
12.01.2021 10:56:05
-3,600
d50a8d1b843d9f155e58e846ed5fa4ff8d28c929
Qt: rename incoming/outgoing payments to send/receive queue. fixes
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1115,7 +1115,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nqr_icon = \"qrcode_white.png\" if ColorScheme.dark_scheme else \"qrcode.png\"\nself.recei...
Python
MIT License
spesmilo/electrum
Qt: rename incoming/outgoing payments to send/receive queue. fixes #6711
630,969
12.01.2021 10:49:46
-3,600
90abfda12bf78ce13332ab0474dcade418a211b1
add unconfirmed state for onchain invoices and requests
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/util.py", "new_path": "electrum/gui/qt/util.py", "diff": "@@ -26,7 +26,7 @@ from PyQt5.QtWidgets import (QPushButton, QLabel, QMessageBox, QHBoxLayout,\nfrom electrum.i18n import _, languages\nfrom electrum.util import FileImportFailed, FileExp...
Python
MIT License
spesmilo/electrum
add unconfirmed state for onchain invoices and requests
630,969
06.12.2020 10:58:04
-3,600
a2122a8c19579a2dc3d91f0d41633c9d4d129988
auto-remove paid invoices from GUI - delay 3 seconds in GUI - kivy remove 'delete' buttons from send/receive screens
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main_window.py", "new_path": "electrum/gui/kivy/main_window.py", "diff": "@@ -242,9 +242,12 @@ class ElectrumWindow(App, Logger):\nself._trigger_update_history()\ndef on_request_status(self, event, wallet, key, status):\n- if key not in self....
Python
MIT License
spesmilo/electrum
auto-remove paid invoices from GUI - delay 3 seconds in GUI - kivy remove 'delete' buttons from send/receive screens
630,969
12.01.2021 10:48:43
-3,600
94708f63e4f237f5f4c143137de797f9c0ccc08e
invoices and requests: rm 3 seconds delay
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main_window.py", "new_path": "electrum/gui/kivy/main_window.py", "diff": "@@ -246,8 +246,10 @@ class ElectrumWindow(App, Logger):\nif req is None:\nreturn\nif self.receive_screen:\n+ if status == PR_PAID:\n+ self.receive_screen.update()\n+ el...
Python
MIT License
spesmilo/electrum
invoices and requests: rm 3 seconds delay
630,969
30.11.2020 14:47:38
-3,600
641968fcf8fbb2ec8141a67aa992ce0274e08e5f
Wizard: do not ask seed type, default to segwit segwit addresses are widely supported today.
[ { "change_type": "MODIFY", "old_path": "electrum/base_wizard.py", "new_path": "electrum/base_wizard.py", "diff": "@@ -685,24 +685,9 @@ class BaseWizard(Logger):\ndef show_xpub_and_add_cosigners(self, xpub):\nself.show_xpub_dialog(xpub=xpub, run_next=lambda x: self.run('choose_keystore'))\n- def choo...
Python
MIT License
spesmilo/electrum
Wizard: do not ask seed type, default to segwit segwit addresses are widely supported today.
630,969
12.01.2021 12:23:01
-3,600
66d31305e4f90f6abf0a5c078b1913f62a80c65e
kivy: minor fix (follow-up 94708f63e4f237f5f4c143137de797f9c0ccc08e)
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main_window.py", "new_path": "electrum/gui/kivy/main_window.py", "diff": "@@ -260,7 +260,7 @@ class ElectrumWindow(App, Logger):\nreq = self.wallet.get_invoice(key)\nif req is None:\nreturn\n- status = self.wallet.get_invoice_status(invoice)\...
Python
MIT License
spesmilo/electrum
kivy: minor fix (follow-up 94708f63e4f237f5f4c143137de797f9c0ccc08e)
630,969
12.01.2021 14:57:31
-3,600
3cb68b10b94abd6cd8ca9442b6f9ef5773f88557
remove broken payment requests. fixes
[ { "change_type": "MODIFY", "old_path": "electrum/wallet_db.py", "new_path": "electrum/wallet_db.py", "diff": "@@ -52,7 +52,7 @@ if TYPE_CHECKING:\nOLD_SEED_VERSION = 4 # electrum versions < 2.0\nNEW_SEED_VERSION = 11 # electrum versions >= 2.0\n-FINAL_SEED_VERSION = 34 # electrum >= 2.7 will set thi...
Python
MIT License
spesmilo/electrum
remove broken payment requests. fixes #6350
630,969
13.01.2021 11:07:48
-3,600
620a6aaf990f7dce07c3cd7ae87c4c1c9f70d505
kivy: fix confirm_seed_dialog (broken in 77e0d3745e990e97ddbac5550e399f3e695af788)
[ { "change_type": "MODIFY", "old_path": "electrum/base_wizard.py", "new_path": "electrum/base_wizard.py", "diff": "@@ -694,6 +694,7 @@ class BaseWizard(Logger):\nself.seed_type = seed_type\nseed = mnemonic.Mnemonic('en').make_seed(seed_type=self.seed_type)\nself.opt_bip39 = False\n+ self.opt_ext = Tr...
Python
MIT License
spesmilo/electrum
kivy: fix confirm_seed_dialog (broken in 77e0d3745e990e97ddbac5550e399f3e695af788)
630,969
13.01.2021 11:18:34
-3,600
94065414564c24dc2a1724f736b4a0651d1eec9e
kivy wizard: verify seed extension
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/uix/dialogs/installwizard.py", "new_path": "electrum/gui/kivy/uix/dialogs/installwizard.py", "diff": "@@ -551,6 +551,7 @@ Builder.load_string('''\nmultiline: False\nsize_hint: 1, None\nheight: '48dp'\n+ on_text: Clock.schedule_once(root.on_te...
Python
MIT License
spesmilo/electrum
kivy wizard: verify seed extension
630,969
14.01.2021 14:59:14
-3,600
be438bdd60529dc1ad131c9f45325f082082e33f
check_password_for_directory: skip non-files
[ { "change_type": "MODIFY", "old_path": "electrum/wallet.py", "new_path": "electrum/wallet.py", "diff": "@@ -2968,6 +2968,8 @@ def check_password_for_directory(config, old_password, new_password=None):\nfailed = []\nfor filename in os.listdir(dirname):\npath = os.path.join(dirname, filename)\n+ if no...
Python
MIT License
spesmilo/electrum
check_password_for_directory: skip non-files
630,969
14.01.2021 19:44:15
-3,600
7619949b2fd335cd63b4c88d793fbe59d28f3f40
fix raise exceptions if dscancel or cpfp create dust or negative output.
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/history_list.py", "new_path": "electrum/gui/qt/history_list.py", "diff": "@@ -694,9 +694,8 @@ class HistoryList(MyTreeView, AcceptFileDragDrop):\nif tx_details.can_bump:\nmenu.addAction(_(\"Increase fee\"), lambda: self.parent.bump_fee_dialog(t...
Python
MIT License
spesmilo/electrum
fix #6674: raise exceptions if dscancel or cpfp create dust or negative output.
630,969
16.01.2021 15:15:38
-3,600
5598b04c8bb7a3fdc96c5bc0ea6fffc4fe635297
fix regtest/start_bitcoind.sh: createwallet needs to be called
[ { "change_type": "MODIFY", "old_path": "electrum/tests/regtest/start_bitcoind.sh", "new_path": "electrum/tests/regtest/start_bitcoind.sh", "diff": "@@ -20,5 +20,6 @@ rm -rf ~/.bitcoin/regtest\nscreen -S bitcoind -X quit || true\nscreen -S bitcoind -m -d bitcoind -regtest\nsleep 6\n+bitcoin-cli creat...
Python
MIT License
spesmilo/electrum
fix regtest/start_bitcoind.sh: createwallet needs to be called
630,969
16.01.2021 19:04:58
-3,600
23ece8b33b2dec3e3af8d20e30b4ff54de7fc688
lnpeer: initialize new channel storage with lnworker db
[ { "change_type": "MODIFY", "old_path": "electrum/lnpeer.py", "new_path": "electrum/lnpeer.py", "diff": "@@ -733,7 +733,7 @@ class Peer(Logger):\n\"revocation_store\": {},\n\"static_remotekey_enabled\": self.is_static_remotekey(), # stored because it cannot be \"downgraded\", per BOLT2\n}\n- return S...
Python
MIT License
spesmilo/electrum
lnpeer: initialize new channel storage with lnworker db
630,969
16.01.2021 23:19:57
-3,600
b3eb8592f3cb55c39b9dee29b1ba8e810dacb4a6
upfront_shutdown_script: fix ChannelBackup constructor
[ { "change_type": "MODIFY", "old_path": "electrum/lnchannel.py", "new_path": "electrum/lnchannel.py", "diff": "@@ -420,7 +420,7 @@ class ChannelBackup(AbstractChannel):\ncurrent_commitment_signature=None,\ncurrent_htlc_signatures=b'',\nhtlc_minimum_msat=1,\n- )\n+ upfront_shutdown_script='')\nself.co...
Python
MIT License
spesmilo/electrum
upfront_shutdown_script: fix ChannelBackup constructor
630,969
17.01.2021 10:29:44
-3,600
9e94ffd08e118f375b5b2e99c2f61be1cac873f9
factorize code for bumb_fee and dscancel dialogs. Disable ok button if fee_rate is None
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -3235,7 +3235,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nreturn False\nreturn True\n- def bump_fee_dialog(self, tx: Transaction):\n+ def _rbf_dial...
Python
MIT License
spesmilo/electrum
factorize code for bumb_fee and dscancel dialogs. Disable ok button if fee_rate is None
630,969
17.01.2021 12:15:54
-3,600
091d7e104a8ff824d5e623413e1d8b1e52f9c6b4
rbf_dialog: show error in the dialog window
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -3252,11 +3252,24 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nvbox.addWidget(WWLabel(help_text))\nok_button = OkButton(d)\n+ warning_label = WWLabel(...
Python
MIT License
spesmilo/electrum
rbf_dialog: show error in the dialog window