spesmilo / spesmilo/electrum

WalletDB.remove_spent_outpoint: KeyError

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

Nobody has claimed this yet.

bug 🐞 topic-wallet 👛 topic-walletstorage 💾
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\history_list.py", line 730, in <lambda>
  File "electrum\gui\qt\history_list.py", line 771, in remove_local_tx
  File "electrum\address_synchronizer.py", line 351, in remove_transaction
  File "electrum\address_synchronizer.py", line 377, in _remove_transaction
  File "electrum\address_synchronizer.py", line 366, in remove_from_spent_outpoints
  File "electrum\json_db.py", line 38, in wrapper
  File "electrum\wallet_db.py", line 1130, in remove_spent_outpoint
KeyError: '2889b96485edd1e74db7cf7b3ee5867b80ac183342029eec9988014298e80559'

KeyError: '2889b96485edd1e74db7cf7b3ee5867b80ac183342029eec9988014298e80559'

Reporter

This issue was reported by 8 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
4.3.0 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19044-SP0 standard en_GB
4.5.3 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19045-SP0 standard ru_RU
4.5.5 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19045-SP0 standard en_US
4.5.8 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.26100-SP0 standard nl_NL
4.5.8 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.26100-SP0 standard nl_NL
4.5.8 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.26100-SP0 standard nl_NL
4.5.8 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.26100-SP0 standard nl_NL
4.5.8 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19045-SP0 standard ar_EG

Additional Information

Я вообще не понимаю что происходит. Открыл сохраненный еще в запароленном архиве в 2014 году Wallet.dat
отобразились в кошельке 2 Local транзакции. Но ничего с ними сделать не могу. Вот одну такую решил удалить, посмотреть что будет дальше.
А вообще - если подскажите что и как делать - буду благодарен. Lordbander@gmail.com


xx


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/wallet_db.py at remove_spent_outpoint, then trace the callers shown in electrum/address_synchronizer.py and electrum/gui/qt/history_list.py. Reproduce removal of a local transaction and determine why the referenced outpoint is absent; done means removing the transaction no longer raises this KeyError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.