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,870 | 28.07.2021 15:22:07 | -7,200 | a1f69fef97d820f7bcdfd6af5c7e7a1b1b704786 | qt channels list: align "can send", "can recv" cols based on amounts | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/channels_list.py",
"new_path": "electrum/gui/qt/channels_list.py",
"diff": "@@ -83,12 +83,12 @@ class ChannelsList(MyTreeView):\nfor subject in (REMOTE, LOCAL):\nif isinstance(chan, Channel):\ncan_send = chan.available_to_spend(subject) / 1000\... | Python | MIT License | spesmilo/electrum | qt channels list: align "can send", "can recv" cols based on amounts |
630,896 | 29.07.2021 15:58:09 | -7,200 | 4ee5fa75f61202f21e107781433615734f1e7a5d | lnrouter+lnworker: rename my_channels | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnrouter.py",
"new_path": "electrum/lnrouter.py",
"diff": "@@ -517,7 +517,7 @@ class LNPathFinder(Logger):\nnodeA: bytes,\nnodeB: bytes,\ninvoice_amount_msat: int,\n- my_channels: Dict[ShortChannelID, 'Channel'] = None,\n+ my_sending_channels: Dict[Sh... | Python | MIT License | spesmilo/electrum | lnrouter+lnworker: rename my_channels |
630,870 | 29.07.2021 18:11:09 | -7,200 | 5115e14aed6a8401efa393e2ee8655ce035dbfaa | mac build: reuse previously built dylibs if available | [
{
"change_type": "MODIFY",
"old_path": "contrib/osx/make_osx",
"new_path": "contrib/osx/make_osx",
"diff": "@@ -129,16 +129,28 @@ info \"generating locale\"\ninfo \"Installing some build-time deps for compilation...\"\nbrew install autoconf automake libtool gettext coreutils pkgconfig\n+if [ ! -f \"... | Python | MIT License | spesmilo/electrum | mac build: reuse previously built dylibs if available |
630,896 | 16.06.2021 09:52:12 | -7,200 | 6716004b47a048557635031993144617720760b9 | bolt11: fix amount encoding for large values | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnaddr.py",
"new_path": "electrum/lnaddr.py",
"diff": "@@ -32,12 +32,14 @@ def shorten_amount(amount):\n\"\"\"\n# Convert to pico initially\namount = int(amount * 10**12)\n- units = ['p', 'n', 'u', 'm', '']\n+ units = ['p', 'n', 'u', 'm']\nfor unit in... | Python | MIT License | spesmilo/electrum | bolt11: fix amount encoding for large values |
630,896 | 14.05.2021 15:22:02 | -7,200 | c65caf6c688f6775e5c5698de041ecb04513999f | qt+android: add lightning URI support | [
{
"change_type": "MODIFY",
"old_path": "contrib/build-wine/electrum.nsi",
"new_path": "contrib/build-wine/electrum.nsi",
"diff": "@@ -132,11 +132,15 @@ Section\nCreateShortCut \"$SMPROGRAMS\\${PRODUCT_NAME}\\${PRODUCT_NAME} Testnet.lnk\" \"$INSTDIR\\electrum-${PRODUCT_VERSION}.exe\" \"--testnet\" \"... | Python | MIT License | spesmilo/electrum | qt+android: add lightning URI support |
630,896 | 28.07.2021 10:36:08 | -7,200 | 28bbb4bdda6ee1c17577bd63b49ecddc0f076149 | android+osx: add lightning uri handlers | [
{
"change_type": "MODIFY",
"old_path": "contrib/android/bitcoin_intent.xml",
"new_path": "contrib/android/bitcoin_intent.xml",
"diff": "<category android:name=\"android.intent.category.DEFAULT\" />\n<category android:name=\"android.intent.category.BROWSABLE\" />\n<data android:scheme=\"bitcoin\" />\... | Python | MIT License | spesmilo/electrum | android+osx: add lightning uri handlers |
630,896 | 30.07.2021 09:47:43 | -7,200 | e9a1bd1f1e64e375ecfa3bdd438696ad1f52480b | kivy: fix on_intent to call set_URI | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/main_window.py",
"new_path": "electrum/gui/kivy/main_window.py",
"diff": "@@ -229,10 +229,8 @@ class ElectrumWindow(App, Logger):\ndef on_new_intent(self, intent):\ndata = str(intent.getDataString())\nscheme = str(intent.getScheme()).lower()\... | Python | MIT License | spesmilo/electrum | kivy: fix on_intent to call set_URI |
630,945 | 11.08.2021 16:48:26 | -19,080 | e9f08ef69e3ec331fe0e7b166d47c4c4db157579 | Adding BumpFee command to the CLI
closes | [
{
"change_type": "MODIFY",
"old_path": "electrum/commands.py",
"new_path": "electrum/commands.py",
"diff": "@@ -50,7 +50,7 @@ from .transaction import (Transaction, multisig_script, TxOutput, PartialTransac\ntx_from_any, PartialTxInput, TxOutpoint)\nfrom .invoices import PR_PAID, PR_UNPAID, PR_UNKNO... | Python | MIT License | spesmilo/electrum | Adding BumpFee command to the CLI (#7438)
closes https://github.com/spesmilo/electrum/issues/5791 |
630,899 | 12.08.2021 17:13:28 | -32,400 | de596a6bfaa006042b596416b23b4772f6361cc1 | Change lightning node(signet) | [
{
"change_type": "MODIFY",
"old_path": "electrum/trampoline.py",
"new_path": "electrum/trampoline.py",
"diff": "@@ -66,7 +66,8 @@ TRAMPOLINE_NODES_TESTNET = {\n}\nTRAMPOLINE_NODES_SIGNET = {\n- 'wakiyamap.dev': LNPeerAddr(host='signet-electrumx.wakiyamap.dev', port=9735, pubkey=bytes.fromhex('02dadf... | Python | MIT License | spesmilo/electrum | Change lightning node(signet) |
630,896 | 20.08.2021 09:21:24 | -7,200 | ebc5954d61e2cae25a675d5cd360fe82e62ac78e | fix ln payments: set payto_e ln invoice correctly
payto_e.lightning_invoice has to be set after the payment field is set
to the node pub key, because check_text has the side effect of resetting
the payto_e.lightning_invoice | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/main_window.py",
"new_path": "electrum/gui/qt/main_window.py",
"diff": "@@ -1970,7 +1970,6 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nself.show_error(_(\"Error parsing Lightning invoice\") + f\":\\n{e}\")\nreturn\n- self.pa... | Python | MIT License | spesmilo/electrum | fix ln payments: set payto_e ln invoice correctly
payto_e.lightning_invoice has to be set after the payment field is set
to the node pub key, because check_text has the side effect of resetting
the payto_e.lightning_invoice |
630,870 | 03.09.2021 16:48:29 | -7,200 | a39bfba2d9a2e7509bcc1638afa67b042c1b0868 | ecc: allow tests to disable ecdsa R-value grinding
see | [
{
"change_type": "MODIFY",
"old_path": "electrum/ecc.py",
"new_path": "electrum/ecc.py",
"diff": "@@ -41,6 +41,11 @@ from .ecc_fast import _libsecp256k1, SECP256K1_EC_UNCOMPRESSED\n_logger = get_logger(__name__)\n+# Some unit tests need to create ECDSA sigs without grinding the R value (and just use... | Python | MIT License | spesmilo/electrum | ecc: allow tests to disable ecdsa R-value grinding
see https://github.com/spesmilo/electrum/pull/7453#issuecomment-912594926 |
630,870 | 06.09.2021 19:04:27 | -7,200 | 126afebea1cd774d6f610dbefe84348ed9f278a3 | gitignore: slight changes so that it might be reused as dockerignore
This diff should not change what is matched by gitignore
(e.g. `build/` matches `contrib/build-wine/build/`).
I am experimenting with reusing gitignore as dockerignore which uses
slightly different semantics.
related: | [
{
"change_type": "MODIFY",
"old_path": ".gitignore",
"new_path": ".gitignore",
"diff": "+.git/\n####-*.patch\n-*.pyc\n+**/*.pyc\n*.swp\nbuild/\ndist/\n@@ -27,6 +28,9 @@ electrum_data\n# build workspaces\ncontrib/build-wine/tmp/\n+contrib/build-wine/build/\n+contrib/build-wine/.cache/\n+contrib/build... | Python | MIT License | spesmilo/electrum | gitignore: slight changes so that it might be reused as dockerignore
This diff should not change what is matched by gitignore
(e.g. `build/` matches `contrib/build-wine/build/`).
I am experimenting with reusing gitignore as dockerignore which uses
slightly different semantics.
related: https://github.com/spesmilo/ele... |
630,991 | 07.09.2021 19:59:50 | -19,080 | 604cba8fb6eee8d29eb07ef80afb86e29da59cab | Added different Sighash_Types
Implements signing for sighash types other than `ALL` for segwit inputs.
fixes | [
{
"change_type": "MODIFY",
"old_path": "electrum/tests/test_transaction.py",
"new_path": "electrum/tests/test_transaction.py",
"diff": "@@ -3,11 +3,12 @@ from typing import NamedTuple, Union\nfrom electrum import transaction, bitcoin\nfrom electrum.transaction import (convert_raw_tx_to_hex, tx_from_... | Python | MIT License | spesmilo/electrum | Added different Sighash_Types (#7453)
Implements signing for sighash types other than `ALL` for segwit inputs.
fixes https://github.com/spesmilo/electrum/issues/7408 |
630,870 | 08.09.2021 16:36:07 | -7,200 | c84b8733395476783e742ffd6d6c281d09bb6c5d | qt PreviewTxDialog: fix sizing of fee edits
follow-up to | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/amountedit.py",
"new_path": "electrum/gui/qt/amountedit.py",
"diff": "@@ -28,6 +28,7 @@ class SizedFreezableLineEdit(FreezableLineEdit):\nsuper().__init__(parent)\nself._width = width\nself.setSizePolicy(QSizePolicy.Preferred, QSizePolicy.Fixed... | Python | MIT License | spesmilo/electrum | qt PreviewTxDialog: fix sizing of fee edits
follow-up to cfdadeda679cac6e5674141822a6ca2497160043 |
630,870 | 08.09.2021 16:39:59 | -7,200 | f7820717be525d3debe0f32287578a35dbf3832e | qt ConfirmTxDialog: make fields selectable
related: | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/confirm_tx_dialog.py",
"new_path": "electrum/gui/qt/confirm_tx_dialog.py",
"diff": "from decimal import Decimal\nfrom typing import TYPE_CHECKING, Optional, Union\n+from PyQt5.QtCore import Qt\nfrom PyQt5.QtWidgets import QVBoxLayout, QLabel, Q... | Python | MIT License | spesmilo/electrum | qt ConfirmTxDialog: make fields selectable
related: https://github.com/spesmilo/electrum/issues/7488 |
630,870 | 08.09.2021 16:50:26 | -7,200 | 9353220e5d57f4720817324ac37fcb1cad92210c | qt send tab: try to make it clearer the sender pays the fee
related: | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/confirm_tx_dialog.py",
"new_path": "electrum/gui/qt/confirm_tx_dialog.py",
"diff": "@@ -136,9 +136,12 @@ class ConfirmTxDialog(TxEditor, WindowModalDialog):\nself.setLayout(vbox)\ngrid = QGridLayout()\nvbox.addLayout(grid)\n+\n+ msg = (_('The a... | Python | MIT License | spesmilo/electrum | qt send tab: try to make it clearer the sender pays the fee
related: https://github.com/spesmilo/electrum/issues/7488 |
630,870 | 08.09.2021 18:18:08 | -7,200 | 07bd2fe97db7f5b7a4aa94360753c1d336e9c4a8 | network.py: reorder bitcoin core error msg whitelist
test policy.cpp strings last as some of them are short and too generic
fixes | [
{
"change_type": "MODIFY",
"old_path": "electrum/network.py",
"new_path": "electrum/network.py",
"diff": "@@ -907,27 +907,7 @@ class Network(Logger, NetworkRetryManager[ServerAddr]):\n# server_msg is untrusted input so it should not be shown to the user. see #4968\nserver_msg = str(server_msg)\nserv... | Python | MIT License | spesmilo/electrum | network.py: reorder bitcoin core error msg whitelist
test policy.cpp strings last as some of them are short and too generic
fixes https://github.com/spesmilo/electrum/issues/7483 |
630,945 | 09.09.2021 20:36:19 | -19,080 | 3a583885d9cb5f416aaa144f453d0b8c69f3f903 | Add network setup option when Kivy GUI starts for the First time.
Offer a first-start network setup screen when using the kivy GUI,
similar to what is already done in Qt. | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/main.kv",
"new_path": "electrum/gui/kivy/main.kv",
"diff": "Clock.schedule_once(lambda dt: app.popup_dialog(self.name), 0.05)\nself.state = 'normal'\n+<NetworkDialog@BoxLayout>\n+ orientation: 'vertical'\n+ ScrollView:\n+ GridLayout:\n+ id: s... | Python | MIT License | spesmilo/electrum | Add network setup option when Kivy GUI starts for the First time. (#7464)
Offer a first-start network setup screen when using the kivy GUI,
similar to what is already done in Qt. |
630,870 | 09.09.2021 17:13:30 | -7,200 | 67f14cdfa899970ad69fa27b88662df498ef4d73 | follow-up prev: some clean-up and added clarifications
re | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/main_window.py",
"new_path": "electrum/gui/kivy/main_window.py",
"diff": "@@ -123,22 +123,26 @@ class ElectrumWindow(App, Logger):\nauto_connect = BooleanProperty(False)\ndef on_auto_connect(self, instance, x):\n+ if not self._init_finished:\... | Python | MIT License | spesmilo/electrum | follow-up prev: some clean-up and added clarifications
re https://github.com/spesmilo/electrum/pull/7464 |
630,870 | 09.09.2021 17:40:21 | -7,200 | bf6400ae30453306c4e8889647d92ddd2bc1d090 | kivy: fix when running with --offline | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/main.kv",
"new_path": "electrum/gui/kivy/main.kv",
"diff": "@@ -530,6 +530,7 @@ BoxLayout:\nActionOvrButton:\nname: 'network'\ntext: _('Network')\n+ disabled: app.network is None\nActionOvrButton:\nname: 'addresses_dialog'\ntext: _('Addresses... | Python | MIT License | spesmilo/electrum | kivy: fix when running with --offline |
630,985 | 09.09.2021 22:32:51 | 10,800 | 397e43373ffd2203ff5728e801178998b986d652 | Removes inaccurate "brasilian" language
The option "brasilian" is inaccurate since we brazilians do speak Portuguese.
We don't consider "brasilian" as a language, so I believe this change I've made is a more accurate option for this public. | [
{
"change_type": "MODIFY",
"old_path": "electrum/i18n.py",
"new_path": "electrum/i18n.py",
"diff": "@@ -69,7 +69,7 @@ languages = {\n'nb_NO': _('Norwegian Bokmal'),\n'nl_NL': _('Dutch'),\n'pl_PL': _('Polish'),\n- 'pt_BR': _('Brasilian'),\n+ 'pt_BR': _('Portuguese (Brazil)'),\n'pt_PT': _('Portuguese'... | Python | MIT License | spesmilo/electrum | Removes inaccurate "brasilian" language
The option "brasilian" is inaccurate since we brazilians do speak Portuguese.
We don't consider "brasilian" as a language, so I believe this change I've made is a more accurate option for this public. |
631,034 | 10.09.2021 18:19:06 | 18,000 | 90e906aba23a27fe4e62bf6556633b21bee3be23 | Update new password prompt
No longer prompts for new password if --new_password parameter is used | [
{
"change_type": "MODIFY",
"old_path": "run_electrum",
"new_path": "run_electrum",
"diff": "@@ -166,7 +166,7 @@ def init_cmdline(config_options, wallet_path, server, *, config: 'SimpleConfig')\nconfig_options['password'] = config_options.get('password') or password\n- if cmd.name == 'password':\n+ i... | Python | MIT License | spesmilo/electrum | Update new password prompt (#7495)
No longer prompts for new password if --new_password parameter is used |
630,870 | 13.09.2021 19:51:56 | -7,200 | 03547ac1824e44eaa7ec9ba155a1012cb6a3af3a | ci: fix coveralls for cirrus ci | [
{
"change_type": "MODIFY",
"old_path": ".cirrus.yml",
"new_path": ".cirrus.yml",
"diff": "@@ -49,6 +49,13 @@ task:\n- coveralls\nenv:\nELECTRUM_REQUIREMENTS: contrib/requirements/requirements-travis.txt\n+ # following CI_* env vars are set up for coveralls\n+ CI_NAME: \"CirrusCI\"\n+ CI_BUILD_NUMBER... | Python | MIT License | spesmilo/electrum | ci: fix coveralls for cirrus ci |
630,870 | 13.09.2021 20:01:26 | -7,200 | f5d1d6f97e8cfac89cb1afaeb4bd836355fbf01b | readme: update CI badge from travis to cirrus ci | [
{
"change_type": "MODIFY",
"old_path": "README.rst",
"new_path": "README.rst",
"diff": "@@ -9,8 +9,8 @@ Electrum - Lightweight Bitcoin client\nHomepage: https://electrum.org/\n-.. image:: https://travis-ci.org/spesmilo/electrum.svg?branch=master\n- :target: https://travis-ci.org/spesmilo/electrum\n+... | Python | MIT License | spesmilo/electrum | readme: update CI badge from travis to cirrus ci |
630,870 | 13.09.2021 20:22:29 | -7,200 | 8ef2052a622a02e293fbc7808faba7dab94eedd4 | ci: coveralls: try to aggregate tasks/jobs into builds
see
see | [
{
"change_type": "MODIFY",
"old_path": ".cirrus.yml",
"new_path": ".cirrus.yml",
"diff": "@@ -51,7 +51,8 @@ task:\nELECTRUM_REQUIREMENTS: contrib/requirements/requirements-travis.txt\n# following CI_* env vars are set up for coveralls\nCI_NAME: \"CirrusCI\"\n- CI_BUILD_NUMBER: $CIRRUS_TASK_ID\n+ CI_... | Python | MIT License | spesmilo/electrum | ci: coveralls: try to aggregate tasks/jobs into builds
see https://github.com/lemurheavy/coveralls-public/issues/1558
see https://github.com/cirruslabs/cirrus-ci-docs/issues/118#issuecomment-717680614 |
630,870 | 14.09.2021 20:10:32 | -7,200 | 70d901b544eed19440063fa73caed6cb7eb1ba5b | cirrus ci: push_locale: make sure gettext is installed | [
{
"change_type": "MODIFY",
"old_path": ".cirrus.yml",
"new_path": ".cirrus.yml",
"diff": "@@ -73,7 +73,7 @@ task:\npopulate_script: mkdir -p /tmp/electrum-build\ninstall_script:\n- apt-get update\n- - apt-get -y install libsecp256k1-0\n+ - apt-get -y install libsecp256k1-0 gettext\n- pip install -r ... | Python | MIT License | spesmilo/electrum | cirrus ci: push_locale: make sure gettext is installed |
630,945 | 15.09.2021 19:53:15 | -19,080 | 65c3a892cf591661704fdccec5ab56fb152c16c6 | Multiple max spends functionality added
this implements | [
{
"change_type": "MODIFY",
"old_path": "electrum/commands.py",
"new_path": "electrum/commands.py",
"diff": "@@ -41,7 +41,7 @@ from typing import Optional, TYPE_CHECKING, Dict, List\nfrom .import util, ecc\nfrom .util import (bfh, bh2u, format_satoshis, json_decode, json_normalize,\n- is_hash256_str,... | Python | MIT License | spesmilo/electrum | Multiple max spends functionality added (#7492)
this implements https://github.com/spesmilo/electrum/issues/7054 |
630,870 | 15.09.2021 16:23:47 | -7,200 | acbb3632409cfcd8cb02b2effbeda8f1ab0faac7 | follow-up prev: some clean-ups
re | [
{
"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 | follow-up prev: some clean-ups
re https://github.com/spesmilo/electrum/pull/7492 |
630,870 | 15.09.2021 16:32:14 | -7,200 | 85780eea1a32429fe513f5bdc03ac8cca207d1fd | multiple max spends: add unit test
re | [
{
"change_type": "MODIFY",
"old_path": "electrum/tests/test_commands.py",
"new_path": "electrum/tests/test_commands.py",
"diff": "@@ -248,6 +248,34 @@ class TestCommandsTestnet(TestCaseForTestnet):\nself.assertEqual(\"02000000000101a0a8800d2d6bb0a4a8b93b793f39439c4139a40d30e634cf5cd601e5391de6ed0100... | Python | MIT License | spesmilo/electrum | multiple max spends: add unit test
re https://github.com/spesmilo/electrum/pull/7492 |
630,991 | 15.09.2021 20:50:24 | -19,080 | 679bd21bac772f34806ec4883a4cb83be5f6a5ee | Added CPFP Feature for Kivy GUI
implements | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "electrum/gui/kivy/uix/dialogs/cpfp_dialog.py",
"diff": "+from typing import TYPE_CHECKING, Optional\n+\n+from kivy.app import App\n+from kivy.factory import Factory\n+from kivy.properties import ObjectProperty\n+from kivy.lang import Builder\n+\... | Python | MIT License | spesmilo/electrum | Added CPFP Feature for Kivy GUI (#7487)
implements https://github.com/spesmilo/electrum/issues/5507 |
630,870 | 15.09.2021 17:37:22 | -7,200 | 3f69e5ae3e1c834f2a5b4abb20dd3822a619a262 | qt cpfp: (trivial) make some strings translatable
gettext was not picking these up | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/main_window.py",
"new_path": "electrum/gui/qt/main_window.py",
"diff": "@@ -3306,17 +3306,17 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nreturn\nd = WindowModalDialog(self, _('Child Pays for Parent'))\nvbox = QVBoxLayout(d)\... | Python | MIT License | spesmilo/electrum | qt cpfp: (trivial) make some strings translatable
gettext was not picking these up |
630,870 | 15.09.2021 17:50:01 | -7,200 | fb6beb3e5c58fe9608f09ad08b7cadbffcd0bf49 | ci: remove Travis CI integration
we are now using Cirrus CI | [
{
"change_type": "DELETE",
"old_path": ".travis.yml",
"new_path": null,
"diff": "-dist: bionic\n-language: python\n-python:\n- - 3.6\n- - 3.7\n- - 3.8\n-git:\n- depth: false\n-before_install:\n- - git tag\n-install:\n- - sudo apt-get -y install libsecp256k1-0\n- - pip install -r contrib/requirements... | Python | MIT License | spesmilo/electrum | ci: remove Travis CI integration
we are now using Cirrus CI |
630,870 | 15.09.2021 19:45:06 | -7,200 | 22bb52d5df00165b92d108e16ebd41083b045fc0 | kivy: locale: also translate strings in core lib | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/i18n.py",
"new_path": "electrum/gui/kivy/i18n.py",
"diff": "@@ -35,8 +35,8 @@ class _(str):\n@staticmethod\ndef switch_lang(lang):\n- # get the right locales directory, and instanciate a gettext\n- from electrum.i18n import LOCALE_DIR\n+ # ge... | Python | MIT License | spesmilo/electrum | kivy: locale: also translate strings in core lib |
630,870 | 15.09.2021 19:51:10 | -7,200 | 7cb11ceda4d0191ca3e91be22812d967f46b85ec | kivy: locale: set default language based to OS lang
On Android, the default language is now set to the language of the OS,
instead of English.
related
related | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/main_window.py",
"new_path": "electrum/gui/kivy/main_window.py",
"diff": "@@ -28,6 +28,7 @@ from electrum.bitcoin import COIN\nfrom electrum.gui import messages\nfrom .i18n import _\n+from .util import get_default_language\nfrom . import KIVY... | Python | MIT License | spesmilo/electrum | kivy: locale: set default language based to OS lang
On Android, the default language is now set to the language of the OS,
instead of English.
related https://github.com/spesmilo/electrum/issues/4618
related https://github.com/spesmilo/electrum/issues/7494 |
630,870 | 15.09.2021 19:52:40 | -7,200 | 4293d6eca034a2d2aa6c391b8e6d03c49e3772bc | kivy: settings: better handling of "default" language | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/uix/dialogs/settings.py",
"new_path": "electrum/gui/kivy/uix/dialogs/settings.py",
"diff": "+from typing import TYPE_CHECKING\n+\nfrom kivy.app import App\nfrom kivy.factory import Factory\nfrom kivy.properties import ObjectProperty\n@@ -14,6... | Python | MIT License | spesmilo/electrum | kivy: settings: better handling of "default" language |
630,870 | 16.09.2021 09:13:44 | -7,200 | be084dd44b76d790592e49413b50e9b34d757086 | qt wallet info: make labels selectable | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/main_window.py",
"new_path": "electrum/gui/qt/main_window.py",
"diff": "@@ -2461,24 +2461,24 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nkeystore_types = [k.get_type_text() for k in self.wallet.get_keystores()]\ngrid = QGrid... | Python | MIT License | spesmilo/electrum | qt wallet info: make labels selectable |
630,870 | 19.09.2021 17:25:57 | -7,200 | 0b05edc7051f41af8e77d2166a382e202fd633ad | wallet payreqs: trivial clean-up | [
{
"change_type": "MODIFY",
"old_path": "electrum/transaction.py",
"new_path": "electrum/transaction.py",
"diff": "@@ -145,7 +145,7 @@ class TxOutput:\nreturn cls.from_address_and_value(addr, val)\nif _type == TYPE_SCRIPT:\nreturn cls(scriptpubkey=bfh(addr), value=val)\n- raise Exception(f\"unexptect... | Python | MIT License | spesmilo/electrum | wallet payreqs: trivial clean-up |
630,870 | 19.09.2021 17:32:25 | -7,200 | b7cdf3fe11935d3e51158bee043421a2a16b3c82 | wallet_db upgrades: (trivial) make upgrades more standalone
and robust to code changes | [
{
"change_type": "MODIFY",
"old_path": "electrum/wallet_db.py",
"new_path": "electrum/wallet_db.py",
"diff": "@@ -33,7 +33,7 @@ import binascii\nfrom . import util, bitcoin\nfrom .util import profiler, WalletFileException, multisig_type, TxMinedInfo, bfh\n-from .invoices import PR_TYPE_ONCHAIN, Invo... | Python | MIT License | spesmilo/electrum | wallet_db upgrades: (trivial) make upgrades more standalone
and robust to code changes |
630,870 | 19.09.2021 17:35:49 | -7,200 | 11881874310c7ff9f345e6b022c8063a4589813a | wallet_db upgrade: in OnchainInvoice['outputs'], convert vals None->0
should fix | [
{
"change_type": "MODIFY",
"old_path": "electrum/wallet_db.py",
"new_path": "electrum/wallet_db.py",
"diff": "@@ -53,7 +53,7 @@ if TYPE_CHECKING:\nOLD_SEED_VERSION = 4 # electrum versions < 2.0\nNEW_SEED_VERSION = 11 # electrum versions >= 2.0\n-FINAL_SEED_VERSION = 41 # electrum >= 2.7 will set thi... | Python | MIT License | spesmilo/electrum | wallet_db upgrade: in OnchainInvoice['outputs'], convert vals None->0
should fix https://github.com/spesmilo/electrum/issues/7500 |
630,969 | 20.09.2021 11:57:12 | -7,200 | 7a0904c0f4c13c094856338de0f24b74a0336ff9 | wallet update: move fields that have string keys out of channel log | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnchannel.py",
"new_path": "electrum/lnchannel.py",
"diff": "@@ -563,6 +563,8 @@ class Channel(AbstractChannel):\nself.onion_keys = state['onion_keys'] # type: Dict[int, bytes]\nself.data_loss_protect_remote_pcp = state['data_loss_protect_remote_pcp']... | Python | MIT License | spesmilo/electrum | wallet update: move fields that have string keys out of channel log |
630,969 | 20.09.2021 11:26:56 | -7,200 | eadd1bebb2e4ed2f2bb61b208f4cae78d5049bcb | Do not convert StoredDict keys to str.
Instead, convert json keys to int when storage is read. | [
{
"change_type": "MODIFY",
"old_path": "electrum/json_db.py",
"new_path": "electrum/json_db.py",
"diff": "@@ -78,16 +78,8 @@ class StoredDict(dict):\nfor k, v in list(data.items()):\nself.__setitem__(k, v)\n- def convert_key(self, key):\n- \"\"\"Convert int keys to str keys, as only those are allowe... | Python | MIT License | spesmilo/electrum | Do not convert StoredDict keys to str.
Instead, convert json keys to int when storage is read. |
630,870 | 08.09.2021 18:52:24 | -7,200 | 5d0aa63adbcd5483ad82de24b4c17698b10d687d | appimage build: change base to ubuntu 18.04
ubuntu 16.04 is EOL | [
{
"change_type": "MODIFY",
"old_path": "contrib/build-linux/appimage/Dockerfile",
"new_path": "contrib/build-linux/appimage/Dockerfile",
"diff": "# Note: we deliberately use an old Ubuntu LTS as base image.\n# from https://docs.appimage.org/introduction/concepts.html :\n# \"[AppImages] should be bui... | Python | MIT License | spesmilo/electrum | appimage build: change base to ubuntu 18.04
ubuntu 16.04 is EOL |
630,870 | 08.09.2021 19:18:19 | -7,200 | fb3ce438d65b07bb564f7832b4efa8a0277cb863 | appimage build: bump python 3.7.10->3.8.12 | [
{
"change_type": "MODIFY",
"old_path": "contrib/build-linux/appimage/apprun.sh",
"new_path": "contrib/build-linux/appimage/apprun.sh",
"diff": "@@ -8,4 +8,4 @@ export LD_LIBRARY_PATH=\"${APPDIR}/usr/lib/:${APPDIR}/usr/lib/x86_64-linux-gnu${L\nexport PATH=\"${APPDIR}/usr/bin:${PATH}\"\nexport LDFLAGS... | Python | MIT License | spesmilo/electrum | appimage build: bump python 3.7.10->3.8.12 |
630,870 | 20.09.2021 17:09:45 | -7,200 | 11146d352f6a57cd8921bb70c219a5f06603d77e | appimage build: bump python 3.8.12->3.9.7 | [
{
"change_type": "MODIFY",
"old_path": "contrib/build-linux/appimage/apprun.sh",
"new_path": "contrib/build-linux/appimage/apprun.sh",
"diff": "@@ -8,4 +8,4 @@ export LD_LIBRARY_PATH=\"${APPDIR}/usr/lib/:${APPDIR}/usr/lib/x86_64-linux-gnu${L\nexport PATH=\"${APPDIR}/usr/bin:${PATH}\"\nexport LDFLAGS... | Python | MIT License | spesmilo/electrum | appimage build: bump python 3.8.12->3.9.7 |
630,896 | 22.09.2021 10:59:33 | -7,200 | 8913abdf9a05d2fe3397a28d08f5f16394e70f7c | python3.9: sample from list instead of set
electrum/electrum/channel_db.py:357: DeprecationWarning: Sampling from a
set deprecated since Python 3.9 and will be removed in a subsequent version. | [
{
"change_type": "MODIFY",
"old_path": "electrum/channel_db.py",
"new_path": "electrum/channel_db.py",
"diff": "@@ -354,7 +354,7 @@ class ChannelDB(SqlDB):\ndef get_200_randomly_sorted_nodes_not_in(self, node_ids):\nwith self.lock:\nunshuffled = set(self._nodes.keys()) - node_ids\n- return random.sa... | Python | MIT License | spesmilo/electrum | python3.9: sample from list instead of set
electrum/electrum/channel_db.py:357: DeprecationWarning: Sampling from a
set deprecated since Python 3.9 and will be removed in a subsequent version. |
630,969 | 26.09.2021 12:18:25 | -7,200 | baff4fa6259372b667042dae808123bfcb0f0964 | save_backup: do not remove deterministic LN key (see | [
{
"change_type": "MODIFY",
"old_path": "electrum/tests/regtest/regtest.sh",
"new_path": "electrum/tests/regtest/regtest.sh",
"diff": "@@ -150,7 +150,9 @@ if [[ $1 == \"backup\" ]]; then\n$alice daemon -d\n$alice load_wallet\n$alice import_channel_backup $backup\n+ echo \"request force close $channel... | Python | MIT License | spesmilo/electrum | save_backup: do not remove deterministic LN key (see #7513) |
630,896 | 27.09.2021 10:31:44 | -7,200 | ff61020dd2c9064c1cacc54e74a153e6e6a089cf | watchtower: watch new channels | [
{
"change_type": "MODIFY",
"old_path": "electrum/daemon.py",
"new_path": "electrum/daemon.py",
"diff": "@@ -306,7 +306,7 @@ class WatchTowerServer(AuthenticatedServer):\nawait site.start()\nasync def get_ctn(self, *args):\n- return await self.lnwatcher.sweepstore.get_ctn(*args)\n+ return await self.... | Python | MIT License | spesmilo/electrum | watchtower: watch new channels |
630,870 | 28.09.2021 16:30:41 | -7,200 | b9295eda097c24ee08d1d53f314372ef4144da23 | ci: only run coveralls script if ENV var is set (for token)
As the token is typically not available for pull requests. | [
{
"change_type": "MODIFY",
"old_path": ".cirrus.yml",
"new_path": ".cirrus.yml",
"diff": "@@ -46,7 +46,7 @@ task:\ntox_script:\n- tox\ncoveralls_script:\n- - coveralls\n+ - if [ ! -z \"$COVERALLS_REPO_TOKEN\" ] ; then coveralls ; fi\nenv:\nELECTRUM_REQUIREMENTS: contrib/requirements/requirements-tra... | Python | MIT License | spesmilo/electrum | ci: only run coveralls script if ENV var is set (for token)
As the token is typically not available for pull requests. |
630,870 | 24.09.2021 19:58:32 | -7,200 | 4af103378a5da23936ebd9cd119448096b9dabab | lnpeer: refactor some checks re open_channel/accept_channel | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnpeer.py",
"new_path": "electrum/lnpeer.py",
"diff": "@@ -33,7 +33,7 @@ from .lnonion import (new_onion_packet, OnionFailureCode, calc_hops_data_for_pay\nOnionFailureCodeMetaFlag)\nfrom .lnchannel import Channel, RevokeAndAck, RemoteCtnTooFarInFuture... | Python | MIT License | spesmilo/electrum | lnpeer: refactor some checks re open_channel/accept_channel |
630,870 | 24.09.2021 20:13:58 | -7,200 | 1ff9f9910f1a8d17ebba04439c1fcaf1476b3e8f | ln update_fee: enforce that feerate is over default min relay fee
(this was always already the case when we are the funder, but we were
not checking it when remote is responsible for update_fee) | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnchannel.py",
"new_path": "electrum/lnchannel.py",
"diff": "@@ -61,6 +61,7 @@ from .address_synchronizer import TX_HEIGHT_LOCAL\nfrom .lnutil import CHANNEL_OPENING_TIMEOUT\nfrom .lnutil import ChannelBackupStorage, ImportedChannelBackupStorage, Onch... | Python | MIT License | spesmilo/electrum | ln update_fee: enforce that feerate is over default min relay fee
(this was always already the case when we are the funder, but we were
not checking it when remote is responsible for update_fee) |
630,870 | 25.10.2021 17:46:51 | -7,200 | 5c91212fabe1e4c674acbf0ff84fb2ef4674e86d | dns hacks: dns via proxy: special-case "localhost" string
fix | [
{
"change_type": "MODIFY",
"old_path": "electrum/dns_hacks.py",
"new_path": "electrum/dns_hacks.py",
"diff": "@@ -26,7 +26,11 @@ def configure_dns_depending_on_proxy(is_proxy: bool) -> None:\nsocket._getaddrinfo = socket.getaddrinfo\nif is_proxy:\n# prevent dns leaks, see http://stackoverflow.com/qu... | Python | MIT License | spesmilo/electrum | dns hacks: dns via proxy: special-case "localhost" string
fix https://github.com/spesmilo/electrum/issues/7546 |
630,896 | 22.10.2021 11:59:44 | -7,200 | f2f8c4533bd817775adc0526684d2ea605979785 | implement option_shutdown_anysegwit
We check the received shutdown script against higher segwit versions and
accept closing to that script if option_shutdown_anysegwit has been
negotiated. | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnpeer.py",
"new_path": "electrum/lnpeer.py",
"diff": "@@ -495,6 +495,9 @@ class Peer(Logger):\nself.lnworker.peer_closed(self)\nself.got_disconnected.set()\n+ def is_shutdown_anysegwit(self):\n+ return self.features.supports(LnFeatures.OPTION_SHUTDOW... | Python | MIT License | spesmilo/electrum | implement option_shutdown_anysegwit
https://github.com/lightningnetwork/lightning-rfc/pull/672
We check the received shutdown script against higher segwit versions and
accept closing to that script if option_shutdown_anysegwit has been
negotiated. |
630,896 | 22.10.2021 12:58:04 | -7,200 | 947693c90d6579ca52281ea7228a91fd59a81c81 | check dust limits
* on channel opening we verify that the peer's dust limit is above 354
sat, the limit for unknown segwit versions
* we constrain the allowed scriptpubkey types for channel closing
* we check that the remote's output is above the relay dust limit for
the collaborative close case | [
{
"change_type": "MODIFY",
"old_path": "electrum/bitcoin.py",
"new_path": "electrum/bitcoin.py",
"diff": "@@ -349,8 +349,12 @@ def relayfee(network: 'Network' = None) -> int:\n# see https://github.com/bitcoin/bitcoin/blob/a62f0ed64f8bbbdfe6467ac5ce92ef5b5222d1bd/src/policy/policy.cpp#L14\n-DUST_LIMI... | Python | MIT License | spesmilo/electrum | check dust limits
* on channel opening we verify that the peer's dust limit is above 354
sat, the limit for unknown segwit versions
* we constrain the allowed scriptpubkey types for channel closing
* we check that the remote's output is above the relay dust limit for
the collaborative close case |
630,896 | 22.10.2021 13:02:59 | -7,200 | e97f35059781b9bc087f672eb8f721b5712761dc | add comment for safer forwarding | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnpeer.py",
"new_path": "electrum/lnpeer.py",
"diff": "@@ -1346,6 +1346,8 @@ class Peer(Logger):\n# - for example; atm we forward first and then persist \"forwarding_info\",\n# so if we segfault in-between and restart, we might forward an HTLC twice..... | Python | MIT License | spesmilo/electrum | add comment for safer forwarding |
630,870 | 01.11.2021 18:05:33 | -3,600 | d67e24438e648e431533a2d4a395c0ac87d1ea30 | lnsweep: rm code dupe: 2nd stage htlc tx out vs ctx to_local addr reuse | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnsweep.py",
"new_path": "electrum/lnsweep.py",
"diff": "@@ -61,7 +61,7 @@ def create_sweeptxs_for_watchtower(chan: 'Channel', ctx: Transaction, per_commit\nsweep_address=sweep_address,\nctx=ctx,\noutput_idx=output_idx,\n- witness_script=witness_scrip... | Python | MIT License | spesmilo/electrum | lnsweep: rm code dupe: 2nd stage htlc tx out vs ctx to_local addr reuse |
630,870 | 02.11.2021 17:45:43 | -3,600 | f01ca726e482a38f3af47e669b02651d85519570 | mac build: bump python 3.7.9->3.9.7 | [
{
"change_type": "MODIFY",
"old_path": "contrib/osx/make_osx",
"new_path": "contrib/osx/make_osx",
"diff": "set -e\n# Parameterize\n-PYTHON_VERSION=3.7.9\n+PYTHON_VERSION=3.9.7\nBUILDDIR=/tmp/electrum-build\nPACKAGE=Electrum\nGIT_REPO=https://github.com/spesmilo/electrum\n@@ -72,7 +72,7 @@ PKG_FILE=... | Python | MIT License | spesmilo/electrum | mac build: bump python 3.7.9->3.9.7 |
630,870 | 02.11.2021 18:03:06 | -3,600 | 7409a328794541bba110db769a9ff0b5daf48522 | win build: bump python 3.8.8->3.9.7 | [
{
"change_type": "MODIFY",
"old_path": "contrib/build-wine/prepare-wine.sh",
"new_path": "contrib/build-wine/prepare-wine.sh",
"diff": "@@ -9,7 +9,7 @@ PYINSTALLER_REPO=\"https://github.com/SomberNight/pyinstaller.git\"\nPYINSTALLER_COMMIT=\"80ee4d613ecf75a1226b960a560ee01459e65ddb\"\n# ^ tag 4.2, p... | Python | MIT License | spesmilo/electrum | win build: bump python 3.8.8->3.9.7 |
630,870 | 02.11.2021 18:10:17 | -3,600 | 7d5c5b75a1c518f33732b0a109a8f280eea8f359 | android build: bump python 3.8.8->3.8.12 | [
{
"change_type": "MODIFY",
"old_path": "contrib/android/p4a_recipes/hostpython3/__init__.py",
"new_path": "contrib/android/p4a_recipes/hostpython3/__init__.py",
"diff": "@@ -11,8 +11,8 @@ assert HostPython3Recipe.python_depends == []\nclass HostPython3RecipePinned(util.InheritedRecipeMixin, HostPyth... | Python | MIT License | spesmilo/electrum | android build: bump python 3.8.8->3.8.12 |
630,870 | 02.11.2021 18:30:24 | -3,600 | 2b4bf19c0629971a5989d338daa600e2d11241a8 | win build: update some build dependencies | [
{
"change_type": "MODIFY",
"old_path": "contrib/build-wine/Dockerfile",
"new_path": "contrib/build-wine/Dockerfile",
"diff": "@@ -45,10 +45,10 @@ RUN wget -nc https://dl.winehq.org/wine-builds/Release.key && \\\napt-add-repository https://dl.winehq.org/wine-builds/ubuntu/ && \\\napt-get update -q &&... | Python | MIT License | spesmilo/electrum | win build: update some build dependencies |
630,870 | 03.11.2021 03:16:38 | -3,600 | f066f25a30cf48447950171c404e0e52fb668347 | win build: revert pyinstaller upgrade
Various issues with newer versions... needs more investigation.
This reverts part of | [
{
"change_type": "MODIFY",
"old_path": "contrib/build-wine/prepare-wine.sh",
"new_path": "contrib/build-wine/prepare-wine.sh",
"diff": "@@ -5,9 +5,9 @@ NSIS_FILENAME=nsis-3.08-setup.exe\nNSIS_URL=https://downloads.sourceforge.net/project/nsis/NSIS%203/3.08/$NSIS_FILENAME\nNSIS_SHA256=bbc76be36ecb2fc... | Python | MIT License | spesmilo/electrum | win build: revert pyinstaller upgrade
Various issues with newer versions... needs more investigation.
This reverts part of https://github.com/spesmilo/electrum/commit/2b4bf19c0629971a5989d338daa600e2d11241a8 |
631,030 | 25.10.2021 12:00:00 | 0 | b1005694ec223ccfdb49e4800817277ec0acc1ed | cli: Add support for Unix domain sockets | [
{
"change_type": "MODIFY",
"old_path": "electrum/commands.py",
"new_path": "electrum/commands.py",
"diff": "@@ -1475,6 +1475,8 @@ def get_parser():\n# daemon\nparser_daemon = subparsers.add_parser('daemon', help=\"Run Daemon\")\nparser_daemon.add_argument(\"-d\", \"--detached\", action=\"store_true\... | Python | MIT License | spesmilo/electrum | cli: Add support for Unix domain sockets |
631,030 | 25.10.2021 12:00:00 | 0 | 82b9cd12ebcd5be61b00469cc1d26bc3f21f3252 | tests: Add rudimentary integration test for Unix domain socket functionality | [
{
"change_type": "MODIFY",
"old_path": "electrum/tests/regtest.py",
"new_path": "electrum/tests/regtest.py",
"diff": "@@ -34,6 +34,13 @@ class TestLightning(unittest.TestCase):\nself.run_shell(['stop', agent])\n+class TestUnixSockets(TestLightning):\n+ agents = []\n+\n+ def test_unixsockets(self):\n... | Python | MIT License | spesmilo/electrum | tests: Add rudimentary integration test for Unix domain socket functionality |
630,870 | 04.11.2021 16:32:40 | -3,600 | 16c66558924f9fdf188f8fe03008d3440014d4a7 | lnpeer: make forwarding partly event-driven | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnpeer.py",
"new_path": "electrum/lnpeer.py",
"diff": "@@ -14,7 +14,7 @@ from datetime import datetime\nimport functools\nimport aiorpcx\n-from aiorpcx import TaskGroup\n+from aiorpcx import TaskGroup, ignore_after\nfrom .crypto import sha256, sha256d... | Python | MIT License | spesmilo/electrum | lnpeer: make forwarding partly event-driven |
630,870 | 04.11.2021 16:41:23 | -3,600 | 4f907e388915495b7647e8f523c867b7646a279a | lnworker: change api of 'htlc_{fulfilled,failed}' events | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/channel_details.py",
"new_path": "electrum/gui/qt/channel_details.py",
"diff": "@@ -83,8 +83,8 @@ class ChannelDetailsDialog(QtWidgets.QDialog, MessageBoxMixin):\ndest_mapping = self.keyname_rows[to]\ndest_mapping[payment_hash] = len(dest_mappi... | Python | MIT License | spesmilo/electrum | lnworker: change api of 'htlc_{fulfilled,failed}' events |
630,870 | 04.11.2021 18:04:16 | -3,600 | 12f3525df04fa3afc19b4601952c16598237631b | lnpeer: disable msg processing rate-limiting in tests | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnpeer.py",
"new_path": "electrum/lnpeer.py",
"diff": "@@ -69,6 +69,8 @@ class Peer(Logger):\nSPAMMY_MESSAGES = (\n'ping', 'pong', 'channel_announcement', 'node_announcement', 'channel_update',)\n+ DELAY_INC_MSG_PROCESSING_SLEEP = 0.01\n+\ndef __init_... | Python | MIT License | spesmilo/electrum | lnpeer: disable msg processing rate-limiting in tests |
630,870 | 04.11.2021 19:16:02 | -3,600 | 56b03e2e8d6923c4d396c1272d3fafed57919a8f | lnpeer: more forwarding is now event-driven
This should make unit tests less reliant on sleeps. | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnpeer.py",
"new_path": "electrum/lnpeer.py",
"diff": "@@ -112,6 +112,7 @@ class Peer(Logger):\nself._htlc_switch_iterstart_event = asyncio.Event()\nself._htlc_switch_iterdone_event = asyncio.Event()\nself._received_revack_event = asyncio.Event()\n+ s... | Python | MIT License | spesmilo/electrum | lnpeer: more forwarding is now event-driven
This should make unit tests less reliant on sleeps. |
630,870 | 05.11.2021 17:24:03 | -3,600 | 3643b9f0560dcdc06e3f656af38e535deee99678 | daemon: rework stopping
The CLI stop() command can now also stop the GUI. | [
{
"change_type": "MODIFY",
"old_path": "electrum/commands.py",
"new_path": "electrum/commands.py",
"diff": "@@ -217,7 +217,6 @@ class Commands:\n@command('n')\nasync def stop(self):\n\"\"\"Stop daemon\"\"\"\n- # TODO it would be nice if this could stop the GUI too\nawait self.daemon.stop()\nreturn \... | Python | MIT License | spesmilo/electrum | daemon: rework stopping
The CLI stop() command can now also stop the GUI. |
630,870 | 05.11.2021 18:33:03 | -3,600 | e0246b30b9e4c5702f6fd48b4139e0a51d745af7 | daemon: if taskgroup dies, show error in GUI
If daemon.taskgroup dies
in GUI mode, show a crash reporter window to the user,
instead of immediately stopping the whole process.
in daemon mode, log exception and stop process, as before. | [
{
"change_type": "MODIFY",
"old_path": "electrum/daemon.py",
"new_path": "electrum/daemon.py",
"diff": "@@ -487,7 +487,10 @@ class Daemon(Logger):\nif self.config.get('use_gossip', False):\nself.network.start_gossip()\n- self._stopping_soon = threading.Event()\n+ self.exception = None # type: Option... | Python | MIT License | spesmilo/electrum | daemon: if taskgroup dies, show error in GUI
If daemon.taskgroup dies
- in GUI mode, show a crash reporter window to the user,
instead of immediately stopping the whole process.
- in daemon mode, log exception and stop process, as before. |
630,870 | 05.11.2021 19:55:22 | -3,600 | c331c311db4b41cd5400e5032605af75e2a84df7 | crash reporter: add EarlyExceptionsQueue
`util.send_exception_to_crash_reporter` is now useful and can be transparently
used even before the exception hook is set up. | [
{
"change_type": "MODIFY",
"old_path": "electrum/base_crash_reporter.py",
"new_path": "electrum/base_crash_reporter.py",
"diff": "@@ -24,6 +24,7 @@ import json\nimport locale\nimport traceback\nimport sys\n+import queue\nfrom .version import ELECTRUM_VERSION\nfrom . import constants\n@@ -131,6 +132,... | Python | MIT License | spesmilo/electrum | crash reporter: add EarlyExceptionsQueue
`util.send_exception_to_crash_reporter` is now useful and can be transparently
used even before the exception hook is set up. |
630,870 | 05.11.2021 20:21:50 | -3,600 | ca9b48e2d6b5cd4a16892048b685b6548013bac2 | gui: add BaseElectrumGui base class for guis | [
{
"change_type": "MODIFY",
"old_path": "electrum/daemon.py",
"new_path": "electrum/daemon.py",
"diff": "@@ -441,7 +441,7 @@ class PayServer(Logger):\nclass Daemon(Logger):\nnetwork: Optional[Network]\n- gui_object: Optional[Union['gui.qt.ElectrumGui', 'gui.kivy.ElectrumGui']]\n+ gui_object: Optional... | Python | MIT License | spesmilo/electrum | gui: add BaseElectrumGui base class for guis |
630,870 | 05.11.2021 20:35:28 | -3,600 | ed0dd6eb228f5418bff6c10bc7d169ff33135030 | kivy: implement ElectrumGui.stop | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/__init__.py",
"new_path": "electrum/gui/kivy/__init__.py",
"diff": "@@ -69,3 +69,11 @@ class ElectrumGui(BaseElectrumGui, Logger):\ngui_object=self,\n)\nw.run()\n+\n+ def stop(self) -> None:\n+ from kivy.app import App\n+ from kivy.clock impo... | Python | MIT License | spesmilo/electrum | kivy: implement ElectrumGui.stop |
630,870 | 09.11.2021 01:02:57 | -3,600 | 88a1c1a618062db0ad49ba3b98d6e47e9e80d5d9 | python 3.10: fix some deprecation warnings and compat with 3.10 | [
{
"change_type": "MODIFY",
"old_path": "electrum/daemon.py",
"new_path": "electrum/daemon.py",
"diff": "@@ -607,7 +607,7 @@ class Daemon(Logger):\nself._stopped_event.set()\ndef run_gui(self, config, plugins):\n- threading.current_thread().setName('GUI')\n+ threading.current_thread().name = 'GUI'\ng... | Python | MIT License | spesmilo/electrum | python 3.10: fix some deprecation warnings and compat with 3.10 |
630,870 | 18.10.2021 13:38:38 | -7,200 | 2599010eed0682e8197c599fec777e70cb0463aa | interface: scripthash.get_history: fix tx order check
logic bug | [
{
"change_type": "MODIFY",
"old_path": "electrum/interface.py",
"new_path": "electrum/interface.py",
"diff": "@@ -959,7 +959,7 @@ class Interface(Logger):\nif height in (-1, 0):\nassert_dict_contains_field(tx_item, field_name='fee')\nassert_non_negative_integer(tx_item['fee'])\n- prev_height = - flo... | Python | MIT License | spesmilo/electrum | interface: scripthash.get_history: fix tx order check
logic bug |
630,870 | 13.11.2021 03:07:36 | -3,600 | ee10e8e4d305a369ff8e3b87507dd6d6f344cb9b | blockchain: bits_to_target: small clean-up
note: why is the first byte cut unconditionally? what if it's non-zero?
Maybe the intention of cutting the first two chars in the hex case intended to
cut a "0x" prefix?? But there was no such prefix with the given format string... | [
{
"change_type": "MODIFY",
"old_path": "electrum/blockchain.py",
"new_path": "electrum/blockchain.py",
"diff": "@@ -552,10 +552,11 @@ class Blockchain(Logger):\n@classmethod\ndef target_to_bits(cls, target: int) -> int:\n- c = (\"%064x\" % target)[2:]\n- while c[:2] == '00' and len(c) > 6:\n- c = c[... | Python | MIT License | spesmilo/electrum | blockchain: bits_to_target: small clean-up
note: why is the first byte cut unconditionally? what if it's non-zero?
Maybe the intention of cutting the first two chars in the hex case intended to
cut a "0x" prefix?? But there was no such prefix with the given format string... |
630,870 | 15.11.2021 16:57:40 | -3,600 | 2f2821f9ee7e0fbc807a7d10a7dcf785c4e86eec | qt tray tooltip: don't include wallet balance
closes | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/qt/main_window.py",
"new_path": "electrum/gui/qt/main_window.py",
"diff": "@@ -539,12 +539,16 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nself.logger.info(\"using default geometry\")\nself.setGeometry(100, 100, 840, 400)\n- def... | Python | MIT License | spesmilo/electrum | qt tray tooltip: don't include wallet balance
closes https://github.com/spesmilo/electrum/issues/5665 |
630,870 | 15.11.2021 17:43:34 | -3,600 | 62e1d8ed78635ca6566078583c11933581c0212b | daemon: (trivial) subservices log when they start listening | [
{
"change_type": "MODIFY",
"old_path": "electrum/daemon.py",
"new_path": "electrum/daemon.py",
"diff": "@@ -277,6 +277,7 @@ class CommandsServer(AuthenticatedServer):\nraise Exception(f\"impossible socktype ({self.socktype!r})\")\nos.write(self.fd, bytes(repr((self.socktype, addr, time.time())), 'ut... | Python | MIT License | spesmilo/electrum | daemon: (trivial) subservices log when they start listening |
630,870 | 17.11.2021 17:54:52 | -3,600 | 0df05dd914c823acae1828cad3b20bdeb13150e9 | qt preferences: always show cb for LN/"Create recoverable channels"
This makes it explicit that the option cannot be enabled if so (instead of hiding the checkbox). | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/uix/dialogs/settings.py",
"new_path": "electrum/gui/kivy/uix/dialogs/settings.py",
"diff": "@@ -136,7 +136,7 @@ class SettingsDialog(Factory.Popup):\nself.wallet = self.app.wallet\nself.use_encryption = self.wallet.has_password() if self.wall... | Python | MIT License | spesmilo/electrum | qt preferences: always show cb for LN/"Create recoverable channels"
This makes it explicit that the option cannot be enabled if so (instead of hiding the checkbox). |
630,969 | 19.12.2021 16:54:39 | -3,600 | 195b470d70fa2556d6a0e634c4786cb87c43cb72 | contrip/upload: do not fail sftp if directory already exists | [
{
"change_type": "MODIFY",
"old_path": "contrib/upload",
"new_path": "contrib/upload",
"diff": "@@ -25,9 +25,12 @@ else\nfi\n+# do not fail sftp if directory exists\n+# see https://stackoverflow.com/questions/51437924/bash-shell-sftp-check-if-directory-exists-before-creating\n+\nsftp -oBatchMode=no ... | Python | MIT License | spesmilo/electrum | contrip/upload: do not fail sftp if directory already exists |
630,969 | 19.12.2021 17:10:35 | -3,600 | bdbd59300fbd35b01605e66145458e5f396108e8 | Prepare scripts for aggregated signatures:
- fetch file signatures in contrib/add_cosigner.
- detect cosigners in make_download.
- format download page for aggregated signatures. | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "contrib/add_cosigner",
"diff": "+#!/usr/bin/python3\n+import re\n+import os\n+import sys\n+import importlib\n+\n+# load version.py; needlessly complicated alternative to \"imp.load_source\":\n+version_spec = importlib.util.spec_from_file_locatio... | Python | MIT License | spesmilo/electrum | Prepare scripts for aggregated signatures:
- fetch file signatures in contrib/add_cosigner.
- detect cosigners in make_download.
- format download page for aggregated signatures. |
630,896 | 16.07.2021 14:18:29 | -7,200 | e8c94cf5d799cf78537319ee6c1b938aa215a58b | tests: implement graph with flexible definitions | [
{
"change_type": "MODIFY",
"old_path": "electrum/tests/test_lnpeer.py",
"new_path": "electrum/tests/test_lnpeer.py",
"diff": "@@ -289,38 +289,62 @@ class PeerInTests(Peer):\nDELAY_INC_MSG_PROCESSING_SLEEP = 0 # disable rate-limiting\n-class SquareGraph(NamedTuple):\n- # A\n- # high fee / \\ low fee\... | Python | MIT License | spesmilo/electrum | tests: implement graph with flexible definitions |
630,896 | 20.07.2021 16:53:58 | -7,200 | 2d2b889312120766196f9c2824d992088f651b81 | lnpeer tests: add spp trampoline payment | [
{
"change_type": "MODIFY",
"old_path": "electrum/tests/test_lnpeer.py",
"new_path": "electrum/tests/test_lnpeer.py",
"diff": "@@ -931,6 +931,51 @@ class TestPeer(TestCaseForTestnet):\ngraph = self.prepare_chans_and_peers_in_graph(GRAPH_DEFINITIONS['square_graph'])\nself._run_mpp(graph, {'mpp_invoice... | Python | MIT License | spesmilo/electrum | lnpeer tests: add spp trampoline payment |
630,896 | 20.07.2021 16:55:03 | -7,200 | 58dd8996fb18094f7e3f6ce784a7c03124a68721 | trampoline: use trampoline policy for intermediate forwarders | [
{
"change_type": "MODIFY",
"old_path": "electrum/trampoline.py",
"new_path": "electrum/trampoline.py",
"diff": "@@ -186,15 +186,21 @@ def create_trampoline_route(\nroute[-1].outgoing_node_id = invoice_pubkey\nelse: # end-to-end trampoline\nif r_tag_chosen_for_e2e_trampoline:\n- pubkey, scid, feebase... | Python | MIT License | spesmilo/electrum | trampoline: use trampoline policy for intermediate forwarders |
630,896 | 20.07.2021 17:54:49 | -7,200 | a3ec3f32286f169c1761d92147b01f345e9f1295 | trampoline: forwarding, use correct secret for legacy case | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnpeer.py",
"new_path": "electrum/lnpeer.py",
"diff": "@@ -1443,7 +1443,12 @@ class Peer(Logger):\npayload = trampoline_onion.hop_data.payload\npayment_hash = htlc.payment_hash\n+ payment_data = payload.get('payment_data')\n+ if payment_data: # legacy... | Python | MIT License | spesmilo/electrum | trampoline: forwarding, use correct secret for legacy case |
631,035 | 18.01.2022 06:47:29 | 28,800 | 906c4c4e2c47baf7eeea671578f3d54e6bddc6a2 | appimage build: update libudev-dev libudev1 | [
{
"change_type": "MODIFY",
"old_path": "contrib/build-linux/appimage/Dockerfile",
"new_path": "contrib/build-linux/appimage/Dockerfile",
"diff": "@@ -27,8 +27,8 @@ RUN apt-get update -q && \\\nlibtinfo5=6.1-1ubuntu1.18.04 \\\nlibsqlite3-dev=3.22.0-1ubuntu0.4 \\\nlibusb-1.0-0-dev=2:1.0.21-2 \\\n- lib... | Python | MIT License | spesmilo/electrum | appimage build: update libudev-dev libudev1 (#7629)
(cherry picked from commit 19a9a151e8832a55444f3815df3a1ca35fdb1674) |
630,870 | 18.01.2022 19:50:46 | -3,600 | 3851ce5dd1a26550f546aafc4438d30623d54a33 | scripts: add "update_default_servers.py" | [
{
"change_type": "MODIFY",
"old_path": "electrum/network.py",
"new_path": "electrum/network.py",
"diff": "@@ -1331,11 +1331,19 @@ class Network(Logger, NetworkRetryManager[ServerAddr]):\nsession = self.interface.session\nreturn parse_servers(await session.send_request('server.peers.subscribe'))\n- a... | Python | MIT License | spesmilo/electrum | scripts: add "update_default_servers.py" |
630,870 | 18.01.2022 19:54:24 | -3,600 | 27fb5a6dbd731030f26bc9ff3ea01de9d6389445 | network: update hardcoded mainnet servers (and testnet)
Many servers on the old list were down.
```
got reply from 18/71 old servers
len(newly_added_servers)=67. total: len(res_servers)=83
``` | [
{
"change_type": "MODIFY",
"old_path": "electrum/servers.json",
"new_path": "electrum/servers.json",
"diff": "{\n- \"3smoooajg7qqac2y.onion\": {\n+ \"104.248.139.211\": {\n\"pruning\": \"-\",\n\"s\": \"50002\",\n\"t\": \"50001\",\n- \"version\": \"1.4\"\n+ \"version\": \"1.4.2\"\n},\n- \"81-7-10-251... | Python | MIT License | spesmilo/electrum | network: update hardcoded mainnet servers (and testnet)
Many servers on the old list were down.
```
got reply from 18/71 old servers
len(newly_added_servers)=67. total: len(res_servers)=83
``` |
630,896 | 18.01.2022 14:40:16 | -3,600 | 401a429080ec46960cb73e31f093f3970cc17683 | lnutil+lnwire: implement ChannelType | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnutil.py",
"new_path": "electrum/lnutil.py",
"diff": "@@ -8,7 +8,6 @@ import json\nfrom collections import namedtuple, defaultdict\nfrom typing import NamedTuple, List, Tuple, Mapping, Optional, TYPE_CHECKING, Union, Dict, Set, Sequence\nimport re\n-... | Python | MIT License | spesmilo/electrum | lnutil+lnwire: implement ChannelType |
630,896 | 18.01.2022 14:55:43 | -3,600 | 6915e3cb10219fc7631aa6d2efed4869e0847087 | lnpeer+wallet: use channel type for channel open
* channel_type is put into storage, serialized as int and
deserialized as ChannelType
* check for static_remotekey is done via channel type | [
{
"change_type": "MODIFY",
"old_path": "electrum/json_db.py",
"new_path": "electrum/json_db.py",
"diff": "@@ -98,7 +98,7 @@ class StoredDict(dict):\nif not self.db or self.db._should_convert_to_stored_dict(key):\nv = StoredDict(v, self.db, self.path + [key])\n# convert_value is called depth-first\n-... | Python | MIT License | spesmilo/electrum | lnpeer+wallet: use channel type for channel open
* channel_type is put into storage, serialized as int and
deserialized as ChannelType
* check for static_remotekey is done via channel type |
630,896 | 18.01.2022 14:54:43 | -3,600 | db86aeb83af233fc79c61a2f97b38cca29e2cf67 | wallet: replace static remotekey with channel type | [
{
"change_type": "MODIFY",
"old_path": "electrum/wallet_db.py",
"new_path": "electrum/wallet_db.py",
"diff": "@@ -37,7 +37,7 @@ from .invoices import Invoice\nfrom .keystore import bip44_derivation\nfrom .transaction import Transaction, TxOutpoint, tx_from_any, PartialTransaction, PartialTxOutput\nf... | Python | MIT License | spesmilo/electrum | wallet: replace static remotekey with channel type |
630,896 | 18.01.2022 14:37:49 | -3,600 | c203ce083a49e6b9eb106638972bab2b133c9fb7 | kivy+qt: add channel type to details | [
{
"change_type": "MODIFY",
"old_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py",
"new_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py",
"diff": "@@ -246,6 +246,7 @@ Builder.load_string(r'''\nwarning: ''\nis_frozen_for_sending: False\nis_frozen_for_receiving: False\n+ channel... | Python | MIT License | spesmilo/electrum | kivy+qt: add channel type to details |
630,870 | 20.01.2022 16:20:59 | -3,600 | 46dc675b1fe6dcf03aafd382aaccd806b5ec41c7 | scripts: fix py3.6 compat in update_default_servers.py
Note: this was causing a weird flake8 error on CI. Presumably due to CI running flake8 via py3.7.
```
flake8 . --count --select=$ELECTRUM_LINTERS --show-source --statistics
./electrum/scripts/update_default_servers.py:1:26: E999 SyntaxError: invalid syntax
#!/usr/b... | [
{
"change_type": "MODIFY",
"old_path": "electrum/scripts/update_default_servers.py",
"new_path": "electrum/scripts/update_default_servers.py",
"diff": "@@ -56,7 +56,7 @@ async def f():\nprint(json.dumps(res_servers, indent=4, sort_keys=True))\nprint(f\"got reply from {len(old_servers_online)}/{len(o... | Python | MIT License | spesmilo/electrum | scripts: fix py3.6 compat in update_default_servers.py
Note: this was causing a weird flake8 error on CI. Presumably due to CI running flake8 via py3.7.
```
flake8 . --count --select=$ELECTRUM_LINTERS --show-source --statistics
./electrum/scripts/update_default_servers.py:1:26: E999 SyntaxError: invalid syntax
#!/usr... |
630,870 | 22.01.2022 17:49:20 | -3,600 | a3e1d2e25e78231b30ff1103345095827a909d88 | follow-up prev
there must be a better way of doing this...
we should somehow automate figuring out the build-time dependencies of requirements.txt | [
{
"change_type": "MODIFY",
"old_path": "contrib/deterministic-build/requirements-build-makepackages.txt",
"new_path": "contrib/deterministic-build/requirements-build-makepackages.txt",
"diff": "+flit-core==3.6.0 \\\n+ --hash=sha256:5892962ab8b8ea945835b3a288fe9dd69316f1903d5288c3f5cafdcdd04756ad \\\... | Python | MIT License | spesmilo/electrum | follow-up prev
there must be a better way of doing this...
we should somehow automate figuring out the build-time dependencies of requirements.txt |
630,870 | 15.02.2022 18:08:59 | -3,600 | f02e3b9d9949dc565e0340c1b79d65659e4874bf | cirrus ci: change cache key for pip dependencies
the cache should be considered stale if requirements.txt changes | [
{
"change_type": "MODIFY",
"old_path": ".cirrus.yml",
"new_path": ".cirrus.yml",
"diff": "@@ -30,7 +30,7 @@ task:\nELECTRUM_PYTHON_NAME: pypy3\npip_cache:\nfolder: ~/.cache/pip\n- fingerprint_script: echo $ELECTRUM_IMAGE && cat $ELECTRUM_REQUIREMENTS\n+ fingerprint_script: echo $ELECTRUM_IMAGE && ca... | Python | MIT License | spesmilo/electrum | cirrus ci: change cache key for pip dependencies
the cache should be considered stale if requirements.txt changes |
630,870 | 08.02.2022 12:56:02 | -3,600 | 3f3212e94d01a6c2f2bbdcf488eb81518f208e3e | some clean-ups now that we require python 3.8
In particular, asyncio.CancelledError no longer inherits Exception (it inherits BaseException directly) | [
{
"change_type": "MODIFY",
"old_path": "electrum/daemon.py",
"new_path": "electrum/daemon.py",
"diff": "@@ -505,8 +505,6 @@ class Daemon(Logger):\nasync with self.taskgroup as group:\n[await group.spawn(job) for job in jobs]\nawait group.spawn(asyncio.Event().wait) # run forever (until cancel)\n- ex... | Python | MIT License | spesmilo/electrum | some clean-ups now that we require python 3.8
In particular, asyncio.CancelledError no longer inherits Exception (it inherits BaseException directly) |
630,870 | 08.02.2022 12:07:14 | -3,600 | c13183137378aebd906a3a389e42a1f8eeb73e3e | util: rm SilentTaskGroup. this does not seem to be needed anymore
I think this was originally needed due to incorrect management of group lifecycles,
which our current code is doing better.
also note that if we needed this, in newer aiorpcx, the name of
the field was ~changed from `_closed` to `joined`: | [
{
"change_type": "MODIFY",
"old_path": "electrum/interface.py",
"new_path": "electrum/interface.py",
"diff": "@@ -45,7 +45,7 @@ from aiorpcx.jsonrpc import JSONRPC, CodeMessageError\nfrom aiorpcx.rawsocket import RSClient\nimport certifi\n-from .util import (ignore_exceptions, log_exceptions, bfh, S... | Python | MIT License | spesmilo/electrum | util: rm SilentTaskGroup. this does not seem to be needed anymore
I think this was originally needed due to incorrect management of group lifecycles,
which our current code is doing better.
also note that if we needed this, in newer aiorpcx, the name of
the field was ~changed from `_closed` to `joined`:
https://githu... |
630,870 | 15.02.2022 18:41:45 | -3,600 | 59600721613d5628f92b87ea81b0db06c12d6c60 | regtests: update electrumx | [
{
"change_type": "MODIFY",
"old_path": ".cirrus.yml",
"new_path": ".cirrus.yml",
"diff": "@@ -107,8 +107,8 @@ task:\n- apt-get update\n- apt-get -y install libsecp256k1-0 curl jq bc\n- pip3 install .[tests]\n- #- pip3 install e-x # Broken because of https://github.com/spesmilo/electrumx/issues/117 ,... | Python | MIT License | spesmilo/electrum | regtests: update electrumx |
630,969 | 01.02.2022 09:37:01 | -3,600 | 57583c05cf0a4e083801e375421ded77f44e113f | request_force_close: add 1s delay before closing the tranport,
so that the remote task does not get cancelled. | [
{
"change_type": "MODIFY",
"old_path": "electrum/lnworker.py",
"new_path": "electrum/lnworker.py",
"diff": "@@ -2268,15 +2268,20 @@ class LNWallet(LNWorker):\npeer_addr = LNPeerAddr(host, port, node_id)\ntransport = LNTransport(privkey, peer_addr, proxy=self.network.proxy)\npeer = Peer(self, node_id... | Python | MIT License | spesmilo/electrum | request_force_close: add 1s delay before closing the tranport,
so that the remote task does not get cancelled. |
630,870 | 16.02.2022 17:23:23 | -3,600 | 4f9e4c520f29bfffd51738213bebfb514967e7ba | ecc: API changes: verify_message_hash to return bool instead of raising
verify_message_hash and verify_message_for_address now return bool
instead of raising Exceptions on bad signatures. | [
{
"change_type": "MODIFY",
"old_path": "electrum/ecc.py",
"new_path": "electrum/ecc.py",
"diff": "@@ -159,7 +159,7 @@ class ECPubkey(object):\nassert_bytes(sig_string)\nif len(sig_string) != 64:\nraise Exception(f'wrong encoding used for signature? len={len(sig_string)} (should be 64)')\n- if recid ... | Python | MIT License | spesmilo/electrum | ecc: API changes: verify_message_hash to return bool instead of raising
verify_message_hash and verify_message_for_address now return bool
instead of raising Exceptions on bad signatures. |
630,870 | 16.02.2022 17:36:31 | -3,600 | 9bbf92b80b0892d87f04cfde63cc3f576e7e1c4a | tests: add test for signmessage with segwit address | [
{
"change_type": "MODIFY",
"old_path": "electrum/tests/test_bitcoin.py",
"new_path": "electrum/tests/test_bitcoin.py",
"diff": "@@ -181,20 +181,21 @@ class Test_bitcoin(ElectrumTestCase):\nself.assertEqual(2 * G, inf + 2 * G)\nself.assertEqual(inf, 3 * G + (-3 * G))\n- def test_msg_signing(self):\n-... | Python | MIT License | spesmilo/electrum | tests: add test for signmessage with segwit address |
630,870 | 16.02.2022 19:20:51 | -3,600 | 5cdb4471ec772485858330e2573faf65386233c4 | signmessage: also accept Trezor-type sigs for p2wpkh and p2wpkh-p2sh addrs
The signatures we create are unchanged but we now also accept signatures created by Trezor and others.
see | [
{
"change_type": "MODIFY",
"old_path": "electrum/ecc.py",
"new_path": "electrum/ecc.py",
"diff": "@@ -173,19 +173,34 @@ class ECPubkey(object):\nreturn ECPubkey._from_libsecp256k1_pubkey_ptr(pubkey)\n@classmethod\n- def from_signature65(cls, sig: bytes, msg_hash: bytes) -> Tuple['ECPubkey', bool]:\n... | Python | MIT License | spesmilo/electrum | signmessage: also accept Trezor-type sigs for p2wpkh and p2wpkh-p2sh addrs
The signatures we create are unchanged but we now also accept signatures created by Trezor and others.
see https://github.com/spesmilo/electrum/issues/3861 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.