Author

Topic: Running both mainnet and testnet from a RPi? (Read 172 times)

legendary
Activity: 1932
Merit: 1273
September 09, 2021, 12:39:56 PM
#6
I have it on my PI, both testnet and mainnet with txindex.

Bitcoin:
Code:
$ du -h
348M ./testnet3/blocks/index
29G ./testnet3/blocks
2.9G ./testnet3/indexes/txindex
2.9G ./testnet3/indexes
1.4G ./testnet3/chainstate
33G ./testnet3
104M ./blocks/index
385G ./blocks
33G ./indexes/txindex
33G ./indexes
4.3G ./chainstate
454G .
Electrs:
Code:
$ du -h
6.1G ./db/testnet
75G ./db/mainnet
81G ./db
81G .

In total 535GB, You should have plenty of space on your 1TB drive.
hero member
Activity: 882
Merit: 5818
not your keys, not your coins!
September 09, 2021, 07:42:16 AM
#5
You should be fine (for now). I don't think Electrs goes over 200GB at max on mainnet.
Yes, but how many gigabytes are the rest of them? The mainnet blockchain, the testnet blockchain and the electrum directory for testnet? My disk isn't exactly 1TB, but almost 980GB if I'm not mistaken.
Well, back of envelope calculation:
* Bitcoin mainnet ~380GB
* Bitcoin testnet ~40GB
* Electrum ~200GB
----
Total ~620GB, some extra indices here and there I'd say you'll have 300GB left.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
September 09, 2021, 07:36:16 AM
#4
I also had Bitcoin testnet on a very low resource VPS
Having just the testnet doesn't need too many resources, but I have my doubts for both mainnet & testnet & electrum server running for both of them. Maybe this isn't a task that can be managed by a RPi 4.

Not sure what you mean with electrs index though. Edit: found it (https://github.com/romanz/electrs).
Yeah, I mean the directory of my Electrum server.

You should be fine (for now). I don't think Electrs goes over 200GB at max on mainnet.
Yes, but how many gigabytes are the rest of them? The mainnet blockchain, the testnet blockchain and the electrum directory for testnet? My disk isn't exactly 1TB, but almost 980GB if I'm not mistaken.

2. Electrs memory usage is higher during indexing process, so you should do it one by one (indexing mainnet, then testnet or vice versa).
I've indexed the testnet and will index mainnet in the future, once I'm fully synced with it, so this part is covered.
legendary
Activity: 3458
Merit: 6231
Crypto Swap Exchange
September 09, 2021, 07:16:46 AM
#3
You should be fine (for now). I don't think Electrs goes over 200GB at max on mainnet.
So, even with everything on there I don't see an issue.

If you start adding on other stuff, that answer will change, but for now it's fine.

-Dave
hero member
Activity: 882
Merit: 5818
not your keys, not your coins!
September 09, 2021, 06:55:45 AM
#2
I was wondering if it's possible to run both mainnet & testnet from a RPi 4, including their Electrs indexes. I'm right now running both of them and it goes relatively fast. How much space would these four directories require? I've built everything upon a 1TB SSD external disk and I'm afraid it'll need more.

I haven't synced with the whole mainnet yet, though.
Hey BlackHatCoiner, so in my experience Bitcoin testnet is quite easy to run. Bitcoin Core in general isn't pulling a lot of resources. Didn't run them both simultaneously on a Pi yet, but do so on a very old laptop. I also had Bitcoin testnet on a very low resource VPS (I think 2 cores, 2GB RAM, 50GB disk or so) and it ran very well.
1TB SSD should be easily enough. Not sure what you mean with electrs index though. Edit: found it (https://github.com/romanz/electrs).
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
September 09, 2021, 03:04:48 AM
#1
I was wondering if it's possible to run both mainnet & testnet from a RPi 4, including their Electrs indexes. I'm right now running both of them and it goes relatively fast. How much space would these four directories require? I've built everything upon a 1TB SSD external disk and I'm afraid it'll need more.

I haven't synced with the whole mainnet yet, though.
Jump to: