Commit Graph

17999 Commits

Author SHA1 Message Date
Sander van Grieken 9b520d31ab qt: fix defer eval of maybe_master_pubkey in case of electrum seed with seed extension 2025-02-10 11:28:41 +01:00
SomberNight 5b2068976c config: remove a footgun 2025-02-07 16:22:44 +00:00
SomberNight ac20422fb7 lnpeer: log their_features in INIT msg 2025-02-06 17:26:26 +00:00
SomberNight b55b8d183b ci: fix "regtest" task failing due to pip weirdness
pip was failing to install "electrum_aionostr>=0.0.7".
This was when using "python3-pip" from ubuntu 22.04 apt.

```
Discarding https://files.pythonhosted.org/packages/91/8b/95a16d58c8d02c6f8919fd41895c65312179d66abad5d70e9800c942ac61/electrum_aionostr-0.0.7.tar.gz#sha256=e0b45d608977891c3bb4f6a4dee9a4e843fa661ceca31f81e7b992e65117070a (from https://pypi.org/simple/electrum-aionostr/) (requires-python:>=3.8): Requested unknown from https://files.pythonhosted.org/packages/91/8b/95a16d58c8d02c6f8919fd41895c65312179d66abad5d70e9800c942ac61/electrum_aionostr-0.0.7.tar.gz#sha256=e0b45d608977891c3bb4f6a4dee9a4e843fa661ceca31f81e7b992e65117070a (from Electrum==4.5.8) has inconsistent name: filename has 'electrum-aionostr', but metadata has 'unknown'
```

Updating to newer pip directly using pip seems to fix this:
```
$ python3 -m pip install --user --upgrade pip
Requirement already satisfied: pip in /usr/lib/python3/dist-packages (22.0.2)
Collecting pip
  Downloading pip-25.0-py3-none-any.whl (1.8 MB)
```
2025-02-05 13:23:42 +00:00
SomberNight 40842fad39 requirements: bump electrum-ecc and electrum-aionostr
note: these sdists are now reproducibly built.
Ideally the person updating the pinned hash should be different from the one who uploaded the dep to PyPI and reproduce and verify the hash. This prevents hiding a backdoor in just the sdist uploaded to PyPI.

but people can try to reproduce the PyPI sdists at any time and ring alarm bells if they can't
2025-02-04 17:00:21 +00:00
ghost43 246a7294da Merge pull request #9522 from f321x/updated_mainnet_fallback_nodes
Update mainnet ln fallback nodes
2025-02-04 12:41:57 +00:00
Sander van Grieken 0debe6675a qt: whitespace, imports 2025-02-04 11:13:37 +01:00
f321x 2c67ed8491 update mainnet ln fallback nodes 2025-02-04 09:43:40 +01:00
ghost43 1cdb61d966 Merge pull request #9476 from accumulator/qml_calc_max_amount
qml: calculate max amount when max toggle is enabled
2025-02-03 13:37:07 +00:00
ThomasV c725a29c4d Merge pull request #9466 from f321x/improved_trampoline_error
Separate between fee related NoPathFound and other causes when doing lightning payments/forwards
2025-02-03 12:22:31 +01:00
Sander van Grieken 605b511b43 qt,qml: move get_text_not_enough_funds_mentioning_frozen and get_frozen_balance_str to backend wallet
Note: the qt gui used to include FX in get_frozen_balance_str, but that is not replicated now.
2025-01-31 18:03:21 +01:00
ghost43 8ac27baba7 Merge pull request #9465 from f321x/locale_depreciation
Use getlocale() instead of getdefaultlocale() in crash reporter
2025-01-31 15:08:54 +00:00
f321x 5eb9aa074e change to separate exception class for too low fees
store exception in variable instead of using a bool flag

add default str to routing exceptions

Add separate exception class to handle fee related payment errors
2025-01-28 16:15:03 +01:00
f321x 41e32145a8 Add maybe_fee_related bool to NoPathFound and set it on instanciation in according places 2025-01-28 15:58:03 +01:00
SomberNight 309b2a96af Merge branch '202501_chains': mv chain-specific json files to chains/ 2025-01-27 14:37:39 +00:00
SomberNight 172c3721bd follow-up prev: include chains/ folder in win and mac binaries 2025-01-27 14:21:34 +00:00
SomberNight 9bef4a5322 constants: move mainnet/testnet/regtest-specific json files to chains/
note: I find "chains" less ambiguous than "networks" or "net".
Though the codebase already uses "net"/"network" for the same meaning,
e.g. see `electrum.constants.net` or the `getinfo` cmd dict containing a "network" key.. :/
2025-01-27 13:40:41 +00:00
SomberNight 0779d9d7ae fallback ln nodes: simplify a bit
note: BitcoinRegtest subclasses BitcoinTestnet, so the FALLBACK_LN_NODES field should be overwritten

