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
17.01.2021 17:16:51
-3,600
f130cb53ce42339901e1189e61423163e1a0a372
bump_dee and dscancel: call tx.estimated_size() after add_input_info(). This is a workaround, see the FIXME. PartialTxInput.is_segwit() should return the correct value, or raise if information is missing.
[ { "change_type": "MODIFY", "old_path": "electrum/transaction.py", "new_path": "electrum/transaction.py", "diff": "@@ -1171,6 +1171,10 @@ class PartialTxInput(TxInput, PSBTSection):\n@classmethod\ndef from_txin(cls, txin: TxInput, *, strip_witness: bool = True) -> 'PartialTxInput':\n+ # FIXME: if str...
Python
MIT License
spesmilo/electrum
bump_dee and dscancel: call tx.estimated_size() after add_input_info(). This is a workaround, see the FIXME. PartialTxInput.is_segwit() should return the correct value, or raise if information is missing.
630,969
17.01.2021 18:52:13
-3,600
10f4715f438c4efa6a97b27ef48180f68c15a288
set the same features in LNWallet and LNBackups. fixes
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -151,9 +151,29 @@ class NoPathFound(PaymentFailure):\nclass ErrorAddingPeer(Exception): pass\n+# set some feature flags as baseline for both LNWallet and LNGossip\n+# note that e.g. DATA_LO...
Python
MIT License
spesmilo/electrum
set the same features in LNWallet and LNBackups. fixes #6943
630,896
07.01.2021 10:43:10
-3,600
fe78ed2a8e0d09087e22d2b5803e86e013e8fdfc
swaps: add swaps to android
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main_window.py", "new_path": "electrum/gui/kivy/main_window.py", "diff": "@@ -84,7 +84,7 @@ from electrum.util import (NoDynamicFeeEstimates, NotEnoughFunds,\nBITCOIN_BIP21_URI_SCHEME, LIGHTNING_URI_SCHEME)\nfrom .uix.dialogs.lightning_open_c...
Python
MIT License
spesmilo/electrum
swaps: add swaps to android
630,896
18.01.2021 08:05:29
-3,600
08ec368baf3cd71aace0c323820e1cfa30e547e8
fee-slider: fix dialog crashes for float pos values
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py", "new_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py", "diff": "import asyncio\n-from typing import TYPE_CHECKING, Optional, Tuple\n+from typing import TYPE_CHECKING, Optional, Union\nfrom kivy....
Python
MIT License
spesmilo/electrum
fee-slider: fix dialog crashes for float pos values
630,974
19.01.2021 00:07:29
-7,200
12c9de6bf998f2a0a4cbc9c9c4bb1d11dac44dc5
qt: fix PayToEdit.parse_amount nicer error messages for malformed inputs
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/paytoedit.py", "new_path": "electrum/gui/qt/paytoedit.py", "diff": "# SOFTWARE.\nimport re\n+import decimal\nfrom decimal import Decimal\nfrom typing import NamedTuple, Sequence, Optional, List, TYPE_CHECKING\n@@ -127,10 +128,16 @@ class PayToE...
Python
MIT License
spesmilo/electrum
qt: fix PayToEdit.parse_amount (#6951) nicer error messages for malformed inputs
630,969
19.01.2021 14:15:07
-3,600
90d66953cfd53f1a055709fe99f25d23d0a190c7
kivy: add confirm_tx_dialog, similar to qt
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main_window.py", "new_path": "electrum/gui/kivy/main_window.py", "diff": "@@ -408,7 +408,7 @@ class ElectrumWindow(App, Logger):\nself._settings_dialog = None\nself._channels_dialog = None\nself._addresses_dialog = None\n- self.fee_status = s...
Python
MIT License
spesmilo/electrum
kivy: add confirm_tx_dialog, similar to qt
630,870
20.01.2021 16:25:03
-3,600
1b3674b318233c623cdd8692d693e63a8dc61ce1
qt send: handle simultaneous NoDynamicFeeEstimates+NotEnoughFunds fixes
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/confirm_tx_dialog.py", "new_path": "electrum/gui/qt/confirm_tx_dialog.py", "diff": "@@ -101,6 +101,9 @@ class TxEditor:\nself.tx = None\ntry:\nself.tx = self.make_tx(0)\n+ except NotEnoughFunds:\n+ self.not_enough_funds = True\n+ return\nexcept...
Python
MIT License
spesmilo/electrum
qt send: handle simultaneous NoDynamicFeeEstimates+NotEnoughFunds fixes #6424
630,870
20.01.2021 17:33:15
-3,600
e365eb0d85fa19acc3c1f37b2346e5178077e212
(trivial) kivy: add missing import follow-up
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/uix/dialogs/confirm_tx_dialog.py", "new_path": "electrum/gui/kivy/uix/dialogs/confirm_tx_dialog.py", "diff": "@@ -12,6 +12,7 @@ from decimal import Decimal\nfrom electrum.simple_config import FEERATE_WARNING_HIGH_FEE, FEE_RATIO_HIGH_WARNING\n...
Python
MIT License
spesmilo/electrum
(trivial) kivy: add missing import follow-up 90d66953cfd53f1a055709fe99f25d23d0a190c7
630,870
21.01.2021 03:11:15
-3,600
b1449a0a392bfa0dddf934afa041a4ee0b6995cc
interface.got_disconnected: change from Future to Event Events are far easier to reason about.
[ { "change_type": "MODIFY", "old_path": "electrum/interface.py", "new_path": "electrum/interface.py", "diff": "@@ -351,7 +351,7 @@ class Interface(Logger):\ndef __init__(self, *, network: 'Network', server: ServerAddr, proxy: Optional[dict]):\nself.ready = asyncio.Future()\n- self.got_disconnected = ...
Python
MIT License
spesmilo/electrum
interface.got_disconnected: change from Future to Event Events are far easier to reason about.
630,969
21.01.2021 14:12:19
-3,600
a50af83b84b572e2b484b1970384f9fe80ce0846
kivy: simplify swaps dialog
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py", "new_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py", "diff": "@@ -27,15 +27,11 @@ Builder.load_string(r'''\ntitle: _('Lightning Swap')\nsize_hint: 0.8, 0.8\npos_hint: {'top':0.9}\n+ mining_fee...
Python
MIT License
spesmilo/electrum
kivy: simplify swaps dialog
630,969
21.01.2021 14:32:48
-3,600
4f3a28b87e244a158d6a038fdf791c480f583418
kivy: rename 'Channels' dialog to 'Lightning'
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main.kv", "new_path": "electrum/gui/kivy/main.kv", "diff": "@@ -461,7 +461,7 @@ BoxLayout:\ntext: _('Addresses')\nActionOvrButton:\nname: 'lightning_channels_dialog'\n- text: _('Channels')\n+ text: _('Lightning')\nActionOvrButton:\nname: 'set...
Python
MIT License
spesmilo/electrum
kivy: rename 'Channels' dialog to 'Lightning'
630,870
21.01.2021 18:05:48
-3,600
c4e9afa019e74a46585ca9af3eef433f19f338b9
wallet.remove_transaction: also rm dependent/child txs Main motivation is that I often use wallet.remove_transaction from the Qt console, and would find this behaviour more intuitive. Note that previously if one were to call this on a tx with children, the crash reporter would appear with "wallet.get_history() failed b...
[ { "change_type": "MODIFY", "old_path": "electrum/address_synchronizer.py", "new_path": "electrum/address_synchronizer.py", "diff": "@@ -292,11 +292,7 @@ class AddressSynchronizer(Logger):\n# this is a local tx that conflicts with non-local txns; drop.\nreturn False\n# keep this txn and remove all co...
Python
MIT License
spesmilo/electrum
wallet.remove_transaction: also rm dependent/child txs Main motivation is that I often use wallet.remove_transaction from the Qt console, and would find this behaviour more intuitive. Note that previously if one were to call this on a tx with children, the crash reporter would appear with "wallet.get_history() failed ...
630,870
22.01.2021 16:25:45
-3,600
da777caa0bec0388e62f429dacf3e4a375670c35
wallet: use lock when modifying frozen_{addresses,coins}
[ { "change_type": "MODIFY", "old_path": "electrum/wallet.py", "new_path": "electrum/wallet.py", "diff": "@@ -43,6 +43,7 @@ from decimal import Decimal\nfrom typing import TYPE_CHECKING, List, Optional, Tuple, Union, NamedTuple, Sequence, Dict, Any, Set\nfrom abc import ABC, abstractmethod\nimport ite...
Python
MIT License
spesmilo/electrum
wallet: use lock when modifying frozen_{addresses,coins}
630,870
22.01.2021 16:47:22
-3,600
bc6f2926f4b11c7d4293c7c286f7aec1a9889e03
commands: add 'freeze_utxo' cmd; to expose this to CLI/RPC
[ { "change_type": "MODIFY", "old_path": "electrum/commands.py", "new_path": "electrum/commands.py", "diff": "@@ -423,15 +423,27 @@ class Commands:\nreturn {'address':address, 'redeemScript':redeem_script}\n@command('w')\n- async def freeze(self, address, wallet: Abstract_Wallet = None):\n+ async def ...
Python
MIT License
spesmilo/electrum
commands: add 'freeze_utxo' cmd; to expose this to CLI/RPC
630,870
24.01.2021 06:45:48
-3,600
1abecf25c92a3084e99939982db438a1057cc9c3
qt block explorer: allow custom URL The QTextEdit expects values such as (one per line): ``` ("https://blockstream.info/testnet/", {'tx': 'tx/', 'addr': 'address/'}) ``` closes
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/settings_dialog.py", "new_path": "electrum/gui/qt/settings_dialog.py", "diff": "# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n# SOFTWARE.\n+import ast\nfrom typing import Optional, TYPE_CHECKING\nfrom PyQt5.QtCore import Q...
Python
MIT License
spesmilo/electrum
qt block explorer: allow custom URL The QTextEdit expects values such as (one per line): ``` https://blockstream.info/testnet/ https://192.168.0.38:3021/ ("https://blockstream.info/testnet/", {'tx': 'tx/', 'addr': 'address/'}) ``` closes #4831
630,969
24.01.2021 11:06:08
-3,600
895f9daded603332c2ebeda686b6515cdcb25591
add 'view log' action for LN payments in tx history
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/history_list.py", "new_path": "electrum/gui/qt/history_list.py", "diff": "@@ -663,6 +663,10 @@ class HistoryList(MyTreeView, AcceptFileDragDrop):\ncc = self.add_copy_menu(menu, idx)\ncc.addAction(_(\"Payment Hash\"), lambda: self.place_text_on_...
Python
MIT License
spesmilo/electrum
add 'view log' action for LN payments in tx history
630,969
24.01.2021 11:40:02
-3,600
986de70529d2fd3733575625eacf8f34ea9ae036
Qt: fix invoices refresh (follow-up 94708f63e4f237f5f4c143137de797f9c0ccc08e)
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1520,21 +1520,23 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nreq = self.wallet.receive_requests.get(key)\nif req is None:\nreturn\n- self.request_li...
Python
MIT License
spesmilo/electrum
Qt: fix invoices refresh (follow-up 94708f63e4f237f5f4c143137de797f9c0ccc08e)
630,969
24.01.2021 15:44:38
-3,600
8a656d648bfc3797dca9c0fc3e1c37af19d74d29
kivy: disable gossip button is channel_db is None
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py", "new_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py", "diff": "@@ -166,6 +166,7 @@ Builder.load_string(r'''\nname: 'lightning_channels'\ntitle: _('Lightning Network')\nhas_lightning: False\n+ h...
Python
MIT License
spesmilo/electrum
kivy: disable gossip button is channel_db is None
630,969
25.01.2021 13:34:40
-3,600
d6e293052a858cb55427bac2fdcb4b742d91135e
Qt: set need_update on payment received (minor fix)
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -1522,7 +1522,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nreturn\nif status == PR_PAID:\nself.notify(_('Payment received') + '\\n' + key)\n- self.r...
Python
MIT License
spesmilo/electrum
Qt: set need_update on payment received (minor fix)
630,969
22.01.2021 14:37:08
-3,600
d7515b936e32efc02f6b4b0dd97b8520b5c447a7
Qt: download and show bitcoin whitepaper. fixes
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -766,6 +766,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nhelp_menu.addAction(_(\"&Official website\"), lambda: webopen(\"https://electrum.org\"))\nh...
Python
MIT License
spesmilo/electrum
Qt: download and show bitcoin whitepaper. fixes #6970
630,899
27.01.2021 03:34:19
-32,400
f548b6356367367504136ce583dc5d4e8631c022
Fix error of showing bitcoin paper(testnet)
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -766,6 +766,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\nhelp_menu.addAction(_(\"&Official website\"), lambda: webopen(\"https://electrum.org\"))\nh...
Python
MIT License
spesmilo/electrum
Fix error of showing bitcoin paper(testnet)
630,870
27.01.2021 20:04:08
-3,600
7294613447e9f2857630c4eeb6547c68aad365fc
util.is_hex_str: forbid whitespaces
[ { "change_type": "MODIFY", "old_path": "electrum/tests/test_util.py", "new_path": "electrum/tests/test_util.py", "diff": "@@ -125,13 +125,23 @@ class TestUtil(ElectrumTestCase):\ndef test_is_hex_str(self):\nself.assertTrue(is_hex_str('09a4'))\n+ self.assertTrue(is_hex_str('abCD'))\nself.assertTrue(i...
Python
MIT License
spesmilo/electrum
util.is_hex_str: forbid whitespaces
630,870
27.01.2021 20:14:55
-3,600
338adf05bad3f39b16d9e1d9f531c4e05b965756
interface.get_transaction: stricter sanitisation in particular, Transaction.__init__ allows leading/trailing whitespaces
[ { "change_type": "MODIFY", "old_path": "electrum/interface.py", "new_path": "electrum/interface.py", "diff": "@@ -917,6 +917,8 @@ class Interface(Logger):\nraise Exception(f\"{repr(tx_hash)} is not a txid\")\nraw = await self.session.send_request('blockchain.transaction.get', [tx_hash], timeout=time...
Python
MIT License
spesmilo/electrum
interface.get_transaction: stricter sanitisation in particular, Transaction.__init__ allows leading/trailing whitespaces
630,870
27.01.2021 20:38:23
-3,600
d13995309a35e246a2c5ccb8d16ecbca40812a1b
qt main_window: add error handling to show_bitcoin_paper related:
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/main_window.py", "new_path": "electrum/gui/qt/main_window.py", "diff": "@@ -795,8 +795,9 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):\ndef show_bitcoin_paper(self):\nfilename = os.path.join(self.config.path, 'bitcoin.pdf')\nif...
Python
MIT License
spesmilo/electrum
qt main_window: add error handling to show_bitcoin_paper related: #6970
630,870
27.01.2021 20:43:00
-3,600
1d9311aeefb9f9b4d76d72b792d784fb9f024bfd
qt network dialog: show protocol (if ":t") for servers in NodesList
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/network_dialog.py", "new_path": "electrum/gui/qt/network_dialog.py", "diff": "@@ -148,7 +148,7 @@ class NodesListWidget(QTreeWidget):\nx = connected_servers_item\nfor i in interfaces:\nstar = ' *' if i == network.interface else ''\n- item = QTr...
Python
MIT License
spesmilo/electrum
qt network dialog: show protocol (if ":t") for servers in NodesList
630,969
28.01.2021 11:14:53
-3,600
fe1b2149cbadce8e9d4ad5e008e3ee60a0b3c1e4
lnpeer: fix flen in INIT
[ { "change_type": "MODIFY", "old_path": "electrum/lnpeer.py", "new_path": "electrum/lnpeer.py", "diff": "@@ -133,8 +133,12 @@ class Peer(Logger):\nasync def initialize(self):\nif isinstance(self.transport, LNTransport):\nawait self.transport.handshake()\n- # FIXME: \"flen\" hardcoded but actually it ...
Python
MIT License
spesmilo/electrum
lnpeer: fix flen in INIT
630,969
28.01.2021 13:10:43
-3,600
521376f87fad2c931b46537bad49c3457e8aeb44
rm unused parameter in maybe_fulfill_htlc
[ { "change_type": "MODIFY", "old_path": "electrum/lnpeer.py", "new_path": "electrum/lnpeer.py", "diff": "@@ -1369,9 +1369,12 @@ class Peer(Logger):\nreturn None, None, OnionRoutingFailureMessage(code=OnionFailureCode.TEMPORARY_CHANNEL_FAILURE, data=data)\nreturn next_chan_scid, next_htlc.htlc_id, Non...
Python
MIT License
spesmilo/electrum
rm unused parameter in maybe_fulfill_htlc
630,870
28.01.2021 20:00:48
-3,600
e8a2fa5596a496c172fe8a428651c04c51afd4f7
tests: lnpeer.htlc_switch: don't fulfill htlc until add is irrevocable This adds a failing test, where the HTLC switch fulfills an HTLC too soon, before the corresponding 'update_add_htlc' is irrevocably committed.
[ { "change_type": "MODIFY", "old_path": "electrum/lnchannel.py", "new_path": "electrum/lnchannel.py", "diff": "@@ -997,6 +997,7 @@ class Channel(AbstractChannel):\nself.hm.recv_rev()\nself.config[REMOTE].current_per_commitment_point=self.config[REMOTE].next_per_commitment_point\nself.config[REMOTE].n...
Python
MIT License
spesmilo/electrum
tests: lnpeer.htlc_switch: don't fulfill htlc until add is irrevocable This adds a failing test, where the HTLC switch fulfills an HTLC too soon, before the corresponding 'update_add_htlc' is irrevocably committed.
630,870
28.01.2021 20:03:30
-3,600
2b0f156ce84a991f76f5b00d9d8d708122071623
lnpeer.htlc_switch: (bugfix) don't fulfill htlc until add is irrevocable This makes the test added in prev commit pass.
[ { "change_type": "MODIFY", "old_path": "electrum/lnchannel.py", "new_path": "electrum/lnchannel.py", "diff": "@@ -858,6 +858,7 @@ class Channel(AbstractChannel):\nlocal_ctn = self.get_latest_ctn(LOCAL)\nremote_ctn = self.get_latest_ctn(REMOTE)\nif onion_packet:\n+ # TODO neither local_ctn nor remote...
Python
MIT License
spesmilo/electrum
lnpeer.htlc_switch: (bugfix) don't fulfill htlc until add is irrevocable This makes the test added in prev commit pass.
630,870
22.01.2021 21:38:32
-3,600
27cd0780010462075151efecfacc1f72012efb97
wallet: auto-freeze small unconfirmed UTXOs see
[ { "change_type": "MODIFY", "old_path": "electrum/wallet.py", "new_path": "electrum/wallet.py", "diff": "@@ -287,7 +287,7 @@ class Abstract_Wallet(AddressSynchronizer, ABC):\nself.multiple_change = db.get('multiple_change', False)\nself._labels = db.get_dict('labels')\nself._frozen_addresses = set(db...
Python
MIT License
spesmilo/electrum
wallet: auto-freeze small unconfirmed UTXOs see #6960
630,870
29.01.2021 19:53:04
-3,600
1fb0c28d0ab316bc07ced9f531787b54db3d57e0
exchange_rate: (fix) rm need to restart app to disable FX rates Previously if the user disabled FX rates in the settings, the UI would keep showing the fiat amounts everywhere until the next time the program was started. (and the rates would not even refresh anymore)
[ { "change_type": "MODIFY", "old_path": "electrum/exchange_rate.py", "new_path": "electrum/exchange_rate.py", "diff": "@@ -577,7 +577,7 @@ class FxThread(ThreadJob):\ndef show_history(self):\nreturn self.is_enabled() and self.get_history_config() and self.ccy in self.exchange.history_ccys()\n- def se...
Python
MIT License
spesmilo/electrum
exchange_rate: (fix) rm need to restart app to disable FX rates Previously if the user disabled FX rates in the settings, the UI would keep showing the fiat amounts everywhere until the next time the program was started. (and the rates would not even refresh anymore)
630,969
01.02.2021 14:17:04
-3,600
e477a433854dc935ec0d117e07b5e75d9817860f
PaymentInfo: use msat precision
[ { "change_type": "MODIFY", "old_path": "electrum/lnpeer.py", "new_path": "electrum/lnpeer.py", "diff": "@@ -1388,7 +1388,7 @@ class Peer(Logger):\nif payment_secret_from_onion != derive_payment_secret_from_payment_preimage(preimage):\nreason = OnionRoutingFailureMessage(code=OnionFailureCode.INCORRE...
Python
MIT License
spesmilo/electrum
PaymentInfo: use msat precision
630,870
01.02.2021 22:08:09
-3,600
3d1796ab1da9d195e894e670555a92064c34459c
follow-up prev: fix units when calling lnworker.create_invoice: msat/sat follow-up
[ { "change_type": "MODIFY", "old_path": "electrum/submarine_swaps.py", "new_path": "electrum/submarine_swaps.py", "diff": "@@ -238,7 +238,7 @@ class SwapManager(Logger):\nassert self.lnwatcher\nprivkey = os.urandom(32)\npubkey = ECPrivkey(privkey).get_public_key_bytes(compressed=True)\n- lnaddr, invo...
Python
MIT License
spesmilo/electrum
follow-up prev: fix units when calling lnworker.create_invoice: msat/sat follow-up e477a433854dc935ec0d117e07b5e75d9817860f
630,870
01.02.2021 22:11:56
-3,600
337d4890a1dc60dc551f6922208a9077e7d2b616
lnworker/swaps: add '_sat' suffix to arg names and force kwargs
[ { "change_type": "MODIFY", "old_path": "electrum/commands.py", "new_path": "electrum/commands.py", "diff": "@@ -1124,7 +1124,11 @@ class Commands:\nelse:\nlightning_amount_sat = satoshis(lightning_amount)\nonchain_amount_sat = satoshis(onchain_amount)\n- txid = await wallet.lnworker.swap_manager.nor...
Python
MIT License
spesmilo/electrum
lnworker/swaps: add '_sat' suffix to arg names and force kwargs
630,899
01.02.2021 12:32:29
32,400
5d19d5d4bdaa868eed2bf701ad7d53cbd029159c
Fix windows build(travis)
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -51,6 +51,13 @@ jobs:\n- TARGET_OS=Windows\nservices:\n- docker\n+ before_install:\n+ - sudo rm -rf /var/lib/apt/lists/*\n+ - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -\n+ -...
Python
MIT License
spesmilo/electrum
Fix windows build(travis) (#6981)
630,870
01.02.2021 22:30:54
-3,600
d34b8d69f63e957e775cc8f2f24a431cf2926c7c
build-wine/README.md: add comment about needing recent docker version related:
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -51,7 +51,7 @@ jobs:\n- TARGET_OS=Windows\nservices:\n- docker\n- before_install:\n+ before_install: # we need a newer version of docker; 20.10+ seems to work\n- sudo rm -rf /var/lib/apt/lists/*\n- curl -fsS...
Python
MIT License
spesmilo/electrum
build-wine/README.md: add comment about needing recent docker version related: https://github.com/spesmilo/electrum/issues/6971 https://github.com/spesmilo/electrum/pull/6981
630,974
04.02.2021 07:32:37
-7,200
d53d4e46e6df4d659b567b786b1afccf8f321faf
paymentrequest: check network on PaymentRequest parse
[ { "change_type": "MODIFY", "old_path": "electrum/paymentrequest.py", "new_path": "electrum/paymentrequest.py", "diff": "@@ -39,7 +39,7 @@ except ImportError:\n# sudo apt-get install protobuf-compiler\nsys.exit(\"Error: could not find paymentrequest_pb2.py. Create it with 'protoc --proto_path=electru...
Python
MIT License
spesmilo/electrum
paymentrequest: check network on PaymentRequest parse
630,969
04.02.2021 15:48:00
-3,600
c0bf9b4509cfdeace824a9054d9c90449ef46ad6
LNWorker: do not save PR_INFLIGHT status, detect it on startup instead
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/channel_details.py", "new_path": "electrum/gui/qt/channel_details.py", "diff": "@@ -195,7 +195,11 @@ class ChannelDetailsDialog(QtWidgets.QDialog):\nvbox.addWidget(QLabel(_('Payments (HTLCs):')))\nw = QtWidgets.QTreeView(self)\nhtlc_dict = chan...
Python
MIT License
spesmilo/electrum
LNWorker: do not save PR_INFLIGHT status, detect it on startup instead
630,969
27.01.2021 19:27:06
-3,600
ef5a26544981a426945b1d32b22b170272cb0671
basic_mpp: receive multi-part payments
[ { "change_type": "MODIFY", "old_path": "electrum/lnchannel.py", "new_path": "electrum/lnchannel.py", "diff": "@@ -969,10 +969,6 @@ class Channel(AbstractChannel):\nraise Exception(\"refusing to revoke as remote sig does not fit\")\nwith self.db_lock:\nself.hm.send_rev()\n- if self.lnworker:\n- recei...
Python
MIT License
spesmilo/electrum
basic_mpp: receive multi-part payments
630,969
05.02.2021 16:43:00
-3,600
cc69cf3f3305749d3f157415d267636cc61701c0
Qt: fix deprecation warning
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/amountedit.py", "new_path": "electrum/gui/qt/amountedit.py", "diff": "@@ -69,7 +69,7 @@ class AmountEdit(FreezableLineEdit):\ntextRect.adjust(2, 0, -10, 0)\npainter = QPainter(self)\npainter.setPen(ColorScheme.GRAY.as_color())\n- painter.drawTe...
Python
MIT License
spesmilo/electrum
Qt: fix deprecation warning
630,969
05.02.2021 17:09:47
-3,600
34734bd22907e8585c5abbbd1bb47b397b3803e7
cleanup, follow-up
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -580,11 +580,9 @@ class LNWallet(LNWorker):\nfor channel_id, c in random_shuffled_copy(channels.items()):\nself._channels[bfh(channel_id)] = Channel(c, sweep_address=self.sweep_address, lnw...
Python
MIT License
spesmilo/electrum
cleanup, follow-up f28a2aae73b8a4a2067f41d2f69809e2b1ec6a20
630,896
05.02.2021 21:52:13
-3,600
2bffc9d3eb3866e6e3fce59be0986e3024f6566d
lnpeer: fix timed out mpp
[ { "change_type": "MODIFY", "old_path": "electrum/lnpeer.py", "new_path": "electrum/lnpeer.py", "diff": "@@ -1434,7 +1434,7 @@ class Peer(Logger):\nif accepted:\nreturn preimage, None\nelif expired:\n- reason = OnionRoutingFailureMessage(code=OnionFailureCode.MPP_TIMEOUT)\n+ reason = OnionRoutingFail...
Python
MIT License
spesmilo/electrum
lnpeer: fix timed out mpp
630,988
06.02.2021 06:16:52
-3,600
9c4807644bf8bb0d2b777e9d02573e9b94db7c0f
Fix ledger sign message there was an around ~1/128 chance of creating an invalid signature when signing a message with a ledger
[ { "change_type": "MODIFY", "old_path": "electrum/plugins/ledger/ledger.py", "new_path": "electrum/plugins/ledger/ledger.py", "diff": "@@ -334,7 +334,12 @@ class Ledger_KeyStore(Hardware_KeyStore):\nif sLength == 33:\ns = s[1:]\n# And convert it\n- return bytes([27 + 4 + (signature[0] & 0x01)]) + r +...
Python
MIT License
spesmilo/electrum
Fix ledger sign message (#7004) there was an around ~1/128 chance of creating an invalid signature when signing a message with a ledger
630,969
07.02.2021 12:09:37
-3,600
0c933945131a014420553b99c276c790dd099278
rename lnworker._pay to pay_invoice, call it directly from GUIs
[ { "change_type": "MODIFY", "old_path": "electrum/commands.py", "new_path": "electrum/commands.py", "diff": "@@ -1011,7 +1011,7 @@ class Commands:\nlnaddr = lnworker._check_invoice(invoice)\npayment_hash = lnaddr.paymenthash\nwallet.save_invoice(LNInvoice.from_bech32(invoice))\n- success, log = await...
Python
MIT License
spesmilo/electrum
rename lnworker._pay to pay_invoice, call it directly from GUIs
630,969
07.02.2021 12:21:00
-3,600
4febbcdc2dd772c8e8465bdeee31bd436650a4a3
encapsulate get_routing_info in lnaddr
[ { "change_type": "MODIFY", "old_path": "electrum/lnaddr.py", "new_path": "electrum/lnaddr.py", "diff": "@@ -8,6 +8,7 @@ from binascii import hexlify\nfrom decimal import Decimal\nfrom typing import Optional\n+import random\nimport bitstring\nfrom .bitcoin import hash160_to_b58_address, b58_address_t...
Python
MIT License
spesmilo/electrum
encapsulate get_routing_info in lnaddr
630,969
07.02.2021 12:34:28
-3,600
2c2d3f3b306833b16b43789b791e856d7924934e
handle_error_from_failed_htlc: blacklist channel if cannot decode payload
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -1055,7 +1055,8 @@ class LNWallet(LNWorker):\npayload = self._decode_channel_update_msg(channel_update_as_received)\nif payload is None:\nself.logger.info(f'could not decode channel_update ...
Python
MIT License
spesmilo/electrum
handle_error_from_failed_htlc: blacklist channel if cannot decode payload
630,969
07.02.2021 11:57:20
-3,600
42c10c2fecf5cc56d149b7d09ae2dddb36560624
Separate pay_to_node logic from pay_invoice: - pay_to_node will be needed to forward trampoline onions. - pay_to_node either is successful or raises - pay_invoice handles invoice status
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -922,12 +922,10 @@ class LNWallet(LNWorker):\nchan, funding_tx = fut.result(timeout=timeout)\nexcept concurrent.futures.TimeoutError:\nraise Exception(_(\"open_channel timed out\"))\n-\n# a...
Python
MIT License
spesmilo/electrum
Separate pay_to_node logic from pay_invoice: - pay_to_node will be needed to forward trampoline onions. - pay_to_node either is successful or raises - pay_invoice handles invoice status
630,974
08.02.2021 20:26:16
-7,200
c43729b076acd790c659a91eab5c3ffa29b9ed20
make_unsigned_request: set network for testnet
[ { "change_type": "MODIFY", "old_path": "electrum/paymentrequest.py", "new_path": "electrum/paymentrequest.py", "diff": "@@ -339,6 +339,8 @@ def make_unsigned_request(req: 'OnchainInvoice'):\nscript = bfh(address_to_script(addr))\noutputs = [(script, amount)]\npd = pb2.PaymentDetails()\n+ if constant...
Python
MIT License
spesmilo/electrum
make_unsigned_request: set network for testnet
630,969
10.02.2021 13:16:33
-3,600
87a080d30e0897a5e9ec865a266eba7ee74a87d0
split code in htlc_switch: - raise OnionRoutingFailure whenever we want to fail a htlc - catch that exception in htlc_switch - this will avoid code duplication in the case of trampoline
[ { "change_type": "MODIFY", "old_path": "electrum/lnchannel.py", "new_path": "electrum/lnchannel.py", "diff": "@@ -41,7 +41,7 @@ from .bitcoin import redeem_script_to_address\nfrom .crypto import sha256, sha256d\nfrom .transaction import Transaction, PartialTransaction, TxInput\nfrom .logging import ...
Python
MIT License
spesmilo/electrum
split code in htlc_switch: - raise OnionRoutingFailure whenever we want to fail a htlc - catch that exception in htlc_switch - this will avoid code duplication in the case of trampoline
630,870
12.02.2021 04:47:53
-3,600
b56fe237cdc604e5b527248acd5fb61e46a8a48c
ledger: give clear error that old HW.1 cannot send to bech32 address maybe related
[ { "change_type": "MODIFY", "old_path": "electrum/plugins/ledger/ledger.py", "new_path": "electrum/plugins/ledger/ledger.py", "diff": "@@ -7,7 +7,7 @@ from typing import Optional, Tuple\nfrom electrum import ecc\nfrom electrum import bip32\nfrom electrum.crypto import hash_160\n-from electrum.bitcoin...
Python
MIT License
spesmilo/electrum
ledger: give clear error that old HW.1 cannot send to bech32 address maybe related #7022
630,870
11.02.2021 21:46:51
-3,600
ca86e3572442d294674cb2c252a1540a15344ebe
wallet.bump_fee: (fix) make sure all inputs have same sequence number Previously, if bump_fee decided to add new inputs to the tx, they would have a different sequence number than the existing inputs. This was unintentional.
[ { "change_type": "MODIFY", "old_path": "electrum/tests/test_wallet_vertical.py", "new_path": "electrum/tests/test_wallet_vertical.py", "diff": "@@ -1446,7 +1446,7 @@ class TestWalletSending(TestCaseForTestnet):\ntx.version = 1\nif simulate_moving_txs:\npartial_tx = tx.serialize_as_bytes().hex()\n- s...
Python
MIT License
spesmilo/electrum
wallet.bump_fee: (fix) make sure all inputs have same sequence number Previously, if bump_fee decided to add new inputs to the tx, they would have a different sequence number than the existing inputs. This was unintentional.
630,870
11.02.2021 21:52:34
-3,600
914eb9989d3a595ba4ee3889aa9f171551e50091
wallet: minor clean-up of tx.set_rbf() calls Better to always call it, to make sure inputs have identical sequence numbers.
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/uix/dialogs/tx_dialog.py", "new_path": "electrum/gui/kivy/uix/dialogs/tx_dialog.py", "diff": "@@ -282,8 +282,7 @@ class TxDialog(Factory.Popup):\nexcept CannotBumpFee as e:\nself.app.show_error(str(e))\nreturn\n- if is_final:\n- new_tx.set_rb...
Python
MIT License
spesmilo/electrum
wallet: minor clean-up of tx.set_rbf() calls Better to always call it, to make sure inputs have identical sequence numbers.
630,870
12.02.2021 05:28:01
-3,600
83750a861fb594c0316cac3c36c53b28bbb4485a
ledger: bump min btchip-python (0.1.30->0.1.32) So that it has fixes
[ { "change_type": "MODIFY", "old_path": "contrib/deterministic-build/requirements-hw.txt", "new_path": "contrib/deterministic-build/requirements-hw.txt", "diff": "@@ -4,8 +4,8 @@ base58==2.0.1 \\\nbitbox02==5.1.0 \\\n--hash=sha256:0562bc93d87afd89879e130c60c8dbfaffa8a1c3deff01201702939c9594d242 \\\n-...
Python
MIT License
spesmilo/electrum
ledger: bump min btchip-python (0.1.30->0.1.32) So that it has https://github.com/LedgerHQ/btchip-python/pull/42 fixes #6928
630,870
12.02.2021 21:31:18
-3,600
4346d2fc765f40a9388108c06cf1ee132d663923
synchronizer: ensure fairness between wallets Scenario (prior to change): User opens wallet1 with 10k addresses, and then immediately opens wallet2 with 100 addresses. wallet1 will synchronise first, fully, and only then will wallet2 start syncing. Now, wallet1 and wallet2 will sync concurrently (and wallet2 will finis...
[ { "change_type": "MODIFY", "old_path": "electrum/synchronizer.py", "new_path": "electrum/synchronizer.py", "diff": "@@ -61,6 +61,10 @@ class SynchronizerBase(NetworkJobOnDefaultServer):\ndef __init__(self, network: 'Network'):\nself.asyncio_loop = network.asyncio_loop\nself._reset_request_counters()...
Python
MIT License
spesmilo/electrum
synchronizer: ensure fairness between wallets Scenario (prior to change): User opens wallet1 with 10k addresses, and then immediately opens wallet2 with 100 addresses. wallet1 will synchronise first, fully, and only then will wallet2 start syncing. Now, wallet1 and wallet2 will sync concurrently (and wallet2 will fin...
630,870
13.02.2021 03:29:23
-3,600
01ed5e7345ba2c0960b2cea6aa2aed2a942a2495
wallet.bump_fee: (fix) method2 was bumping too much if output was rm-ed regression from
[ { "change_type": "MODIFY", "old_path": "electrum/tests/test_wallet_vertical.py", "new_path": "electrum/tests/test_wallet_vertical.py", "diff": "@@ -1027,7 +1027,7 @@ class TestWalletSending(TestCaseForTestnet):\ntx.version = 2\nif simulate_moving_txs:\npartial_tx = tx.serialize_as_bytes().hex()\n- s...
Python
MIT License
spesmilo/electrum
wallet.bump_fee: (fix) method2 was bumping too much if output was rm-ed regression from bafe8a2fff1077de7a19a32dc359df5f12a2e32c
630,969
15.02.2021 16:47:42
-3,600
1323bd4f9cbf5e87b5d6eb03216d8fc6e331954b
open_channel_coroutine: do not timeout on sign_transaction. fixes
[ { "change_type": "MODIFY", "old_path": "electrum/lnpeer.py", "new_path": "electrum/lnpeer.py", "diff": "@@ -563,7 +563,6 @@ class Peer(Logger):\n@temporarily_reserve_funding_tx_change_address\nasync def channel_establishment_flow(\nself, *,\n- password: Optional[str],\nfunding_tx: 'PartialTransactio...
Python
MIT License
spesmilo/electrum
open_channel_coroutine: do not timeout on sign_transaction. fixes #7027
630,870
16.02.2021 22:28:11
-3,600
1dea8393d76724965d2e84f67a1c0e5819b051e8
wallet: follow-up
[ { "change_type": "MODIFY", "old_path": "electrum/wallet.py", "new_path": "electrum/wallet.py", "diff": "@@ -1620,6 +1620,7 @@ class Abstract_Wallet(AddressSynchronizer, ABC):\nif not isinstance(tx, PartialTransaction):\ntx = PartialTransaction.from_tx(tx)\nassert isinstance(tx, PartialTransaction)\n...
Python
MIT License
spesmilo/electrum
wallet: follow-up b080df9cff55675935ca3649c6aaa01e8e667b37
630,969
17.02.2021 16:44:43
-3,600
f4fe80dfd1ed2e1032796582676dcd6a370e4e05
kivy: show node alias in channels dialog. Rename the menu back to 'Channels'
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main.kv", "new_path": "electrum/gui/kivy/main.kv", "diff": "@@ -461,7 +461,7 @@ BoxLayout:\ntext: _('Addresses')\nActionOvrButton:\nname: 'lightning_channels_dialog'\n- text: _('Lightning')\n+ text: _('Channels')\nActionOvrButton:\nname: 'set...
Python
MIT License
spesmilo/electrum
kivy: show node alias in channels dialog. Rename the menu back to 'Channels'
630,969
09.02.2021 15:09:27
-3,600
cf818fe08cdb1dcfc5651d9c2ea3edeee68c7e3e
Trampoline routing: - add support for trampoline forwarding - add regtest with trampoline payment
[ { "change_type": "MODIFY", "old_path": "electrum/lnonion.py", "new_path": "electrum/lnonion.py", "diff": "@@ -349,7 +349,8 @@ class ProcessedOnionPacket(NamedTuple):\ndef process_onion_packet(\nonion_packet: OnionPacket,\nassociated_data: bytes,\n- our_onion_private_key: bytes) -> ProcessedOnionPack...
Python
MIT License
spesmilo/electrum
Trampoline routing: - add support for trampoline forwarding - add regtest with trampoline payment
630,969
11.02.2021 14:46:36
-3,600
0e23f33f59b3ae841eee89cfcccf05af8a56c60b
kivy and qt: adapt open_channel dialogs to trampoline
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/uix/dialogs/lightning_open_channel.py", "new_path": "electrum/gui/kivy/uix/dialogs/lightning_open_channel.py", "diff": "@@ -21,6 +21,7 @@ Builder.load_string('''\n#:import KIVY_GUI_PATH electrum.gui.kivy.KIVY_GUI_PATH\n<LightningOpenChannelDi...
Python
MIT License
spesmilo/electrum
kivy and qt: adapt open_channel dialogs to trampoline
630,969
17.02.2021 18:18:21
-3,600
bab22c8c53a274b74e3a17f6c7bc9d3eba1ddb10
minor: fix exception
[ { "change_type": "MODIFY", "old_path": "electrum/lnpeer.py", "new_path": "electrum/lnpeer.py", "diff": "@@ -587,7 +587,7 @@ class Peer(Logger):\nawait asyncio.wait_for(self.initialized, LN_P2P_NETWORK_TIMEOUT)\n# trampoline is not yet in features\nif not self.lnworker.channel_db and not self.lnworke...
Python
MIT License
spesmilo/electrum
minor: fix exception
630,870
18.02.2021 00:36:20
-3,600
b856336f8ce868717457676112a453b370eb9408
bip32: add new test vectors from BIP also yet-to-be-merged test from
[ { "change_type": "MODIFY", "old_path": "electrum/tests/test_bitcoin.py", "new_path": "electrum/tests/test_bitcoin.py", "diff": "@@ -463,23 +463,23 @@ class Test_xprv_xpub(ElectrumTestCase):\n'xtype': 'p2wpkh'},\n)\n- def _do_test_bip32(self, seed: str, sequence):\n+ def _do_test_bip32(self, seed: st...
Python
MIT License
spesmilo/electrum
bip32: add new test vectors from BIP also yet-to-be-merged test from https://github.com/bitcoin/bips/pull/1030
630,870
18.02.2021 02:40:21
-3,600
24d47022b465705c710c5fa92f6e46d21d4b380c
util: assert that Decimal precision is sufficient Just for sanity... e.g. when importing electrum as a python library, the calling code could have changed the precision. related:
[ { "change_type": "MODIFY", "old_path": "electrum/util.py", "new_path": "electrum/util.py", "diff": "@@ -630,6 +630,13 @@ def format_satoshis_plain(x, *, decimal_point=8) -> str:\nreturn \"{:.8f}\".format(Decimal(x) / scale_factor).rstrip('0').rstrip('.')\n+# Check that Decimal precision is sufficien...
Python
MIT License
spesmilo/electrum
util: assert that Decimal precision is sufficient Just for sanity... e.g. when importing electrum as a python library, the calling code could have changed the precision. related: #5223
630,870
18.02.2021 02:18:09
-3,600
0aa36ab5ac55399050aa772d3e260d4e5450d776
invoices: validate 'amount' not to be out-of-bounds
[ { "change_type": "MODIFY", "old_path": "electrum/invoices.py", "new_path": "electrum/invoices.py", "diff": "@@ -9,7 +9,7 @@ from .i18n import _\nfrom .util import age\nfrom .lnaddr import lndecode, LnAddr\nfrom . import constants\n-from .bitcoin import COIN\n+from .bitcoin import COIN, TOTAL_COIN_SU...
Python
MIT License
spesmilo/electrum
invoices: validate 'amount' not to be out-of-bounds
630,969
18.02.2021 10:59:45
-3,600
880353287d26914b2c2b7c3c6f38c597d7054eec
lnrater: fix
[ { "change_type": "MODIFY", "old_path": "electrum/lnrater.py", "new_path": "electrum/lnrater.py", "diff": "@@ -83,7 +83,6 @@ class LNRater(Logger):\nLogger.__init__(self)\nself.lnworker = lnworker\nself.network = network\n- self.channel_db = self.network.channel_db\nself._node_stats: Dict[bytes, Node...
Python
MIT License
spesmilo/electrum
lnrater: fix #6764
630,969
18.02.2021 11:39:52
-3,600
ba5e73d978a6a79432e1cca6cec431d0c2ca65c8
kivy: show routing options explicitly
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/uix/dialogs/choice_dialog.py", "new_path": "electrum/gui/kivy/uix/dialogs/choice_dialog.py", "diff": "@@ -10,12 +10,17 @@ Builder.load_string('''\n<ChoiceDialog@Popup>\nid: popup\ntitle: ''\n+ description: ''\nsize_hint: 0.8, 0.8\npos_hint: {...
Python
MIT License
spesmilo/electrum
kivy: show routing options explicitly
630,969
18.02.2021 13:36:54
-3,600
d906819b03454dde869237873f6b9285828e1905
minor fix following method rename
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py", "new_path": "electrum/gui/kivy/uix/dialogs/lightning_channels.py", "diff": "@@ -479,7 +479,7 @@ class ChannelDetailsPopup(Popup, Logger):\n_(\"This channel may still be used for receiving, but it is frozen ...
Python
MIT License
spesmilo/electrum
minor fix following method rename
630,870
18.02.2021 20:40:38
-3,600
1ee99cf9c457f1fd1a417a3c04d3fe8af9e860a2
interface: "block.headers": nicer error if server uses too low 'max' related
[ { "change_type": "MODIFY", "old_path": "electrum/interface.py", "new_path": "electrum/interface.py", "diff": "@@ -608,6 +608,9 @@ class Interface(Logger):\nassert_hex_str(res['hex'])\nif len(res['hex']) != HEADER_SIZE * 2 * res['count']:\nraise RequestCorrupted('inconsistent chunk hex and count')\n+...
Python
MIT License
spesmilo/electrum
interface: "block.headers": nicer error if server uses too low 'max' related https://github.com/spesmilo/electrumx/commit/4ff6a9c4f022bcddad9c7f99d6f2f47360fb222d
630,870
19.02.2021 02:29:00
-3,600
d75f9c6e800ca1c78f596a9c3d437339fe8bb217
kivy: receive request: fix RefLabel for "Address" so it can be exported It is 'data' rather than 'text' that should be set for a RefLabel. fixes
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/uix/dialogs/request_dialog.py", "new_path": "electrum/gui/kivy/uix/dialogs/request_dialog.py", "diff": "@@ -50,7 +50,8 @@ Builder.load_string('''\nTopLabel:\ntext: (_('Address') if not root.is_lightning else _('Payment hash')) + ': '\nRefLabe...
Python
MIT License
spesmilo/electrum
kivy: receive request: fix RefLabel for "Address" so it can be exported It is 'data' rather than 'text' that should be set for a RefLabel. fixes #7042
630,896
19.02.2021 09:27:28
-3,600
3ddb83fad390396c5206764cf2f565e7d917afb9
lnworker: move NoPathFound to lnutil
[ { "change_type": "MODIFY", "old_path": "electrum/lnutil.py", "new_path": "electrum/lnutil.py", "diff": "@@ -290,6 +290,9 @@ class UpfrontShutdownScriptViolation(RemoteMisbehaving): pass\nclass NotFoundChanAnnouncementForUpdate(Exception): pass\nclass PaymentFailure(UserFacingException): pass\n+class...
Python
MIT License
spesmilo/electrum
lnworker: move NoPathFound to lnutil
630,924
19.02.2021 12:45:45
-7,200
55fdddb0b80482c2622d97a0bd8305ead6ad7707
Add back the 'to_height' and 'from_height' to onchain_history command Exclude unconfirmed transactions from --to_height and include them into --from_height. The reason being that an unconfirmed transaction will end up eventually into the last block which most of the time will be higher than --from_height
[ { "change_type": "MODIFY", "old_path": "electrum/commands.py", "new_path": "electrum/commands.py", "diff": "@@ -662,10 +662,13 @@ class Commands:\nreturn result\n@command('w')\n- async def onchain_history(self, year=None, show_addresses=False, show_fiat=False, wallet: Abstract_Wallet = None):\n+ asy...
Python
MIT License
spesmilo/electrum
Add back the 'to_height' and 'from_height' to onchain_history command Exclude unconfirmed transactions from --to_height and include them into --from_height. The reason being that an unconfirmed transaction will end up eventually into the last block which most of the time will be higher than --from_height
630,969
19.02.2021 15:49:37
-3,600
9b7f9219a36e1dab39385345270643479a5c0334
fix travis builds (update openssl)
[ { "change_type": "MODIFY", "old_path": "contrib/build-linux/appimage/Dockerfile", "new_path": "contrib/build-linux/appimage/Dockerfile", "diff": "@@ -15,9 +15,9 @@ RUN apt-get update -q && \\\nautoconf=2.69-9 \\\nlibtool=2.4.6-0.1 \\\nxz-utils=5.1.1alpha+20120614-2ubuntu2 \\\n- libssl-dev=1.0.2g-1ub...
Python
MIT License
spesmilo/electrum
fix travis builds (update openssl)
630,969
20.02.2021 14:20:55
-3,600
3a40d48a6e5add78a67a1fb5916428d604de4612
lnpeer: remove recursve call in maybe_fulfill_htlc
[ { "change_type": "MODIFY", "old_path": "electrum/lnpeer.py", "new_path": "electrum/lnpeer.py", "diff": "@@ -1540,21 +1540,9 @@ class Peer(Logger):\ncode=OnionFailureCode.FINAL_INCORRECT_HTLC_AMOUNT,\ndata=total_msat.to_bytes(8, byteorder=\"big\"))\n- outgoing_node_id = processed_onion.hop_data.paylo...
Python
MIT License
spesmilo/electrum
lnpeer: remove recursve call in maybe_fulfill_htlc
630,870
21.02.2021 04:48:36
-3,600
8bdbcf73d9796e1eb5f77391667372229d1f1a33
network.py: update bitcoin core error msg whitelist Also add descriptive text for some of the common messages people ask for help with. closes related related
[ { "change_type": "MODIFY", "old_path": "electrum/network.py", "new_path": "electrum/network.py", "diff": "@@ -902,23 +902,28 @@ 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)\nser...
Python
MIT License
spesmilo/electrum
network.py: update bitcoin core error msg whitelist Also add descriptive text for some of the common messages people ask for help with. closes #6760 related #5851 related #6985
630,969
21.02.2021 11:41:34
-3,600
1c52203346f9049f6c3fe201f672960339d8273b
wizard: focus password field (fix
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/installwizard.py", "new_path": "electrum/gui/qt/installwizard.py", "diff": "@@ -425,8 +425,10 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard):\nself.please_wait.setVisible(False)\ndef exec_layout(self, layout, title=None, raise_on_...
Python
MIT License
spesmilo/electrum
wizard: focus password field (fix #7048)
630,896
19.02.2021 08:20:46
-3,600
613bab145d269c21383d23514d187207c7119f97
mpp_split: implement splitting logic
[ { "change_type": "ADD", "old_path": null, "new_path": "electrum/mpp_split.py", "diff": "+import random\n+from typing import List, Tuple, Optional, Sequence, Dict\n+from collections import defaultdict\n+from .util import profiler\n+from .lnutil import NoPathFound\n+\n+PART_PENALTY = 1.0 # 1.0 results...
Python
MIT License
spesmilo/electrum
mpp_split: implement splitting logic
630,896
19.02.2021 08:34:03
-3,600
9f84fa9580eeb63547b9bb84d3e09a0dc0606484
lnonion: add total_msat to onion payment data
[ { "change_type": "MODIFY", "old_path": "electrum/lnonion.py", "new_path": "electrum/lnonion.py", "diff": "@@ -261,7 +261,7 @@ def new_onion_packet(payment_path_pubkeys: Sequence[bytes], session_key: bytes,\nhmac=next_hmac)\n-def calc_hops_data_for_payment(route: 'LNPaymentRoute', amount_msat: int,\n...
Python
MIT License
spesmilo/electrum
lnonion: add total_msat to onion payment data
630,896
19.02.2021 09:04:19
-3,600
e9fe0ed22bcd7edb54263bb7bcc1924d58d46d6d
lnworker: use suggest_splits for multiple routes
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -76,6 +76,7 @@ from .channel_db import UpdateStatus\nfrom .channel_db import get_mychannel_info, get_mychannel_policy\nfrom .submarine_swaps import SwapManager\nfrom .channel_db import Chan...
Python
MIT License
spesmilo/electrum
lnworker: use suggest_splits for multiple routes
630,969
22.02.2021 14:24:23
-3,600
64c9ddb88dab4c7284ac3f274b4f549e3248cd52
MPP: refactor code
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -1378,16 +1378,6 @@ class LNWallet(LNWorker):\nnode_features=trampoline_features))\nreturn route\n- def channels_with_funds(self) -> Dict[bytes, int]:\n- \"\"\"Determines a dict of channels...
Python
MIT License
spesmilo/electrum
MPP: refactor code
630,969
22.02.2021 15:55:22
-3,600
827cd344d518440e7c53975ecfc7f846e33a87f7
enable MPP with trampoline
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -1004,6 +1004,7 @@ class LNWallet(LNWorker):\ninvoice_pubkey=decoded_invoice.pubkey.serialize(),\nmin_cltv_expiry=decoded_invoice.get_min_final_cltv_expiry(),\nr_tags=decoded_invoice.get_ro...
Python
MIT License
spesmilo/electrum
enable MPP with trampoline
630,969
29.12.2020 14:37:53
-3,600
0369829e5edb94a85d3046e5288738e5aa2cb5cf
MPP: can_send/can_receive is now the sum, no longer the max
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/channels_list.py", "new_path": "electrum/gui/qt/channels_list.py", "diff": "@@ -32,15 +32,17 @@ class ChannelsList(MyTreeView):\nclass Columns(IntEnum):\nSHORT_CHANID = 0\nNODE_ALIAS = 1\n- LOCAL_BALANCE = 2\n- REMOTE_BALANCE = 3\n- CHANNEL_STA...
Python
MIT License
spesmilo/electrum
MPP: can_send/can_receive is now the sum, no longer the max
630,870
22.02.2021 20:01:45
-3,600
baad8ab3ff4a50905dc315927af518153a215d2e
lnutil.LnFeatures: update context for "option_support_large_channel" this was changed in
[ { "change_type": "MODIFY", "old_path": "electrum/lnutil.py", "new_path": "electrum/lnutil.py", "diff": "@@ -949,8 +949,8 @@ class LnFeatures(IntFlag):\nOPTION_SUPPORT_LARGE_CHANNEL_REQ = 1 << 18\nOPTION_SUPPORT_LARGE_CHANNEL_OPT = 1 << 19\n- _ln_feature_contexts[OPTION_SUPPORT_LARGE_CHANNEL_OPT] = (...
Python
MIT License
spesmilo/electrum
lnutil.LnFeatures: update context for "option_support_large_channel" this was changed in https://github.com/lightningnetwork/lightning-rfc/pull/773
630,870
22.02.2021 20:04:47
-3,600
e42120cac51e0897354e3f4a3703b6df1bcda383
lnutil.LnFeatures: update LN_FEATURES_IMPLEMENTED
[ { "change_type": "MODIFY", "old_path": "electrum/lnutil.py", "new_path": "electrum/lnutil.py", "diff": "@@ -1043,6 +1043,7 @@ LN_FEATURES_IMPLEMENTED = (\n| LnFeatures.OPTION_STATIC_REMOTEKEY_OPT | LnFeatures.OPTION_STATIC_REMOTEKEY_REQ\n| LnFeatures.VAR_ONION_OPT | LnFeatures.VAR_ONION_REQ\n| LnFea...
Python
MIT License
spesmilo/electrum
lnutil.LnFeatures: update LN_FEATURES_IMPLEMENTED
630,870
23.02.2021 02:13:16
-3,600
26d73cba0ee6ad8e07ba2262dc716a8658863899
interface.get_history: enforce sorted order of heights related:
[ { "change_type": "MODIFY", "old_path": "electrum/interface.py", "new_path": "electrum/interface.py", "diff": "@@ -938,14 +938,21 @@ class Interface(Logger):\nres = await self.session.send_request('blockchain.scripthash.get_history', [sh])\n# check response\nassert_list_or_tuple(res)\n+ prev_height =...
Python
MIT License
spesmilo/electrum
interface.get_history: enforce sorted order of heights related: #7058
630,870
23.02.2021 04:19:47
-3,600
4937fd2788211e2c20f31a6e8b5cdbf965de0c6b
scripts: add script that broadcasts tx to lots of servers useful when trying to RBF a tx that did not opt-in to RBF
[ { "change_type": "ADD", "old_path": null, "new_path": "electrum/scripts/txbroadcast.py", "diff": "+#!/usr/bin/env python3\n+#\n+# Connect to lots of servers and broadcast a given tx to each.\n+\n+import sys\n+import asyncio\n+\n+from electrum.network import filter_protocol, Network\n+from electrum.u...
Python
MIT License
spesmilo/electrum
scripts: add script that broadcasts tx to lots of servers useful when trying to RBF a tx that did not opt-in to RBF
630,896
23.02.2021 07:47:58
-3,600
9b0b78eca1c233abf6ab63396a542b37b0a04bd7
mpp_split: fix tests for python versions < 3.8
[ { "change_type": "MODIFY", "old_path": "electrum/tests/test_mpp_split.py", "new_path": "electrum/tests/test_mpp_split.py", "diff": "-import random\n-\nimport electrum.mpp_split as mpp_split # side effect for PART_PENALTY\nfrom electrum.lnutil import NoPathFound\n@@ -11,8 +9,6 @@ PART_PENALTY = mpp_s...
Python
MIT License
spesmilo/electrum
mpp_split: fix tests for python versions < 3.8
630,969
23.02.2021 10:58:21
-3,600
10611876ee6204ce0f18c2b267a300d132b44805
qt: update swap button together with can_send
[ { "change_type": "MODIFY", "old_path": "electrum/gui/qt/channels_list.py", "new_path": "electrum/gui/qt/channels_list.py", "diff": "@@ -235,7 +235,6 @@ 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
qt: update swap button together with can_send
630,974
23.02.2021 12:51:23
-7,200
f6011dc31a2b2a43343543234e7f15d5fc32ff35
kivy: add app.scan_qr_non_android
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main_window.py", "new_path": "electrum/gui/kivy/main_window.py", "diff": "@@ -516,7 +516,7 @@ class ElectrumWindow(App, Logger):\ndef scan_qr(self, on_complete):\nif platform != 'android':\n- return\n+ return self.scan_qr_non_android(on_compl...
Python
MIT License
spesmilo/electrum
kivy: add app.scan_qr_non_android
630,870
23.02.2021 22:38:53
-3,600
4a8286c744ab542d9893f202468ec86a171af791
qrscanner: nicer error messages
[ { "change_type": "MODIFY", "old_path": "electrum/gui/kivy/main_window.py", "new_path": "electrum/gui/kivy/main_window.py", "diff": "@@ -81,7 +81,8 @@ Label.register(\nfrom electrum.util import (NoDynamicFeeEstimates, NotEnoughFunds,\n- BITCOIN_BIP21_URI_SCHEME, LIGHTNING_URI_SCHEME)\n+ BITCOIN_BIP21...
Python
MIT License
spesmilo/electrum
qrscanner: nicer error messages
630,870
24.02.2021 12:54:43
-3,600
a9d0e3fca9dd756b7629890f04429a056d893a88
tests: try to eliminate random failures from mpp_split tests closes:
[ { "change_type": "MODIFY", "old_path": "electrum/mpp_split.py", "new_path": "electrum/mpp_split.py", "diff": "@@ -24,7 +24,7 @@ def unique_hierarchy(hierarchy: Dict[int, List[Dict[bytes, int]]]) -> Dict[int,\nfor config in configs:\n# config dict can be out of order, so sort, otherwise not unique\nu...
Python
MIT License
spesmilo/electrum
tests: try to eliminate random failures from mpp_split tests closes: #7062
630,870
24.02.2021 13:32:29
-3,600
52eb9dcad938de3f09300e2f0b5256ac88d1f336
tests: fix thinko in ElectrumTestCase base class can't see why it was cross-calling the setUpClass from the individual test setUp
[ { "change_type": "MODIFY", "old_path": "electrum/tests/__init__.py", "new_path": "electrum/tests/__init__.py", "diff": "@@ -31,11 +31,11 @@ class ElectrumTestCase(SequentialTestCase):\n\"\"\"Base class for our unit tests.\"\"\"\ndef setUp(self):\n- super().setUpClass()\n+ super().setUp()\nself.elect...
Python
MIT License
spesmilo/electrum
tests: fix thinko in ElectrumTestCase base class can't see why it was cross-calling the setUpClass from the individual test setUp
630,870
24.02.2021 13:38:04
-3,600
0a5b714643c6bd1479ede01dd24c5d18981a8029
lnworker: add "endurance" ACINQ testnet node as hardcoded trampoline
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -141,13 +141,21 @@ FALLBACK_NODE_LIST_MAINNET = [\n# hardcoded list\n+# TODO for some pubkeys, there are multiple network addresses we could try\nTRAMPOLINE_NODES_MAINNET = {\n'ACINQ': LNPe...
Python
MIT License
spesmilo/electrum
lnworker: add "endurance" ACINQ testnet node as hardcoded trampoline
630,969
24.02.2021 16:14:19
-3,600
152894e6a95c016538af2030063e53b9781bf9f6
calc_hops_data: total_msat should be optional
[ { "change_type": "MODIFY", "old_path": "electrum/lnonion.py", "new_path": "electrum/lnonion.py", "diff": "@@ -261,8 +261,8 @@ def new_onion_packet(payment_path_pubkeys: Sequence[bytes], session_key: bytes,\nhmac=next_hmac)\n-def calc_hops_data_for_payment(route: 'LNPaymentRoute', amount_msat: int, t...
Python
MIT License
spesmilo/electrum
calc_hops_data: total_msat should be optional
630,969
24.02.2021 15:00:23
-3,600
391dba7117182237aad4195ce95a28cde999b6aa
Refactor find_route_for_payment - remove duplicated code - rename variable names to be consistent with the 'path', 'route' terminology - compute private route before route
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -1470,33 +1470,21 @@ class LNWallet(LNWorker):\nif chan.short_channel_id is not None\n}\nblacklist = self.network.channel_blacklist.get_current_list()\n- for private_route in r_tags:\n- if ...
Python
MIT License
spesmilo/electrum
Refactor find_route_for_payment - remove duplicated code - rename variable names to be consistent with the 'path', 'route' terminology - compute private route before route
630,969
24.02.2021 16:11:15
-3,600
bf1d51695953297421dc7453835af10de9354ce3
lnworker: add fees from private path to the amount passed to find_route. (see
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -1473,6 +1473,7 @@ class LNWallet(LNWorker):\n# first try with routing hints, then without\nfor private_path in r_tags + [[]]:\nprivate_route = []\n+ amount_for_node = amount_msat\npath = f...
Python
MIT License
spesmilo/electrum
lnworker: add fees from private path to the amount passed to find_route. (see #7050)
630,870
24.02.2021 16:46:59
-3,600
ab9bf07a792bb2637201eed420158d71a9880c22
(trivial) lnrouter: fix type of TrampolineEdge.short_channel_id also, use keyword arguments inside attr.ib() as PyCharm was complaining
[ { "change_type": "MODIFY", "old_path": "electrum/lnrouter.py", "new_path": "electrum/lnrouter.py", "diff": "@@ -99,17 +99,20 @@ class RouteEdge(PathEdge):\nfeatures = LnFeatures(self.node_features)\nreturn features.supports(LnFeatures.VAR_ONION_OPT)\n- def is_trampoline(self):\n+ def is_trampoline(s...
Python
MIT License
spesmilo/electrum
(trivial) lnrouter: fix type of TrampolineEdge.short_channel_id also, use keyword arguments inside attr.ib() as PyCharm was complaining
630,969
24.02.2021 18:25:49
-3,600
c9d6d11604b3a90ff1d0e1413da94ff9f96041cd
create_trampoline_route: check that we can pay the amount and the fees, and that the route is sane
[ { "change_type": "MODIFY", "old_path": "electrum/lnworker.py", "new_path": "electrum/lnworker.py", "diff": "@@ -1281,6 +1281,7 @@ class LNWallet(LNWorker):\ndef create_trampoline_route(\nself, amount_msat:int,\n+ min_cltv_expiry:int,\ninvoice_pubkey:bytes,\ninvoice_features:int,\nchannels: List[Chan...
Python
MIT License
spesmilo/electrum
create_trampoline_route: check that we can pay the amount and the fees, and that the route is sane
630,870
24.02.2021 18:34:17
-3,600
d800f88bfcdc83a2cb9d359791c0c7e8cf6fcaff
(trivial) wallet: fix over-indentation
[ { "change_type": "MODIFY", "old_path": "electrum/wallet.py", "new_path": "electrum/wallet.py", "diff": "@@ -3033,7 +3033,7 @@ def restore_wallet_from_text(text, *, path, config: SimpleConfig,\nreturn {'wallet': wallet, 'msg': msg}\n-def check_password_for_directory(config, old_password, new_password...
Python
MIT License
spesmilo/electrum
(trivial) wallet: fix over-indentation
630,870
24.02.2021 20:03:12
-3,600
691ebaf4f816b45ca10eabceae3068b7465e6bc5
lnworker/lnpeer: add some type hints, force some kwargs
[ { "change_type": "MODIFY", "old_path": "electrum/lnonion.py", "new_path": "electrum/lnonion.py", "diff": "@@ -437,9 +437,12 @@ class OnionRoutingFailure(Exception):\nreturn str(self.code.name)\nreturn f\"Unknown error ({self.code!r})\"\n-def construct_onion_error(reason: OnionRoutingFailure,\n+\n+de...
Python
MIT License
spesmilo/electrum
lnworker/lnpeer: add some type hints, force some kwargs
630,870
24.02.2021 20:34:34
-3,600
9024419fdcd78dc3740c544cf81578c18ac87f02
lnpeer: MPP receive: require payment_secret for each htlc says: The final node: if it supports basic_mpp: MUST require payment_secret for all HTLCs in the set
[ { "change_type": "MODIFY", "old_path": "electrum/lnpeer.py", "new_path": "electrum/lnpeer.py", "diff": "@@ -1559,7 +1559,10 @@ class Peer(Logger):\ntry:\npayment_secret_from_onion = processed_onion.hop_data.payload[\"payment_data\"][\"payment_secret\"]\nexcept:\n- pass # skip\n+ if total_msat > amt_...
Python
MIT License
spesmilo/electrum
lnpeer: MPP receive: require payment_secret for each htlc BOLT-04 says: The final node: if it supports basic_mpp: MUST require payment_secret for all HTLCs in the set https://github.com/lightningnetwork/lightning-rfc/blob/90468030d5c374ced568c91df5d37699fe020010/04-onion-routing.md#basic-multi-part-payments