<p>I have had Bitcoin Core on this computer before, and it worked fine for over a year with no trouble. I had recently uninstalled it, and today attempted to re-install, but, after running setup, on attempting to open bitcoin-qt.exe, the following error appears:</p>
<p>Assertion failed!
Program: C:\Program Files\Bitcoin\bitcoin-qt.exe
File: wallet/scriptpubkeyman.cpp, Line 720
Expression: mapKeys.empty()</p>
<p>...with three options, Abort, Retry, and Ignore. This happens consistently.</p>
<p>I am running bitcoin-0.20.1-win64, Windows 10. I have tried further uninstalling and reinstalling, and installing in both a C:\ and D:\ drive. Running from the command prompt with -rescan does not help either.</p>
<p>Any assistance would be very much appreciated.</p>

CC BY-SA 4.0
2021-01-11T17:28:41.643Z
I think bug reports belong to https://github.com/bitcoin/bitcoin/issues
MCCCS
CC BY-SA 4.0
2021-01-12T00:15:25.870Z
This indicates that your wallet file is corrupted. This error happens when the wallet contains both encrypted and unencrypted keys. Is your wallet encrypted? Did you try to encrypt it recently?
Ava Chow
CC BY-SA 4.0
2021-01-12T02:22:28.717Z
I didn't try to encrypt it, but you were correct that the wallet.dat file was the problem - as I was re-installing Bitcoin Core in a different folder, I didn't realize the old wallet.dat would still be recognized. I've moved the old wallet.dat to a USB stick and now the program runs with no issue.
Max
<bitcoin-core>
Re-Installed Bitcoin Core, "Assertion Failed!" on Startup
Max
# Re-Installed Bitcoin Core, "Assertion Failed!" on Startup

(Asked by: username_0 on 2021-01-11)

I have had Bitcoin Core on this computer before, and it worked fine for over a year with no trouble. I had recently uninstalled it, and today attempted to re-install, but, after running setup, on attempting to open bitcoin-qt.exe, the following error appears:

Assertion failed!
Program: C:\Program Files\Bitcoin\bitcoin-qt.exe
File: wallet/scriptpubkeyman.cpp, Line 720
Expression: mapKeys.empty()

...with three options, Abort, Retry, and Ignore. This happens consistently.

I am running bitcoin-0.20.1-win64, Windows 10. I have tried further uninstalling and reinstalling, and installing in both a C:\ and D:\ drive. Running from the command prompt with -rescan does not help either.

Any assistance would be very much appreciated.

**Tags:** bitcoin-core

> **Comments:**
> **username_1**: I think bug reports belong to https://github.com/bitcoin/bitcoin/issues  
> **username_2**: This indicates that your wallet file is corrupted. This error happens when the wallet contains both encrypted and unencrypted keys. Is your wallet encrypted? Did you try to encrypt it recently?  
> **username_0**: I didn't try to encrypt it, but you were correct that the wallet.dat file was the problem - as I was re-installing Bitcoin Core in a different folder, I didn't realize the old wallet.dat would still be recognized. I've moved the old wallet.dat to a USB stick and now the program runs with no issue.  

---

## 0 answers