trivial follow-up of https://github.com/spesmilo/electrum/pull/9457
2025-01-27 13:19:29 +00:00
Sander van Grieken 25173b465f qml: network: show chain tips if > 1 2025-01-24 15:32:16 +01:00
Sander van Grieken 6a4b398209 qml: fix mixup help texts in ConfirmTxDialog, and take descriptions from config 2025-01-23 16:14:19 +01:00
Sander van Grieken 37f0069f2a qml: calculate max amount when max toggle is enabled 2025-01-23 16:00:01 +01:00
Sander van Grieken 01fcd2ee9a qml: remove .desktop suffix for QGuiApplication.setDesktopFileName 2025-01-23 15:34:40 +01:00
Sander van Grieken 19cd408f98 organize import, whitespace 2025-01-23 12:58:28 +01:00
ThomasV 373d875f08 Merge pull request #9457 from f321x/move_constants
Move fallback ln nodes in separate json files
2025-01-22 14:58:56 +01:00
accumulator f37809a834 Merge pull request #9470 from f321x/disable_gossip_compression
Remove query_short_channel_ids zlib compression
2025-01-22 14:33:54 +01:00
f321x e61dee2e65 remove zlib compression in query_short_channel_ids 2025-01-22 13:38:17 +01:00
Sander van Grieken 185f1976f3 Merge branch 'jgeden/dev' 2025-01-22 09:48:25 +01:00
Josh Geden 6331448860 qml: add config setting for max brightness on qr display 2025-01-22 09:47:10 +01:00
ThomasV a084ccc74c lnworker: fix how lightning balance is affected when a channel is
force-closed. Assert final balance in lnworker.get_history().

If we offered some HTLCs, we do not know yet whether they will be
redeemed by us or by the remote.
2025-01-21 17:14:17 +01:00
f321x 94c540bebf change from getdefaultlocale() to getlocale() 2025-01-21 10:17:12 +01:00
accumulator 08688c3523 Merge pull request #9461 from f321x/fix_rswap_exception
Handle reverse swap exception more gracefully
2025-01-20 22:48:24 +01:00
f321x 18d3d26b8d handle swap exception more gracefully
remove redundant Nne

handle reverse swap exception more gracefully

change reverse swap error

handle reverse swap exception more gracefully
2025-01-20 17:49:53 +01:00
ghost43 142f1d55e4 Merge pull request #9458 from f321x/bump_aiorpcx
Bump allowed aiorpcx version to 0.24
2025-01-20 12:19:00 +00:00
f321x 171aa5ee5a bump aiorpcx version 2025-01-20 12:11:55 +01:00
f321x eb600a3a14 move fallback ln nodes in separate json files and import them in constants 2025-01-20 11:13:23 +01:00
SomberNight f949c04cd2 gui/qt/history_list: (trivial) follow-up qt6 migration
ref https://github.com/spesmilo/electrum/pull/9189

```
Traceback (most recent call last):
  File "/home/user/wspace/electrum/electrum/gui/qt/my_treeview.py", line 166, in on_commitData
    self.tv.on_edited(idx, edit_key=edit_key, text=new_text)
  File "/home/user/wspace/electrum/electrum/gui/qt/history_list.py", line 699, in on_edited
    self.hm.update_fiat(index)
  File "/home/user/wspace/electrum/electrum/gui/qt/history_list.py", line 371, in update_fiat
    self.dataChanged.emit(idx, idx, [Qt.ItemDataRole.DisplayRole, Qt.ForegroundRole])
AttributeError: type object 'Qt' has no attribute 'ForegroundRole'
```
2025-01-17 15:25:19 +00:00
Sander van Grieken 897327da5a android: support regtest builds in a similar fashion to testnet builds, by package name. 2025-01-17 15:37:51 +01:00
ThomasV 28c053027f Merge branch 'master' of github.com:spesmilo/electrum 2025-01-17 14:43:15 +01:00
ThomasV f23971660e simplify helpconfig
Co-authored-by: ghost43 <somber.night@protonmail.com>
2025-01-17 14:40:33 +01:00
Sander van Grieken 19a4b149d3 qml: show proper Payment failed message when reason is empty (e.g. from previous session)
also capitalisation consistency.
2025-01-17 13:02:28 +01:00
Sander van Grieken 010b153ab2 qml: fix regression caused by ee42e09387
in qml, we need the password in-memory as the auth wrapper (@auth_protect) does not
pass the password to the wrapped fn.
2025-01-17 12:16:46 +01:00
ThomasV aacc6a9dd6 cmdline: add listconfig/helpconfig 2025-01-17 11:27:34 +01:00
ThomasV d25aca7a53 Merge pull request #9447 from f321x/node_ann_dns
Add gossip address field serialization, parsing and tests
2025-01-17 10:52:14 +01:00
ThomasV 64e07732f8 Merge pull request #9430 from SomberNight/202501_funding_pubkey_deriv
lightning: change derivation of funding_pubkey
2025-01-17 10:49:16 +01:00
f321x 1f626f3ad8 add gossip address field serialization, parsing and tests
add space

add gossip address field serialization, parsing and tests

fix linter

consolidate tests, fix intendation

refactor test in loops

add gossip address field serialization, parsing and tests
2025-01-17 10:33:56 +01:00
ThomasV 217b1d5c61 Merge pull request #9434 from SomberNight/202501_lnpeer_tramp_test1
tests: lnpeer: add test payment_trampoline_e2e A->T1->C>T2->E
2025-01-17 09:21:12 +01:00
Sander van Grieken 8ce7519558 qml: wordwrap channel type 2025-01-16 15:46:39 +01:00
ThomasV 0ef7235147 swaps: ignore exceptions in publish_offers
nostr may temporarily raise an exception; we don't want to kill the taskgroup
2025-01-16 09:51:26 +01:00
ThomasV 4672681c0c Merge pull request #9435 from f321x/debugging_gossip_toggle
Add fallback list of signet nodes and use it for ln peer discovery
2025-01-16 08:44:50 +01:00
f321x b1e1a39997 add fallback list of signet nodes 2025-01-15 16:40:30 +01:00