Author

Topic: Bitcoin Core in multi user environment (Read 1095 times)

hero member
Activity: 672
Merit: 504
a.k.a. gurnec on GitHub
January 12, 2015, 12:53:25 PM
#10
You could and I don't know for sure but I'd start with trying symbolic links from the ~/home to the public folder you want to use.

Then several instances of BC will try to write to the same files at the same time.

I don't think there's a straightforward solution to this.

Depends on what you mean with “multi user environment”. If it's a desktop or laptop shared by a family, it's impossible that two people are using it at the same time. Switching accounts may leave programs open, but (as far as I know) they get suspended and should not conflict with others. If it's a server (maybe like an online wallet), then definitely many people can use it, but in that case you should have a single program (other than Bitcoin Core) managing all accounts.

It depends on the OS and settings. In a Unix based multiuser environment (eg OS X) nothing get suspended. Likewise you can have two people using the machine via screen sharing for example.

:-)

Likewise on Windows -- if you lock your account either explicitly (shortcut: windows-L) or implicitly (starting a Remote Desktop session with user #2 while user #1 is logged in), all programs will remain running in the background (except Win8 Metro-style apps, but that's irrelevant). I think shorena's option of running a single Bitcoin Core instance w/o a wallet and then configuring mSIGNA or Multibit clients to connect to localhost is probably the best option.
legendary
Activity: 4228
Merit: 1313
January 11, 2015, 06:37:44 AM
#9
You could and I don't know for sure but I'd start with trying symbolic links from the ~/home to the public folder you want to use.

Then several instances of BC will try to write to the same files at the same time.

I don't think there's a straightforward solution to this.

Depends on what you mean with “multi user environment”. If it's a desktop or laptop shared by a family, it's impossible that two people are using it at the same time. Switching accounts may leave programs open, but (as far as I know) they get suspended and should not conflict with others. If it's a server (maybe like an online wallet), then definitely many people can use it, but in that case you should have a single program (other than Bitcoin Core) managing all accounts.

It depends on the OS and settings. In a Unix based multiuser environment (eg OS X) nothing get suspended. Likewise you can have two people using the machine via screen sharing for example.

:-)

hero member
Activity: 658
Merit: 500
January 11, 2015, 01:20:09 AM
#8
You could and I don't know for sure but I'd start with trying symbolic links from the ~/home to the public folder you want to use.

Then several instances of BC will try to write to the same files at the same time.

I don't think there's a straightforward solution to this.

Depends on what you mean with “multi user environment”. If it's a desktop or laptop shared by a family, it's impossible that two people are using it at the same time. Switching accounts may leave programs open, but (as far as I know) they get suspended and should not conflict with others. If it's a server (maybe like an online wallet), then definitely many people can use it, but in that case you should have a single program (other than Bitcoin Core) managing all accounts.
copper member
Activity: 1498
Merit: 1528
No I dont escrow anymore.
January 10, 2015, 12:25:09 PM
#7

This doesn't let you store the wallets in the home folders, and the -wallet argument seems to only let you specify wallets inside the data dir.

In a multi machine environment you could use a single machine running bitcoin core and the others connecting to it using mSIGNA[1].


[1] https://ciphrex.com/products/
full member
Activity: 154
Merit: 100
January 10, 2015, 12:18:33 PM
#6

This doesn't let you store the wallets in the home folders, and the -wallet argument seems to only let you specify wallets inside the data dir.
hero member
Activity: 533
Merit: 500
^Bitcoin Library of Congress.
hero member
Activity: 770
Merit: 500
January 10, 2015, 11:51:13 AM
#4
You could and I don't know for sure but I'd start with trying symbolic links from the ~/home to the public folder you want to use.

Then several instances of BC will try to write to the same files at the same time.

I don't think there's a straightforward solution to this.
I would think there would be some kind of file lock
to prevent this from happening though. Plus I assumed it's just a home pc with multiple users but only one accessing the machine at any given time.
legendary
Activity: 1974
Merit: 1029
January 10, 2015, 11:11:13 AM
#3
You could and I don't know for sure but I'd start with trying symbolic links from the ~/home to the public folder you want to use.

Then several instances of BC will try to write to the same files at the same time.

I don't think there's a straightforward solution to this.
hero member
Activity: 770
Merit: 500
January 10, 2015, 10:19:36 AM
#2
You could and I don't know for sure but I'd start with trying symbolic links from the ~/home to the public folder you want to use.
full member
Activity: 154
Merit: 100
January 10, 2015, 10:18:08 AM
#1
On linux, Bitcoin Core stores the blockchain and wallet files in the users home folder (~/.bitcoin). This is bad because if you have multiple users using Bitcoin Core, you'll have a copy of the blockchain in each users home folder, when you only need 1 copy.

I'd like to store the blockchain outside of the home folders, but keep the wallet files inside the home folders. What is the best way to do this?
Jump to: