Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: icreator on September 03, 2014, 04:43:45 AM



Title: for Win - share a data directory
Post by: icreator on September 03, 2014, 04:43:45 AM
Why blockchain directory not shared on MS Windows?

for each user bitcoin clien upload full blockchain anew. Why?

please make common data directory in common for all users path!


Title: Re: for Win - share a data directory
Post by: Willisius on September 04, 2014, 12:38:23 AM
You can specify the same data directory with "-datadir" in a .conf file. See here (https://en.bitcoin.it/wiki/Data_directory).


Title: Re: for Win - share a data directory
Post by: gmaxwell on September 04, 2014, 03:31:46 AM
You can specify the same data directory with "-datadir" in a .conf file. See here (https://en.bitcoin.it/wiki/Data_directory).
This does not enable you to share a data-directory. Doing that will just corrupt your data directory if you manage to bypass the startup locks.

Actual storage can be shared by using a file system that support copy on write, or copying a data directory and replacing the block files with hardlinks.

Because of those alternatives I wouldn't spend any time developing or reviewing functionality to improve this further, and would instead favor finishing the pruning support.


Title: Re: for Win - share a data directory
Post by: icreator on September 04, 2014, 06:16:10 AM
You can specify the same data directory with "-datadir" in a .conf file. See here (https://en.bitcoin.it/wiki/Data_directory).

it is not for end-users
it is for professionals :(


Title: Re: for Win - share a data directory
Post by: shorena on September 04, 2014, 09:35:12 AM
You can specify the same data directory with "-datadir" in a .conf file. See here (https://en.bitcoin.it/wiki/Data_directory).

it is not for end-users
it is for professionals :(

Its not even a solution*, read the post by gmaxwell again. I think for those "end-users" you have in mind a slim client (e.g. Electrum, Multibit, etc.) would be perfect. While I dont think that its good to have less and less full nodes Im also positive that there will be enough "professionals" as you call them.


*IIRC its not even possible to define a data dir from config file, but only via launch argument. That information might be outdated though.


Title: Re: for Win - share a data directory
Post by: Dare on September 04, 2014, 09:16:55 PM
You can specify the same data directory with "-datadir" in a .conf file. See here (https://en.bitcoin.it/wiki/Data_directory).

it is not for end-users
it is for professionals :(

Its not even a solution*, read the post by gmaxwell again. I think for those "end-users" you have in mind a slim client (e.g. Electrum, Multibit, etc.) would be perfect. While I dont think that its good to have less and less full nodes Im also positive that there will be enough "professionals" as you call them.


*IIRC its not even possible to define a data dir from config file, but only via launch argument. That information might be outdated though.

You can't specify the datadir in the config file, because the config file is stored in the datadir. The wiki page (https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File) has specifics on what can and can't be specified in the config file.