8000 Prune mode is incompatible with -txindex · Issue #253 · Veil-Project/veil · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Prune mode is incompatible with -txindex #253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statemen 8000 t. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pcartwright81 opened this issue Jan 10, 2019 · 11 comments
Closed

Prune mode is incompatible with -txindex #253

pcartwright81 opened this issue Jan 10, 2019 · 11 comments
Assignees
Labels
Component: Core App Related to the application itself. Dev Status: Open PR The work for this issue is done, and waiting to be merged. Issue Type: Bug Something isn't working Priority: 1 - Low Non-critical, low impact Tag: OS - Windows Specific to Windows operating system
Milestone

Comments

@pcartwright81
Copy link
pcartwright81 commented Jan 10, 2019

Windows 10 wallet won't open and says "Prune mode is incompatible with -txindex"

image

@pcartwright81 pcartwright81 changed the title Prune move is incompatible with -txindex Prune mode is incompatible with -txindex Jan 10, 2019
@4x13 4x13 added Issue Type: Bug Something isn't working Priority: 1 - Low Non-critical, low impact Component: Core App Related to the application itself. labels Jan 10, 2019
@4x13 4x13 added this to the v1.0.1 milestone Jan 10, 2019
@pcartwright81
Copy link
Author

If anyone else has this issue fix the key in the registry under Computer\HKEY_CURRENT_USER\Software\Veil\Veil-Qt
You will see bPrune

@ianGre
Copy link
ianGre commented Jan 10, 2019

You could take "txindex=1" out of your veil.conf, or
turn off (in Options) Prune block storage. (Except that you can't, because it won't start.) or
edit your Registry with Regedit (as mentioned above). You might want to turn off Prune mode when you get it running.

Prune mode (keep only blocks interesting to your wallet) and
txindex (index all blocks) are certainly contradictory instructions.

@pcartwright81
Copy link
Author

I do not have a viel.conf and there does not seem to be an option in the GUI to turn off index all blocks.

@ianGre
Copy link
ianGre commented Jan 10, 2019

Interesting! I'll give you some instructions to do the fix via the Windows Registry. Just a moment while I start up my Windows Virtual Machine. ...

@ianGre
Copy link
ianGre commented Jan 10, 2019

I am surprised that pruning is turned on, as it was off by default with my installation. Also I did not find a registry entry for transaction indexing. So, the easiest way (to turn off pruning, assuming your wallet will not open, because of the error), is to open Notepad and paste the following lines into it, and save the file onto your Desktop as "Veil-pruneOff.reg" or whatever you like. And then right-click and select Merge, which should be the default action, if the filename ends in .reg and not.txt.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Veil\Veil-Qt]
"bPrune"="false"

@presstab
Copy link
Contributor

txindex is turned on by default with the code. Interesting that prune is defaulting as on... it actually gets disabled in the code, as it is still under development.

@presstab presstab added the Tag: OS - Windows Specific to Windows operating system label Jan 11, 2019
@seanPhill
Copy link
Collaborator
seanPhill commented Jan 11, 2019

I haven't seen prune on by default in any of my installations, but I read in the spec's that prune was going to be on by default. I'm happy with pruning off, in the short term.

@pcartwright81
Copy link
Author

I enabled it manually. Did not expect the wallet to not open after doing this.

@seanPhill
Copy link
Collaborator

Thanks! ... Well, then the prune mode function had better turn off txindex when it turns on.

@presstab presstab modified the milestones: v1.0.1, future Feb 20, 2019
@mimirmim
Copy link
Contributor

Update on this issue as we have been investigating why all nodes are flagging as limited nodes, and not actually full nodes. This is related.

@CaveSpectre11 CaveSpectre11 modified the milestones: future, v1.2.0 Nov 23, 2020
@CaveSpectre11 CaveSpectre11 added the Dev Status: Open PR The work for this issue is done, and waiting to be merged. label Nov 23, 2020
codeofalltrades added a commit that referenced this issue Nov 25, 2020
5d49651 [Config] Ignore prune mode if txindex is set (Cave Spectre)

Pull request description:

  ### Problem
  #253 - Prune mode incompatible with txindex.
  Having prune mode on can stick the user into being unable to start their wallet.  For Qt: they receive an error stating "Prune mode is Incompatible with -txindex"

  ### Root Cause
  The error was a little heavy handed, and rejected the use of prune mode without txindex=0.  The part of this issue that makes it important to address is that you can inadvertently end up with bPrune set in your registry on windows; making it difficult to find and remove.  There is an additional issue that implies that uninstalling your wallet will not remove the registry entries; so getting bPrune=true in your registry would be quite challenging to clear out, and likely result in support tickets.

  ### Solution
  **_Note that prune mode is unsupported and likely will result in corrupting your wallet.  This is not meant to claim that prune mode is functional._**

  If Prune mode is set and txindex is not implicitly disabled [txindex=0], the wallet will not run.  This PR changes the prune mode from an error that shuts down the wallet, to a warning that ignores prune mode if txindex is enabled.   This warning will not show in a Windows pop-up, but rather in the log file and the terminal executing the daemon and/or qt.  It will also ignore the prune mode setting, changing it to '0' if it is set.

  ### Testing
  combinations of txindex=[0|1], prune=[0|1] in your config file, command line, and bPrune=true in your registry [see issue #253 for registry details]

Tree-SHA512: a660574d6791e060c11b9b3aa3ce7f1ab2813f6f7b72927972d5b04a0b91fd7abb484c552e4b51fb1b121a726e9c2b73664922a9545e3d9f12e97105580393a5
@seanPhill
Copy link
Collaborator

This issue has been addressed with merge #874 (Ignore prune mode if txindex is set) -- not to say that prune mode works -- it doesn't, and has not been developed yet.

(cleaning up)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Core App Related to the application itself. Dev Status: Open PR The work for this issue is done, and waiting to be merged. Issue Type: Bug Something isn't working Priority: 1 - Low Non-critical, low impact Tag: OS - Windows Specific to Windows operating system
Projects
None yet
Development

No branches or pull requests

7 participants
0