Skip to content

Instantly share code, notes, and snippets.

@losh11
Last active December 18, 2024 22:03
Show Gist options
  • Save losh11/2d4ee89cdb4965bec4c2128cbc579e31 to your computer and use it in GitHub Desktop.
Save losh11/2d4ee89cdb4965bec4c2128cbc579e31 to your computer and use it in GitHub Desktop.

The Litecoin Developers are aware of a regression introduced in Litecoin Core v0.21.3. A certain number of users may see the error message "Prune mode is incompatible with -blockfilterindex." on startup.

The Temporary Fix

Locate the Litecoin Data Directory. By default this is located at:

macOS: ~/Library/Application Support/Litecoin
Linux: ~/.litecoin
Windows: %APPDATA%\Litecoin

Create a file named litecoin.conf if this doesn't already exist. Edit the litecoin.conf file with the following text:

blockfilterindex=0
peerblockfilters=0

The Fix

The Litecoin Developers plan to release a new patch. Which will automatically detect if prune mode is enabled, and if so, will not attempt to enable blockfilterindex.

@alecdvor
Copy link

alecdvor commented May 26, 2024

I was locked out of my litecoin core application. I even tried a reinstall and I was stuck till I found this fix. Thank you !

@CameronHudson8
Copy link

I found that this directory did not exist:

Windows: %APPDATA%\Litecoin

However, putting the config file here fixed it for me:

Windows: %APPDATA%\Roaming\Litecoin

@migol
Copy link

migol commented Aug 21, 2024

That did not help me as I have custom data dir. What did help was placing file in root of datadir, at least on Windows.

@azharrasheed
Copy link

just create a file and paste the code wherever you create custom folder or default folder

@Out-A-Time
Copy link

Out-A-Time commented Oct 28, 2024

That did not work for me,
but lead me to find file Litecoin-Qt.conf in /home/your-user-name/.config/Litecoin and changed value to bPrune=false.
It is now downloading the blockchain.
I'm on Linux Mint

@losh11
Copy link
Author

losh11 commented Dec 1, 2024

FYI anyone who is using Litecoin Core 0.21.4, it now includes a fix for the bug!

@tokuroglu
Copy link

tokuroglu commented Dec 18, 2024

Although not the same error a general "fatal error" is still there with 0.21.4 as well. A summary of how it happened: I was syncing a wallet created in 2017 and not touched since then in another PC. I moved it to a new PC (windows), installed 0.24.1 and started syncing. It threw the error popup. However, syncing kept going on at the background as I was seeing it so I didn't press the OK of the error popup and kept it on till syncing finished. It took many hours. Then I pressed OK and LT-core closed. After running it again, the same error dialog kept showing up until I did the conf fix explained here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment