umbrel icon indicating copy to clipboard operation
umbrel copied to clipboard

Can I connect umbrel to existing bitcoin-node ?

Open stn021 opened this issue 2 years ago • 6 comments

Hello, I would like to use umbrel on a rented server but there is not enough diskspace for the blockchain. But I have a working BTC-node on another computer. Is there a way to connect umbrel to the existing BTC-node ?

stn021 avatar Dec 30 '22 22:12 stn021

Hey @stn021, unfortunately there's not a way to do this in Umbrel. But with the recent update bringing advanced settings to the Bitcoin Node app last month, you can now enable pruning, which will allow you store a limited copy of the blockchain. You can set the prune size to anywhere between 1GB to 300GB, depending upon how much space you have on your server.

mayankchhabra avatar Jan 05 '23 19:01 mayankchhabra

Yes, thank you for the info.

I just installed the current umbrel for linux and found the option "prune" in the advanced settings. Now waiting for sync, this will probably take a few days.

Will the pruned node work with all the different programs that can be installed on an umbrel-node?

I think I heard that some programs like joinmarket or electrs may have problems with a pruned node or may need "txindex=1" which is apparently not compatible with pruning. (Just checked, there a numerous references to this situation on google)

stn021 avatar Jan 11 '23 01:01 stn021

That's unfortunately correct, several apps like the ones you listed will not be able to work if pruning is enabled :(

mayankchhabra avatar Jan 12 '23 12:01 mayankchhabra

I find the question interesting (and the answers) I also thought it would be good. To have a complete node in a PC and the rest of the applications in another one. It occurs to me that using tools like SSHFS (SSH File System), and mounting the disks, it would be possible to have a single copy of the blockchain, however for RTC or other connections, it may be necessary to run the Bitcoin node (with the directories mounted by network).

sebastianarca avatar Feb 27 '23 02:02 sebastianarca

Hello, running a single copy of the full blockchain for use by different applications is usually very simple.

Most software that I know of can be configured to use any bitcoin-node per RPC, remote or local. No mount necessary (and also a mounted blockchain will not work for multiple clients) On the full node you can limit access with a password and by ip-address.

stn021 avatar Feb 27 '23 13:02 stn021

Just wondering: What if umbrel had an option like "use external node" ? With fields for IP/Address , port and either username+password or auth-string. This would then be used instead of installing umbrel's own node. The containers would then have to somehow enter that nodes credentials into their config-files, instead of the default "localhost:8332"

stn021 avatar Feb 27 '23 14:02 stn021