spesmilo / spesmilo/electrum

ValueError: failed to recognize transaction encoding for txt: 0200000001dc8cca6f7d8f23a15f87...

Open
#7,437 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\__init__.py", line 418, in main
  File "electrum\gui\qt\__init__.py", line 292, in wrapper
  File "electrum\gui\qt\__init__.py", line 317, in start_new_window
  File "electrum\gui\qt\__init__.py", line 362, in _start_wizard_to_select_or_create_wallet
  File "electrum\wallet_db.py", line 73, in __init__
  File "electrum\wallet_db.py", line 106, in load_data
  File "electrum\util.py", line 420, in <lambda>
  File "electrum\util.py", line 416, in do_profile
  File "electrum\wallet_db.py", line 195, in upgrade
  File "electrum\wallet_db.py", line 199, in _after_upgrade_tasks
  File "electrum\util.py", line 420, in <lambda>
  File "electrum\util.py", line 416, in do_profile
  File "electrum\wallet_db.py", line 1267, in _load_transactions
  File "electrum\json_db.py", line 79, in __init__
  File "electrum\json_db.py", line 44, in wrapper
  File "electrum\json_db.py", line 105, in __setitem__
  File "electrum\wallet_db.py", line 1308, in _convert_dict
  File "electrum\wallet_db.py", line 1308, in <genexpr>
  File "electrum\transaction.py", line 1022, in tx_from_any
  File "electrum\transaction.py", line 1015, in convert_raw_tx_to_hex
ValueError: failed to recognize transaction encoding for txt: 0200000001dc8cca6f7d8f23a15f87...

ValueError: failed to recognize transaction encoding for txt: 0200000001dc8cca6f7d8f23a15f87...

Reporter

This issue was reported by 7 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
4.1.5 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.19041-SP0 ru_RU
4.1.5 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.19041-SP0 ru_RU
4.1.5 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.19041-SP0 ru_RU
4.1.5 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.19041-SP0 ru_RU
4.4.6 3.8.15 (default, Aug 17 2023, 15:47:24) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d Android 10 on xiaomi jasmine_sprout (QKQ1.190910.002 V11.0.28.0.QDIMIXM) imported,standard en_US
4.5.4 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.22631-SP0 imported,standard ru_RU
4.5.4 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.22631-SP0 imported,standard ru_RU

Additional Information

Hello! cant log in to my wallet, I enter a password but it doesn log in to the wallet itself, what should l do?


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 electrum/transaction.py, especially tx_from_any and convert_raw_tx_to_hex, then trace how electrum/wallet_db.py loads transactions through _load_transactions. Reproduce the reported wallet-loading failure using the traceback and determine what transaction encoding is accepted; done means affected wallet data loads without this ValueError and regression coverage is added if the relevant test location is identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.