Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: OtherMacMan on August 08, 2020, 05:37:40 AM



Title: Can I use a bitcoind data from LAN from local bitcoin-qt?
Post by: OtherMacMan on August 08, 2020, 05:37:40 AM
Hello
I am just a new user to bitcoin.

Here is my problem. I do not want to have bitcoin-qt started every time I boot my computer and other computers on my local LAN. As It is using resources and also a lot of disk space on every computer.

Here is my thought but I do not know if it is possible.

Could I setup a bitcoind on my server using docker and access it from my bitcoin-qt?
It will have the latest blockchain downloaded in one computer centrally and it will not take my desktop disk space and recources and it will also run all day.

Also as there are more than one computer here I could setup different bitcoin-qt for each user and save their wallet info in their computer but the huge blockchain folder is going to be in the server.

Also an other idea I had was to use a web based bitcoin client installed on the server.  With that I could login from my mobile phone remotely via vpn and access my wallet securely without having to use any other web wallets

Can this be done? Is there a guide I could use to do it?


Title: Re: Can I use a bitcoind data from LAN from local bitcoin-qt?
Post by: bob123 on August 08, 2020, 11:43:59 AM
Here is my problem. I do not want to have bitcoin-qt started every time I boot my computer and other computers on my local LAN. As It is using resources and also a lot of disk space on every computer.

You could just remove it from your autostart.



Here is my thought but I do not know if it is possible.

Could I setup a bitcoind on my server using docker and access it from my bitcoin-qt?
It will have the latest blockchain downloaded in one computer centrally and it will not take my desktop disk space and recources and it will also run all day.

Also as there are more than one computer here I could setup different bitcoin-qt for each user and save their wallet info in their computer but the huge blockchain folder is going to be in the server.

AFAIK this is not possible the way you are imagining.

But you could run your full node on the server and use SPV wallets on the clients to connect to it.
Either electrum together with an electrum server on your server, or simply using Wasabi wallet (https://github.com/zkSNACKs/WalletWasabi) on the client PC's and connecting them directly to your full node by editing the Config.json.
The latter is probably the best option.



Also an other idea I had was to use a web based bitcoin client installed on the server.  With that I could login from my mobile phone remotely via vpn and access my wallet securely without having to use any other web wallets

Definitely possible, but security risks always exist when something is accessible from the internet.
Only being accessible via a VPN does help, but shouldn't be considered absolutely secure. I would only use it for relatively small amounts.



Title: Re: Can I use a bitcoind data from LAN from local bitcoin-qt?
Post by: OtherMacMan on August 09, 2020, 04:34:53 PM
I think that I probably not my myself clear on what I want to do

The problem is not to stop the process from loading on startup. The problem is that we have 3 bitcoin core apps loading all the time and creating a 300 GB db each.

so we are wasting almost 1 TB of disk space. I thought I could have the db on the server and have it updating. But the bitcoin core does not have the option to use a centralised db in my LAN

That was my question. I of course know that I could turn off to start it automatically

Also if I do that I will have to wait every time I reopen the app

on the other hand if the data is all the time updated on the server, I, and every other user in my lan can open its app and use the same db without waiting.


Title: Re: Can I use a bitcoind data from LAN from local bitcoin-qt?
Post by: odolvlobo on August 09, 2020, 06:52:49 PM
There is no reason why you can't have one node running and other apps querying it via RPC. However, if you need multiple wallets, then bob123's SPV recommendations are good.


Title: Re: Can I use a bitcoind data from LAN from local bitcoin-qt?
Post by: JuleAdka on August 09, 2020, 11:42:09 PM
You can try mount the server file system remotely on the others computes, but it probably will lead to a error because more than one instance of bitcoin is running (the core knows it because the .lock file, that is located on the data directory).  
But if your node are already running, there is no reason to have more then one node running, just download a SPV, as you can see above(electrum are a good one), and connect it to your full node. You not will loose privacy in this case


Title: Re: Can I use a bitcoind data from LAN from local bitcoin-qt?
Post by: HCP on August 10, 2020, 12:29:14 AM
Could I setup a bitcoind on my server using docker and access it from my bitcoin-qt?
You could setup the bitcoind on your server, but you probably won't be able to access it using bitcoin-qt, as bitcoin-qt has bitcoind "built-in" and will attempt to start it's own local process...

However, you can use the RPC functionality of "bitcoin-cli" to connect from your local machine to your remote bitcoind instance, but obviously this is command-line only.


If you want a full wallet GUI, then as mentioned above and also indicated in this very old (and "closed") Bitcoin Core "issue" (https://github.com/bitcoin/bitcoin/issues/2656), the only option you have is to run an SPV wallet and connect that to your centralised node.