Can you tell me how to build a file settings.json which i could put my wallets secured too?
It's just in simple json format.
For wallet, simply type your wallet file names exactly like this (
except the exact wallet's name);
For one wallet:
{
"wallet": [
"wallet name 1"
]
}
For two or more wallets:
{
"wallet": [
"wallet name 1",
"wallet name 2"
]
}
The gist is, if there's two or more wallets, put a "
," sign after the wallet name, if it's the last/single wallet, do not include a "
,".
The "
wallet name" are the folders you can find inside "
wallets" directory, add the quotation marks as shown in the examples.
Somebody on the internet told us to just copy the backup but it doesn't work, each time i launched Bitcoin core it erase all the data.
That'll work assuming that every setting is set correctly and chainstate & blocks folders are intact.
I assume that when you try to load the wallet files which are auto-unloaded by the blank "
settings.json" file, your pruned node asked for --reindex which triggers the IBD.
Also, you might have set some incompatible settings in the GUI before, that you haven't set in the new install, specially: "
Prune block storage" settings.
If so, you can re-initialize Bitcoin Core with:
$ bitcoin-qt --choosedatadir set your previous settings and point it to your data directory.
Alternatively, set your previous settings to your bitcoin.conf file.