Pages:
Author

Topic: [Guide] How to run a Bitcoin Core full node for under 50 bucks! (Read 2141 times)

legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
A Simple Question; Can I copy all the block data, move it to another hard drive, and try to run the node? Do you believe it will work? Because downloading the whole blockchain is the biggest issue with such internet Speed.
Yes, it should work! It's possible that it needs to be reindexed, e.g. if you copy while it's running or so, but that is pure local computation, so no worries about network speed.

Reindexing ~450GB take more time than copying 450GB between 2 HDD though, even when you have SSD and big RAM. So it's strongly recommended to close Bitcoin Core gracefully before making a copy.

--snip--
Can you upload the entire Bitcoin Core folder to facebook except the wallet.dat file?

Very unlikely, Facebook doesn't have dedicated cloud storage service. You could try compress and split Bitcoin Core folder, then upload it separately. But it's very likely you'll meet one of those problem (reached upload limit, some file deleted or suspended account).
hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
A Simple Question; Can I copy all the block data, move it to another hard drive, and try to run the node? Do you believe it will work? Because downloading the whole blockchain is the biggest issue with such internet Speed.
Yes, it should work! It's possible that it needs to be reindexed, e.g. if you copy while it's running or so, but that is pure local computation, so no worries about network speed.
Reindexing ~450GB take more time than copying 450GB between 2 HDD though, even when you have SSD and big RAM. So it's strongly recommended to close Bitcoin Core gracefully before making a copy.
True, but AnotherAlt's main problem is still the internet connection. Reindexing may take a week, but re-download may take months (if I remember correctly).. Shocked

my last disruption was years ago, and announced ahead.
Huh? Is it for real? We cannot imagine this even in dreams.  Cry
Similar at my current place; no outages for many years. However, it makes me appreciate it even more that you're giving your best to keep a node up and running in your location. You're probably one of few in your area who do it (due to those issues), so it kind of makes your node even more important!
You may even consider offering local Bitcoin community members to get the full blockchain as complete copy on a HDD (they would just need to reindex / re-verify it) from you!
sr. member
Activity: 280
Merit: 259
https://bitcoincleanup.com #EndTheFUD
my last disruption was years ago, and announced ahead.

Huh? Is it for real? We cannot imagine this even in dreams.  Cry

Quote
That's unfortunate. We pay high VAT, and new computers are getting more expensive, but since the market is saturated, older computers are abundant and cheap.

About new computers, Yes. It's the same here. Also, the Old market is getting more expensive here. Recently, GPU prices dropped. But, in my country. Shopkeepers always say "Sir, It's an old shipment" (which is never going to finish). On the other side, If the price increase in the global market, They get a new shipment within a few hours.


legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
Do you use this On command prompt?
Yes (on Linux).

Quote
Well, I use UPS right now. But, due to a long time power outage. Sometimes it forcibly shut down my PC. Every time I close my Bitcoin core, The network traffic on the GUI start showing new data from a new session. That's why I asked this.
I assume most people have more reliable power, my last disruption was years ago, and announced ahead. But one of the perks of using a laptop is the build-in UPS Smiley

Quote
I wish I could reveal where I am from. Computer hardware prices are too high here. The old market also has some ridiculous prices. Too much vat tax is another issue. That's why people don't even dare to import.
That's unfortunate. We pay high VAT, and new computers are getting more expensive, but since the market is saturated, older computers are abundant and cheap.

Quote
I am using my daily use Desktop. Ryzen 3 3200G with 16 Gigs Ram, 250GB SSD and 4TB HDD. I am running the full node on this desktop already.
In that case: just let it run Smiley You may want to move your chainstate directory to the SSD though, that large improves performance.
hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
Where do you find this info? Is it from the Network Traffic tab? If so, don't you have a power outage?
I guess, somewhere, I read that I can check on the internet if my node is contributing or not. IDK, maybe I didn't understand.
You probably mean https://bitnodes.io/.
If you run a clearnet node (not through Tor), you should be able to find your node by its IP if everything is working fine.

my server uploaded only 900 GB in 34 days, which is much, much less than it can handle.
Where do you find this info? Is it from the Network Traffic tab?
I used this:
Code:
./bitcoincore/bitcoin-23.0/bin/bitcoin-cli getnettotals
I assume the GUI would show the same in the Network Traffic tab indeed.
It does. You can also open the 'Console' window and type getnettotals, though - numbers match up!

Quote
I'm not sure what that has to do with the Network Traffic.
Well, I use UPS right now. But, due to a long time power outage. Sometimes it forcibly shut down my PC. Every time I close my Bitcoin core, The network traffic on the GUI start showing new data from a new session. That's why I asked this.
I believe those statistics are resetted when you reboot, yes.

A Simple Question; Can I copy all the block data, move it to another hard drive, and try to run the node? Do you believe it will work? Because downloading the whole blockchain is the biggest issue with such internet Speed.
Yes, it should work! It's possible that it needs to be reindexed, e.g. if you copy while it's running or so, but that is pure local computation, so no worries about network speed.
Actually, I'd recommend you backup the whole bitcoin data directory (after gracefully closing Bitcoin Core), if you have the disk space, so you have a sort of 'checkpoint' that you can restore in case something goes south.

Bitcoin data directory location for different operating systems:
https://en.bitcoin.it/wiki/Data_directory
sr. member
Activity: 280
Merit: 259
https://bitcoincleanup.com #EndTheFUD
I used this:
Code:
./bitcoincore/bitcoin-23.0/bin/bitcoin-cli getnettotals
I assume the GUI would show the same in the Network Traffic tab indeed.

Do you use this On command prompt?

Quote
I'm not sure what that has to do with the Network Traffic.

Well, I use UPS right now. But, due to a long time power outage. Sometimes it forcibly shut down my PC. Every time I close my Bitcoin core, The network traffic on the GUI start showing new data from a new session. That's why I asked this.

Quote
My advice: do it yourself Smiley I'm running one already, but there's not really a point in paying someone else to run a node.

I wish I could reveal where I am from. Computer hardware prices are too high here. The old market also has some ridiculous prices. Too much vat tax is another issue. That's why people don't even dare to import.

Quote
What hardware are you now using for Bitcoin Core? It doesn't have to be dedicated hardware, if it doesn't consume too many resources you can run it just fine on your daily machine.

I am using my daily use Desktop. Ryzen 3 3200G with 16 Gigs Ram, 250GB SSD and 4TB HDD. I am running the full node on this desktop already.

I cannot even imagine the price n0nce mentioned. I wouldn't dare to import here.

A Simple Question; Can I copy all the block data, move it to another hard drive, and try to run the node? Do you believe it will work? Because downloading the whole blockchain is the biggest issue with such internet Speed.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
my server uploaded only 900 GB in 34 days, which is much, much less than it can handle.
Where do you find this info? Is it from the Network Traffic tab?
I used this:
Code:
./bitcoincore/bitcoin-23.0/bin/bitcoin-cli getnettotals
I assume the GUI would show the same in the Network Traffic tab indeed.

Quote
If so, don't you have a power outage?
I'm not sure what that has to do with the Network Traffic.

Quote
I was wondering how people do that. How do they have multiple addresses in the same wallet?
Click Receive tab > Create new receiving address > click as many times as you want.

Quote
$50 and donate to someone who wants to run a Bitcoin Core full node for under 50 bucks!
My advice: do it yourself Smiley I'm running one already, but there's not really a point in paying someone else to run a node.
What hardware are you now using for Bitcoin Core? It doesn't have to be dedicated hardware, if it doesn't consume too much resources you can run it just fine on your daily machine.

Quote
I received my first ever signature payment, which is $40 In Bitcoin.
Congrats! Frame it Cheesy Make something special out of it and see what it's worth in 10 years.
sr. member
Activity: 280
Merit: 259
https://bitcoincleanup.com #EndTheFUD
my server uploaded only 900 GB in 34 days, which is much, much less than it can handle.

Where do you find this info? Is it from the Network Traffic tab? If so, don't you have a power outage?
I guess, somewhere, I read that I can check on the internet if my node is contributing or not. IDK, maybe I didn't understand.

Enable it, and select your own Inputs under the Send tab. I always use it, great for privacy and great for optimizing transaction fees.

I just enabled it. I was wondering how people do that. How do they have multiple addresses in the same wallet? I used Atomic wallet, and it has only one address that cannot be changed.


That's what an RPC server does.

I got it. Do you believe I should enable it? Does it help the whole network? Or does it only help mempool?


Not Sure Where it is most appropriate. I received my first ever signature payment, which is $40 In Bitcoin.
I want to add another $10 to round up $50 and donate to someone who wants to run a Bitcoin Core full node for under 50 bucks!
It's hard for me to buy that hardware cheaply and run another full node with such internet and power issues. Whoever can do it, I will appreciate it, and I would like to help with my first ever signature income.

Cheers!
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
What will happen if I enable the RPC server?
You'll allow other computers to execute commands in your full node. For example, I request your node to return me a raw transaction. An example of RPC usage appears often in block explorers. Here's an example: https://mempool.space/api/tx/0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098/hex.

Here's what happens in the background:
  • Client (the user who's visiting the explorer) requests to have the raw transaction by the id: 0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098.
  • Mempool.space sends this request to their full node.
  • Mempool.space's full node runs bitcoin-cli getrawtransaction "0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098", and gets 010000000[...]ac00000000 (which is the raw transaction).
  • They send the raw transaction to mempool.space.
  • Mempool.space sends you the raw transaction.

That's what an RPC server does. It transmits this useful information from a full node across other protocols.

What is the coin control feature? Is it the option to speed up the transaction by replacing the transaction fees?
No. Coin control is when you individually select which UTXO you're about to spend, and when you don't let the wallet software pick them for you. It doesn't have to do with RBF, which is what you're asking.

What is connected through SOCKS5 Proxy? If I tick on it, it allows me to tick on Ipv4, Ipv6 and Tor.
Proxy is used in this case to route your outgoing & incoming traffic through Tor.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
What do I have to do to help the network?
Since you're using a VPN, your Bitcoin Core can't be reached from the outside world unless the VPN provider allows port forwarding. But, considering your low bandwidth and throttling ISP, allowing full uploads may not be the best idea. I don't think the Bitcoin network lacks bandwidth anyway: my server uploaded only 900 GB in 34 days, which is much, much less than it can handle. The server is idling, so I take it there's no demand for more bandwidth.

What is the coin control feature?
Enable it, select your own Inputs under the Send tab. I always use it, great for privacy and great for optimizing transaction fees.

Quote
Is it the option to speed up the transaction by replacing the transaction fees?
It depends.... See my topic on fees.
sr. member
Activity: 280
Merit: 259
https://bitcoincleanup.com #EndTheFUD
To allow incoming connections you need to port forward and add a listen=1 in your configuration file. If you want to avoid the hassle of port forwarding, consider switching to Tor. You're also contributing to the Tor network that way.

I am a Dick-Head noob. I just read all of them and didn't get anything. I would search for a youtube video instead. I have some questions.
What will happen if I enable the RPC server?
What is the coin control feature? Is it the option to speed up the transaction by replacing the transaction fees?
What is connected through SOCKS5 Proxy? If I tick on it, it allows me to tick on Ipv4, Ipv6 and Tor.
BTW, If it's already helping the network, I don't want to disturb it by digging in the wrong side. Before, I ran pruned nodes without knowing the difference. It took me three months to run this Full node. You cannot imagine the smile on my face. It's big without sound.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
What do I have to do to help the network?
You're already helping it. The fact that you enforce consensus rules and propagate blocks means you're helping. If you want to help more than this, consider allowing incoming connections. If you don't, you'll connect with up to 8 full-relay nodes, and propagate the chain only to those. If you do, you can connect with up to 125 full nodes, and therefore share more.

To allow incoming connections you need to port forward and add a listen=1 in your configuration file. If you want to avoid the hassle of port forwarding, consider switching to Tor. You're also contributing to the Tor network that way.
sr. member
Activity: 280
Merit: 259
https://bitcoincleanup.com #EndTheFUD
@n0nce, Hi man. Finally, I am here with The Full network synchronized node.
One of my purposes was to use it as a wallet and help the network. It's just reached the last block, and I am up to date right now. What do I have to do to help the network? I can see my node received 970 MB while it sent only 15 MB. Do I have to enable/disable anything?

I have some questions about Bitcoin core options. Do you believe it's an appropriate thread to ask? Or do you suggest any other threads?
hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
Do you have any peers / how many do you have? You can check this in Window > Peers.
Yes, I have 10 peers connected and I can see Network traffic.
Then I'd leave it running for a few hours; let it do its thing.
Otherwise, as I said, restart with -reindex and / or (maybe a bit crude measure - opinions welcome) remove some (probably the last few) blk files manually that have the corruptions in them.
sr. member
Activity: 280
Merit: 259
https://bitcoincleanup.com #EndTheFUD
Do you have any peers / how many do you have? You can check this in Window > Peers.

Yes, I have 10 peers connected and I can see Network traffic.
hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
If that header percentage is not going up (20.5% in the screenshot), you could try gracefully closing and re-opening Bitcoin Core. Might have a connection issue with the network peers. Restarting will give you new ones.

Exactly, This stuck on 20.5%. I tried closing it gracefully and re-opening Bitcoin core. It doesn't help. It starts updating the last block time from the beginning and is stuck on ten years 46 weeks behind.
Do you have any peers / how many do you have? You can check this in Window > Peers.

Also, consider starting Bitcoin Core with -reindex flag to manually restart the reindexing process from the very start, again.
sr. member
Activity: 280
Merit: 259
https://bitcoincleanup.com #EndTheFUD
If that header percentage is not going up (20.5% in the screenshot), you could try gracefully closing and re-opening Bitcoin Core. Might have a connection issue with the network peers. Restarting will give you new ones.

Exactly, This stuck on 20.5%. I tried closing it gracefully and re-opening Bitcoin core. It doesn't help. It starts updating the last block time from the beginning and is stuck on ten years 46 weeks behind. It has been over a month now. I have been trying to run a full node with such a low-speed internet connection to help the network and use my own wallet.
hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
AFAIK disable pruning from Bitcoin Core UI or bitcoin.conf should be enough. Just make sure you quit Bitcoin Core gracefully shutdown your computer before your IPS run out of power or configure your computer to do it automatically if your computer can see your IPS status.

I was so confused. I recently installed the latest version of core and started downloading the full block. My block folder size increased to 93 GB so I guess it's a lot for such low-speed internet.
The folder will increase up to 400+ GB, no matter the internet speed. That's the size of the whole blockchain.

Yesterday, My computer was downloading blocks, and I was sleeping. My wife unplugged the computer's power to reduce the load on IPS during the power outage. heck boom,


The same issue as the previous one. This time I know how to re-index. I was happy that I didn't have to start from the beginning because I was not pruning this time.
Exactly. It will still need to sync block headers and go through the (local) block files, though.

Basically:
[1] Synchronize headers with other nodes (takes just a few minutes usually)
[2] Reindex local blocks
[3] Continue downloading from last non-corrupted block file.

But, After running the command, It's always stuck here, and nothing happens.



Possible solution?
If that header percentage is not going up (20.5% in the screenshot), you could try gracefully closing and re-opening Bitcoin Core. Might have a connection issue with the network peers. Restarting will give you new ones.

Another Question, Is it possible to download the blocks using IDM from anywhere on the internet and after completing the download, Move them to the blocks folder and re-index?
There's honestly no real good reason to do so and it's more secure to do it through the Bitcoin protocol. However, there are people who upload snapshots regularly, such as here.
sr. member
Activity: 280
Merit: 259
https://bitcoincleanup.com #EndTheFUD
AFAIK disable pruning from Bitcoin Core UI or bitcoin.conf should be enough. Just make sure you quit Bitcoin Core gracefully shutdown your computer before your IPS run out of power or configure your computer to do it automatically if your computer can see your IPS status.

I was so confused. I recently installed the latest version of core and started downloading the full block. My block folder size increased to 93 GB so I guess it's a lot for such low-speed internet. Yesterday, My computer was downloading blocks, and I was sleeping. My wife unplugged the computer's power to reduce the load on IPS during the power outage. heck boom,



The same issue as the previous one. This time I know how to re-index. I was happy that I didn't have to start from the beginning because I was not pruning this time. But, After running the command, It's always stuck here, and nothing happens.



Possible solution?


Another Question, Is it possible to download the blocks using IDM from anywhere on the internet and after completing the download, Move them to the blocks folder and re-index?
newbie
Activity: 2
Merit: 0
Austin from Bitcoin Magazine here,

This is excellent! Let me know if interested in writing on article to be published in Bitcoin Magazine. Send email to [email protected] if interested.

Everyone should have the opportunity to run a node.

I strongly believe that it's one of Bitcoin's core values to have as many full nodes (and preferably also miners, but that's another story Cheesy) as possible, distributed in as many households as possible.

While cool node boxes, composed of all-new hardware with SSDs and sexy metal cases can be built for between 200€ and 300€ (or dollars!), that might still be too much for many people. Especially in countries where wages are lower, I understand that this can be an infeasibly large sum of money.
MyNode and Argon One m.2 enclosures, full setup ~250€

The good news: it can be achieved much cheaper than the above mentioned figures! In fact, it can even be free if you have old hardware lying around.
The fact of the matter is, Bitcoin Core doesn't need a whole lot of resources and a 10-year-old, decommissioned laptop or Desktop PC might have enough power to run it.

So I would like to encourage everybody that's not running a node yet, to reconsider it if price for the device itself or an SSD was the main deterring factor.

Hardware selection
Almost any kind of desktop PC, laptop, NUC-type device of the last 10 years should suffice.

Make sure you can swap the drive (they are usually dead after such a long time) and you have a working PSU for it.
Anything else - screen, keyboard, trackpad, speakers, it can all be broken. You will SSH into the machine anyway and you can connect to a HDMI screen + USB keyboard during setup.
This kind of hardware is very often given away for free if you ask around friends and family, or got cheaply (or free) on craigslist.

Recommendations
RAM: 4GB - 8GB (Even as little as 1GB can suffice! If you have more, it's better of course Smiley See my graph down below about sync time with 4 vs 8GB)
Drive: 500GB - 1TB (HDD is fine, but SSD will help for faster initial sync. 500 will not last long and not suffice for Lightning and Electrum server - 1TB would be advised!)
CPU: Intel Core i3 (2nd generation or up tested and working just fine) or better - dual core is advised by me

If the machine you acquired, doesn't meet those specs, you can in many cases just add more RAM or swap the hard drive.
I would stay away from Chromebooks with non-replaceable drives and RAM since they're usually too small and USB drives aren't convenient.

Price
Of course, this low price is mainly made possible by relying on free and cheap old & used stuff.
The final price will depend a lot on how many things you can find for free, but it's possible to build a node from scratch for around $50.
I personally built one of my nodes off a gifted laptop that had no charger, so the person wanted to throw it away. I just bought the PSU for ~20€ and added an existing 500GB USB HDD for the bitcoin directory. So that node cost me just 20€. Here's a setup if you really can't find anything for free.

Example setup for $58:[JUST QUICKLY CHECKED EBAY!]
Laptop without RAM and charger for $29:
https://i.postimg.cc/k5Wd87Js/image.png

4GB RAM for $10:
https://i.postimg.cc/vTghgZMH/image.png

Laptop charger for $10:
https://i.postimg.cc/T3686ZqW/image.png

500GB HDD for $9:
https://i.postimg.cc/sxCpH977/image.png

Of course, shipping adds up and I actually surpassed my $50 limit already. But I just checked eBay 'buy now' section very quickly! If you search locally, ask around, you will easily find someone who will give you an old laptop that doesn't turn on anymore (often broken charger and / or battery) or with cracked screen etc. for free.
Then you just source the charger and a new HDD for a total of $20!

If you actually have a working (but old) laptop already, with charger and everything, maybe invest the full $50 into a new SSD for better performance and longevity!

TL;DR
Get as much free and cheap used, old stuff as possible and slap it together! Cheesy
I know it's not the 'deepest' topic that exists, but it's mainly to explain and show figuratively that running a node can be done very, very cheap and storage size is not an issue either, since HDDs are so damn cheap and can easily be swapped out.
Pages:
Jump to: