Author

Topic: Settings.json file (Read 138 times)

legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
March 02, 2021, 09:46:31 PM
#3
Based from an example in the pull request's comments (bitcoin/pull/15935), it should take some settings from the bitcoin.conf file but in json format.
I don't know if all or which settings will work though.

I've tried some,
example1 (disables wallet function):
Code:
{
    "disablewallet": "1"
  }
example2 (produces legacy addresses in the receive tab):
Code:
{
    "addresstype": "legacy",
    "wallet": [
     "",
     "Wallet_first",
     "wallet_from_v0.xx.dat",
     "Wallet_second"
    ]
   }
HCP
legendary
Activity: 2086
Merit: 4361
March 02, 2021, 05:19:48 PM
#2
It is specifically for Bitcoin Core GUI... so if you have multiple wallet files open, they are stored in settings.json, so when you restart, it will automatically re-open the ones you had open when the application was closed.

And if you close a wallet in the GUI, it will be removed from the settings.json, so if you restart, it won't be automatically re-opened.

Also, you can still use -wallet option on commandline or wallet= option in bitcoin.conf
newbie
Activity: 29
Merit: 6
March 02, 2021, 04:58:25 AM
#1
Hi,

I read the latest bitcoin release notes at https://bitcoincore.org/en/releases/0.21.0/ and they refer to settings.json file.
What is the purpose of this file? is supposed to be alternative to bitcoin.conf?

Can anyone publish a sample for this file?
Jump to: