Skip to content
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 statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting 'Rescan is disabled in pruned mode' even thought I set rescan false... #1585

Open
chaintip opened this issue Feb 1, 2019 · 20 comments

Comments

@chaintip
Copy link

chaintip commented Feb 1, 2019

Trying to get ChainTip reddit up and running again. I'm running pruned nodes as before to save money. When I try to import a private key setting rescan to false I get the following error:

root@bu:~# bitcoin-cli importprivkey "L3AXbZnPNeprMYtPKLNxyJD5vMUsihtkpw52GqYrfxnTS1pST8uK" "" false
error code: -4
error message:
Rescan is disabled in pruned mode

Unless I'm doing something stupid, this used to work. Has something changed that might stop this from working anymore?

@ptschip
Copy link
Collaborator

ptschip commented Feb 1, 2019 via email

@ptschip
Copy link
Collaborator

ptschip commented Feb 1, 2019 via email

@chaintip
Copy link
Author

chaintip commented Feb 1, 2019

My problem is the cost of running two full nodes that aren't pruned.

In my case, I generate the private key so I know it's not been used before.

I also know that I came across this error when initially trying (creating the service) to do the equivalent of bitcoin-cli importprivkey "L3AXbZnPNeprMYtPKLNxyJD5vMUsihtkpw52GqYrfxnTS1pST8uK" through bitcoin-rpc. i.e. no label and no rescan option given. I had to figure out how to add these to make it work for me.

An override would be great here to put the functionality back to how it was if it did indeed change and I'm not doing something stupid.

then maybe there should be some sort of override that we could code in place so that you could do that

I thought this (putting label and rescan options) was the override :D

@ptschip
Copy link
Collaborator

ptschip commented Feb 1, 2019 via email

@chaintip
Copy link
Author

chaintip commented Feb 1, 2019

Great, thanks a lot!

The way my bot works, I grab new addresses off my database whenever someone asks the bot to make a tip. It is possible to do what you suggest but will take quite some effort. Can you point me to where this logic happens and I can hack it myself and recompile it?

Do you know if some of the other implementations (say ABC) have this switched off too?

If I don't manage to hack it or use another implementation, what size VPS would you recommend using these days to run a unpruned node?

@ptschip
Copy link
Collaborator

ptschip commented Feb 1, 2019 via email

@ptschip
Copy link
Collaborator

ptschip commented Feb 1, 2019 via email

@chaintip
Copy link
Author

chaintip commented Feb 1, 2019

I did try this. Tried it again though now at your request. Same result, unless I'm doing something wrong.

root@bu:~# bitcoin-cli importprivkey "L3AXbZnPNeprMYtPKLNxyJD5vMUsihtkpw52GqYrfxnTS1pST8uK" "label" false
error code: -4
error message:
Rescan is disabled in pruned mode

root@bu:~# bitcoin-cli importprivkey "L3AXbZnPNeprMYtPKLNxyJD5vMUsihtkpw52GqYrfxnTS1pST8uK" label false
error code: -4
error message:
Rescan is disabled in pruned mode

root@bu:~# bitcoin-cli importprivkey L3AXbZnPNeprMYtPKLNxyJD5vMUsihtkpw52GqYrfxnTS1pST8uK label false
error code: -4
error message:
Rescan is disabled in pruned mode

@ptschip
Copy link
Collaborator

ptschip commented Feb 1, 2019

that's wierd:

can you try this one, this is a different command for importing multiple keys but you can do just one.

importprivatekeys no-rescan "yourkey"

@dgenr8
Copy link
Collaborator

dgenr8 commented Feb 1, 2019

Are you two running the same exact version pf BU? See #1549

@ptschip
Copy link
Collaborator

ptschip commented Feb 1, 2019 via email

@chaintip
Copy link
Author

chaintip commented Feb 1, 2019

root@bu:~# bitcoin-cli importprivkey no-rescan "L3AXbZnPNeprMYtPKLNxyJD5vMUsihtkpw52GqYrfxnTS1pST8uK"
error code: -4
error message:
Rescan is disabled in pruned mode

Yeah, I'm running the release. Thanks for notifying us of #1549 @dgenr8!

When will the next release be pushed? If it's not soon, I'll use the current dev version.

And thanks @ptschip for helping me sort this out!

@ptschip
Copy link
Collaborator

ptschip commented Feb 1, 2019 via email

@chaintip
Copy link
Author

chaintip commented Feb 7, 2019

@ptschip, @dgenr8 ... not quite sure what I'm doing wrong.

Followed the instructions here to compile from source: https://github.com/BitcoinUnlimited/BitcoinUnlimited#quick-installation-instructions

It takes quite a while. Didn't work the first time when trying

'root@buw:~# bitcoin-cli importprivkey L3AXbZnPNeprMYtPKLNxyJD5vMUsihtkpw52GqYrfxnTS1pST8uK label false
error code: -4
error message:
Rescan is disabled in pruned mode'

again. Tried again on another VPS. Didn't work again.

Made sure to checkout 'dev' instead of 'release'.

Any ideas?

@dgenr8
Copy link
Collaborator

dgenr8 commented Feb 7, 2019

What does bitcoin-cli --version show?

@chaintip
Copy link
Author

chaintip commented Feb 8, 2019

Bitcoin Unlimited Cash Edition v1.5.1.0-f6b0c75cb

@chaintip
Copy link
Author

@dgenr8 @ptschip is that the correct version for the dev branch? Or have I done something wrong?

@dgenr8
Copy link
Collaborator

dgenr8 commented Feb 11, 2019

The bitcoin-cli version looks fine. Is there a chance the bitcoind it's connecting to is not a dev build?

@chaintip
Copy link
Author

Yes, just checked. There were two running. Thank you!

@chaintip
Copy link
Author

chaintip commented Feb 12, 2019

Shall we leave this issue open until a new release comes so that others can find it easily if they have the same problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants