How to import address to a wallet which runs in pruned mode

0

I am running Bitcoin Cash node with prune=99000 mode enabled. So, I tried to import addresses of BCH from another BCH wallet by using importprivkey method and I am getting an error: Rescan is disabled in pruned mode.

How could I import addresses in prune mode from another wallet?

Thanks!

Igoris Skinderis

Posted 2019-10-15T14:23:02.203

Reputation: 21

Question was closed 2019-10-24T17:51:49.320

To import the private key, the wallet must rescan the blockchain and I think with the prune setting the import key not work because you haven't a copy of the blockchain in your local machine.vincenzopalazzo 2019-10-15T14:55:28.940

@vincenzopalazzo thanks for the answer. Could I user reindex maybe on prune mode?Igoris Skinderis 2019-10-16T11:59:22.503

What does it mean, reindex the user? ps: I don't know how work the BCH but if is work how bitcoin, it not contains the uservincenzopalazzo 2019-10-16T12:39:04.920

@vincenzopalazzo I am sorry there was a lint, I meant "Could I use reindex maybe on prune mode?"Igoris Skinderis 2019-10-17T08:42:33.790

Answers

1

Form bitcoin-abc I have found this

# Enable pruning to reduce storage requirements by deleting old blocks. 
# This mode is incompatible with -txindex and -rescan.
# 0 = default (no pruning).
# 1 = allows manual pruning via RPC.
# >=550 = target to stay under in MiB. 
#prune=550

So, the command import address should call the -rescan (in Bitcoin core yes), for reconstruct the story of the private key. So from the moment of your error message, I believe the correct answer is.

No you cannot import a private key in prune mode

vincenzopalazzo

Posted 2019-10-15T14:23:02.203

Reputation: 572