Open bitcartel opened 8 years ago
in what table?
sqlite3 database.sqlite update datadir set dirname='targetdir'
The above works, but the last path component which is the chain name cannot change. You can move ~/.multichain/chain1 to /some/where/else/chain1 and update using sqlite3 but you can't rename chain1.
In the long-term it would be better if the datadir table did not exist at all and the path was set in the config file.
A fully expanded filepath is stored in the database e.g. /home/freddy/.multichain/my-chain/multichain.conf.