spesmilo / spesmilo/electrum

AssertionError:

Open
#7,432 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8.6k
Forks
3.5k
Avg merge
2d 8h
Merged PRs (30d)
61

Description

Crash Report

This crash report was reported through the automatic crash reporting system 🤖

Traceback

Traceback (most recent call last):
  File "electrum/gui/qt/main_window.py", line 2495, in <lambda>
  File "electrum/gui/qt/main_window.py", line 2425, in init_lightning_dialog
  File "electrum/gui/qt/main_window.py", line 160, in request_password
  File "electrum/gui/qt/main_window.py", line 2430, in _init_lightning_dialog
  File "electrum/wallet.py", line 352, in init_lightning
AssertionError

AssertionError: 

Reporter

This issue was reported by 9 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
4.1.5 3.7.9 (v3.7.9:13c94747c7, Aug 15 2020, 01:31:08) [Clang 6.0 (clang-600.0.57)] Darwin-20.5.0-x86_64-i386-64bit standard ?
4.1.5 3.9.9 (main, Nov 10 2011, 15:00:00) [GCC 11.2.0] Linux-4.15.0-162-generic-x86_64-with-glibc2.33 standard de_DE
4.2.1 3.9.11 (v3.9.11:2de452f8bf, Mar 16 2022, 10:34:36) [Clang 6.0 (clang-600.0.57)] macOS-10.16-x86_64-i386-64bit standard ?
4.4.1 3.9.13 (v3.9.13:6de2ca5339, May 17 2022, 11:23:25) [Clang 6.0 (clang-600.0.57)] macOS-10.16-x86_64-i386-64bit standard ?
4.4.1 3.9.13 (v3.9.13:6de2ca5339, May 17 2022, 11:23:25) [Clang 6.0 (clang-600.0.57)] macOS-10.16-x86_64-i386-64bit standard ?
4.4.5 3.9.13 (v3.9.13:6de2ca5339, May 17 2022, 11:23:25) [Clang 6.0 (clang-600.0.57)] macOS-10.16-x86_64-i386-64bit standard,imported ?
4.5.5 3.10.13 (main, Jun 28 2018, 19:01:02) [GCC 8.3.0] Linux-6.8.0-40-generic-x86_64-with-glibc2.35 standard en_US
4.5.5 3.10.13 (main, Jun 28 2018, 19:01:02) [GCC 8.3.0] Linux-6.8.0-40-generic-x86_64-with-glibc2.35 standard en_US
4.6.2 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] Windows-10-10.0.19044-SP0 standard de_DE

Additional Information

When try to enable the lightning network I get this message: "Lightning is not enabled because this wallet was created with an old version of Electrum. Create lightning keys?" When I click "Yes" I get this message: "Sorry! Something went wrong executing Electrum."

I am using Electrum 4.5.5. I created a new default wallet and the addresses start with bc1.


Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the traceback path in electrum/gui/qt/main_window.py, especially init_lightning_dialog and _init_lightning_dialog, then inspect the assertion at electrum/wallet.py:352. Reproduce enabling Lightning in a standard bc1 wallet and trace the old-wallet key-creation flow. Done means the reported wallet can enable Lightning without the AssertionError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.