Pages:
Author

Topic: [Guide] How to run a Bitcoin Core full node for under 50 bucks! - page 4. (Read 2080 times)

sr. member
Activity: 280
Merit: 259
https://bitcoincleanup.com #EndTheFUD
~
Sounds great! Yes, it can take a few days up to a week on bad connections or low-end hardware, but just let it run in the background, it shouldn't affect your overall system performance at all.

Sadly I am still three years behind. I don't run my computer 24/7. But, Whenever I run, I let the core download the blocks. Meanwhile, I moved my Bitcoin into an Atomic wallet.
hero member
Activity: 882
Merit: 5814
not your keys, not your coins!
~
Sounds great! Yes, it can take a few days up to a week on bad connections or low-end hardware, but just let it run in the background, it shouldn't affect your overall system performance at all.
sr. member
Activity: 280
Merit: 259
https://bitcoincleanup.com #EndTheFUD
Thanks, no worries! I'm glad I could explain it well. Smiley Make sure to download Bitcoin core either from its official GitHub or from the link you always find in the top section of this forum (https://bitcoincore.org/en/download/).

I have downloaded the file from the Forum header
Quote
News: Latest Bitcoin Core release: 22.0 [Torrent]

I have already installed the Bitcoin core, synchronizing with the network. Look like it's going to take a lot of time. I have a terrible internet connection. I am 9 years and seven weeks behind. The number of blocks left is almost 500K. So, I guess I have to wait a long time.
hero member
Activity: 882
Merit: 5814
not your keys, not your coins!
edited out

I guess I am convinced. I don't have any sendable merit. This explanation deserves some of it. I have already started downloading the Bitcoin core. I will let you know once I finish. I have watched a few youtube videos earlier. So, I have a basic idea about that. What if I lost my backup or something like that? What if my HDD Crashes? I am afraid a bit. But, Let's give it a try.
Thanks, no worries! I'm glad I could explain it well. Smiley Make sure to download Bitcoin core either from its official GitHub or from the link you always find in the top section of this forum (https://bitcoincore.org/en/download/).

In case you are using Windows (which most people do on their personal machines), I would recommend you NeuroticFish's guide:
https://bitcointalksearch.org/topic/bitcoin-electrum-server-block-explorer-under-windows-with-wsl-and-debian-5367296

If you're using Linux, you could follow my guide:
https://bitcointalksearch.org/topic/guide-full-node-opensuse-153-bitcoind-electrs-c-lightning-rtl-5366854

For everyday usage, I believe electrs and BTC RPC block explorer that NeuroticFish added to his guide make a lot of sense, since by using those you get the full benefits of running your own node.

HDD crashes are not a big deal and no worries about backups either; since you won't be storing coins on that HDD. If you are, e.g. by using Electrum as your wallet, then make sure to backup your seed onto paper or steel and you have nothing to fear, since you can always restore those seed word backups.
Here's a topic of mine about creating steel backups for around $3-4 USD in materials:
https://bitcointalksearch.org/topic/n0nces-steel-washer-backup-jig-customisable-5363596

And a more in-depth walkthrough by fillippone:
https://bitcointalksearch.org/topic/securing-your-seed-phrase-with-washers-5389446

If you're willing to invest some money for a standalone offline hardware wallet, which is much harder to hack than a software wallet, I would recommend to get one (don't forget to still do a steel washer backup though). A cheap one that still holds its own is the original Trezor Model One, which is tried and tested for many years and fully open-source. It's also got reproducible builds, which some others don't - meaning you can't know that they actually run the code they claim to run.
legendary
Activity: 2842
Merit: 7333
Crypto Swap Exchange
Yes if you need it up now, a week is an intolerably long time. If you just want to run a node, you can start it and walk away and come back next weekend and it should be done.

I agree, although IMO a week for sync is long enough to discourage few people even if they don't need it up quickly.

It's also in general a bad concept running 'decentralized' software on 'centralized' servers. Isn't this what altcoins are doing? Spinning up a few AWS instances and calling it decentralized? Wink

That makes sense, but there are few use cases where you need to use remote/centralized server. For example, small business or non-profit organization who run BTCPaySever.
sr. member
Activity: 280
Merit: 259
https://bitcoincleanup.com #EndTheFUD
edited out

I guess I am convinced. I don't have any sendable merit. This explanation deserves some of it. I have already started downloading the Bitcoin core. I will let you know once I finish. I have watched a few youtube videos earlier. So, I have a basic idea about that. What if I lost my backup or something like that? What if my HDD Crashes? I am afraid a bit. But, Let's give it a try.
hero member
Activity: 882
Merit: 5814
not your keys, not your coins!
Why do you think I should run a Bitcoin core wallet while there are many wallet/exchanges like Binance and Coinbase? I know it's essential if you hold a bunch of Bitcoin.
Oh, wow, so first, you can't just bunch together 'wallet/exchanges', they're two very different things. An exchange is nothing other than a bank that lets you buy and custody some foreign currency for you. However, besides the broken privacy when buying BTC through exchanges; if you actually use them as a wallet... then you don't actually own your Bitcoin!
Have a good read about this topic here: https://notyourkeys.org/

So you absolutely don't want to keep coins on exchanges.

It's so mind boggling to me that people buy and hodl their coins on an exchange, since that's so completely against the whole idea and concept of Bitcoin.
To reiterate: Bitcoin is a A Peer-to-Peer Electronic Cash System.
Bitcoin lets you pay from one party to another without going through a financial institutionhttps://bitcoin.org/bitcoin.pdf - an exchange is such a financial institution.
Bitcoin lets you own and transfer coins without anyone knowing they are yours. The public can see that someone is sending
an amount to someone else, but without information linking the transaction to anyone
https://bitcoin.org/bitcoin.pdf - unless you bought the coins on an exchange that has a picture of your ID and a selfie of your face.

But, I have such a tiny amount of Bitcoin (below $1K).
This doesn't matter. Running a node doesn't have a lot to do with holding your keys (which again, is essential). You can use any open-source non-custodial wallet and be safe from your funds being stolen or confiscated, without having to run a node. In fact, that's what I recommend; since a full node is always online and that computer might be infected by a virus.

The reason you want to run a node is to make Bitcoin decentralized. If only the big exchanges ran a node, it would be trivial to attack the network. Blockchain is meaningless without a decentralized network.

I think I can hold them on Binance and stake it to accumulate more satoshi.
That's a terrible idea; you risk losing it all just for a tiny amount of 'rent' you get from it.

Are there any benefits of running a full node?
Yes; you can point your wallet software at your own node in its settings, like Trezor software or Electrum. This will cause it to look up addresses and balances on your own local copy of the blockchain, making your Bitcoin usage much more anonymous.

I know that sometimes Running a lightning network node can give you some benefits which also not profitable (less than $1/month). Suppose I installed a full node. Why do I have to run it 24/7? What are the benefits?
Running a (Lightning) node is not for profit; that's because Lightning is made to be cheap and the routing fees are incredibly low. But that's by design. As I just said, the main benefit of running your own node (for you) is that you gain more privacy and you can't be fooled by a malicious block explorer. Such a site could lead you into the belief that a payment was sent, while it was not, for instance.
You don't have to run Bitcoin 24/7, but for Lightning it is required. The reason why is a bit outside the scope of this topic, but there are lots of good resources about it.

I have a Ryzen 3 3200G CPU+ 16GB Ram + 2TB HDD PC. Can I install the full node in this setup?
Sure; the whole point of the thread you've read here is that Bitcoin runs on super low-end laptop hardware. As far as I can tell, you've got a pretty good CPU so it will work.



That makes sense, but there are few use cases where you need to use remote/centralized server. For example, small business or non-profit organization who run BTCPayServer.
Correct, yes. In that case, the node may be required to run the payment server on top of it, but those nodes shouldn't be considered part of the 'secure, reliable backbone' of the network, in my opinion.

It's not like we can tell a node is part of the "secure, reliable backbone" unless they use popular VPS which it's IP range is known without VPN or Tor.
I know, I know, just wanted to highlight the importance of independent node operators and hobbyists!
legendary
Activity: 2842
Merit: 7333
Crypto Swap Exchange
I agree, although IMO a week for sync is long enough to discourage few people even if they don't need it up quickly.
Why that hurry, though? I am confident if there was a strong demand for faster IBD, we would have many more people working on and campaigning for stuff like checkpoints on the blockchain.

Some people simply not patient. Idea for faster IBD such as UTXO commitment already suggested several times, but receive little support/interest.

That makes sense, but there are few use cases where you need to use remote/centralized server. For example, small business or non-profit organization who run BTCPayServer.
Correct, yes. In that case, the node may be required to run the payment server on top of it, but those nodes shouldn't be considered part of the 'secure, reliable backbone' of the network, in my opinion.

It's not like we can tell a node is part of the "secure, reliable backbone" unless they use popular VPS which it's IP range is known without VPN or Tor.

Why do you think I should run a Bitcoin core wallet while there are many wallet/exchanges like Binance and Coinbase? I know it's essential if you hold a bunch of Bitcoin. But, I have such a tiny amount of Bitcoin (below $1K). I think I can hold them on Binance and stake it to accumulate more satoshi.

TLDR, better privacy and you actually have control over your Bitcoin. Although you can use SPV non-custodial (with Tor/VPN) such as Electrum to receive similar benefit.

I have a Ryzen 3 3200G CPU+ 16GB Ram + 2TB HDD PC. Can I install the full node in this setup?

Yes.
sr. member
Activity: 280
Merit: 259
https://bitcoincleanup.com #EndTheFUD
I am sorry if this is a bullshit question. I am a newbie (Not in crypto). Why do you think I should run a Bitcoin core wallet while there are many wallet/exchanges like Binance and Coinbase? I know it's essential if you hold a bunch of Bitcoin. But, I have such a tiny amount of Bitcoin (below $1K). I think I can hold them on Binance and stake it to accumulate more satoshi. Are there any benefits of running a full node? I know that sometimes Running a lightning network node can give you some benefits which also not profitable (less than $1/month). Suppose I installed a full node. Why do I have to run it 24/7? What are the benefits? I have a Ryzen 3 3200G CPU+ 16GB Ram + 2TB HDD PC. Can I install the full node in this setup?

I am sorry, but I am interested to learn. I appreciate any help you can provide.
hero member
Activity: 882
Merit: 5814
not your keys, not your coins!
Yes if you need it up now, a week is an intolerably long time. If you just want to run a node, you can start it and walk away and come back next weekend and it should be done.

I agree, although IMO a week for sync is long enough to discourage few people even if they don't need it up quickly.
Why that hurry, though? I am confident if there was a strong demand for faster IBD, we would have many more people working on and campaigning for stuff like checkpoints on the blockchain.

It's also in general a bad concept running 'decentralized' software on 'centralized' servers. Isn't this what altcoins are doing? Spinning up a few AWS instances and calling it decentralized? Wink

That makes sense, but there are few use cases where you need to use remote/centralized server. For example, small business or non-profit organization who run BTCPayServer.
Correct, yes. In that case, the node may be required to run the payment server on top of it, but those nodes shouldn't be considered part of the 'secure, reliable backbone' of the network, in my opinion.
hero member
Activity: 882
Merit: 5814
not your keys, not your coins!
I agree, although it's different case if you need to host full node on remote server.
I strongly believe that full nodes do belong in people's homes; that's why I made this guide and why I'm so hell-bent on reasonably small blocks. Grin
Just like laws are kicking in in the EU right now, and probably other places in the future, laws could be put in place that categorize node operators similarly to payment providers, requiring some kind of license or KYC. Hence, cloud providers might either hand out this sort of information if queried or just forbid to run e.g. Bitcoin Core.
It's also in general a bad concept running 'decentralized' software on 'centralized' servers. Isn't this what altcoins are doing? Spinning up a few AWS instances and calling it decentralized? Wink

Aside from bandwidth, you also need to consider CPU speed, RAM capacity and HDD speed. HDD speed can be partially solved by moving chainstate directory to SSD or allocate very big RAM to Bitcoin Core (IIRC at least 8GB).
That's right: my last node install was on such a 'budget build' as described here and it was taking too long, so I installed 4 extra GB and it went super fast. My internet connection wasn't great, but RAM still was the bottleneck. As you guys are saying; $50 can be a lot of money in some places, so I believe it's great to see that Bitcoin still manages with pretty low system requirements and such a low cost barrier to 'entry' as a node runner.

For now, I would like to share my experience with a node that I've setup a few days ago. It is one of my nodes that needed a bit of maintenance; it was quite cluttered and had outdated software so I rebuilt it from scratch. I will also post a guide about it soon (OpenSUSE node walkthrough).
The hardware is a laptop motherboard with 4GB RAM and 2 500GB HDDs.
After it had taken almost a week to achieve ~40% sync, it was going super slow; around 1-2% a day, so I thought it may be a good idea to just plop in a second stick of RAM and see if it does anything. I kind of expected something to happen, but I was astonished at the speed it was going at afterwards! The HDD arm was moving much less now (audible difference); I suspect it was swapping a ton before, and the log was literally flying.

Here's a graph of some measurements I took; I let you guys guess at which point in time I upgraded the node from 4GB to 8GB Cheesy



The speed at which it's going, makes me think it should be able to do a full sync in 2 days or so (from scratch); even though it's using a HDD.
Sooo.. all these modern hardware - based super fast syncing nodes.... (Pi 4 8GB + SSD + nice case) I think they actually gain most of their speed from the larger RAM and not from the SSD (which I was considering buying for this node actually)! Very impressive; that HDDs are actually this well suited for a fast IBD. I had not expected it.
hero member
Activity: 789
Merit: 1909
Well, I thought you want to index only non-pruned transactions. Then it makes some sense, but still, enabling those two options together is like mixing water with fire. Because it is not that you cannot query transactions: you can, but you need to always provide block hash, when doing that without txindex.
legendary
Activity: 2842
Merit: 7333
Crypto Swap Exchange
First of all, how do you index transaction which isn't exist on your device? Block which contain transactions already pruned/removed.
During IBD, can't you index the transactions and then remove them?

Do you mean you want to create the index (TX ID) without storing the content (the transaction itself)? I think it's possible, but i don't see any practical usage.
legendary
Activity: 1344
Merit: 6415
Farewell, Leo
Do you mean you want to create the index (TX ID) without storing the content (the transaction itself)? I think it's possible, but i don't see any practical usage.
Me neither. I had probably misunderstood this. Transaction indexing has a purpose when you also keep the transactions, which means when you don't prune.
legendary
Activity: 3458
Merit: 6231
Crypto Swap Exchange
Drive prices are falling insanely fast even with all the chip shortages and shipping issues all over the world. I just got an 18TB drive (on sale) for $300 1 & 2 TB are under $50.
While I know that may be a lot of money for some people in parts of the world those are new prices. I have seen 1TB used for under $5 in places.

I agree, although it's different case if you need to host full node on remote server.

Time to download is probably not as big a concern then people who have bandwidth amount limited plans.

Aside from bandwidth, you also need to consider CPU speed, RAM capacity and HDD speed. HDD speed can be partially solved by moving chainstate directory to SSD or allocate very big RAM to Bitcoin Core (IIRC at least 8GB).

Going to have to disagree with you here.

With unlimited bandwidth I can sync a node from scratch on an 4GB RPi4 with a 5400 RPM USB drive in under a week.
Using an SSD will get that down to 4 days or so. Literally just did both with Umbrel builds.

Yes if you need it up now, a week is an intolerably long time. If you just want to run a node, you can start it and walk away and come back next weekend and it should be done.

-Dave
legendary
Activity: 2842
Merit: 7333
Crypto Swap Exchange
So, storage is probably the biggest concern for Bitcoin self hosted nodes, at least full nodes is that the storage requirements might outpace what general consumers usually have or require. I don't think it'll be an issue for the capability we have in manufacturing larger hard drives, but it'll be what is available to the general consumer at a decent price, which the lesser demand probably means a lot of people could be out priced. Thoughts?

It's valid concern, but IMO time for initial block download (IBD) is bigger concern. I expect some people who interested to run full node discourage time for IBD could take some time.

Edit: My bad. You're right. I hadn't ever tried it, to be honest, but I thought it would work. Could you explain me why a pruned node can't index all the transactions? The blocks/index is less than 40 GB and it could be used if one wanted to run an SPV server.

First of all, how do you index transaction which isn't exist on your device? Block which contain transactions already pruned/removed.
legendary
Activity: 2842
Merit: 7333
Crypto Swap Exchange
Drive prices are falling insanely fast even with all the chip shortages and shipping issues all over the world. I just got an 18TB drive (on sale) for $300 1 & 2 TB are under $50.
While I know that may be a lot of money for some people in parts of the world those are new prices. I have seen 1TB used for under $5 in places.

I agree, although it's different case if you need to host full node on remote server.

Time to download is probably not as big a concern then people who have bandwidth amount limited plans.

Aside from bandwidth, you also need to consider CPU speed, RAM capacity and HDD speed. HDD speed can be partially solved by moving chainstate directory to SSD or allocate very big RAM to Bitcoin Core (IIRC at least 8GB).
legendary
Activity: 3458
Merit: 6231
Crypto Swap Exchange
So, storage is probably the biggest concern for Bitcoin self hosted nodes, at least full nodes is that the storage requirements might outpace what general consumers usually have or require. I don't think it'll be an issue for the capability we have in manufacturing larger hard drives, but it'll be what is available to the general consumer at a decent price, which the lesser demand probably means a lot of people could be out priced. Thoughts?

It's valid concern, but IMO time for initial block download (IBD) is bigger concern. I expect some people who interested to run full node discourage time for IBD could take some time.

Drive prices are falling insanely fast even with all the chip shortages and shipping issues all over the world. I just got an 18TB drive (on sale) for $300 1 & 2 TB are under $50.
While I know that may be a lot of money for some people in parts of the world those are new prices. I have seen 1TB used for under $5 in places.

Time to download is probably not as big a concern then people who have bandwidth amount limited plans.

Yes with 1meg download speed it can take close to 2 months to download the entire blockchain. BUT if you only have a 100GB max download a month total before extra billing or fees kick in then do you pay more or take 6 months to download?

-Dave
legendary
Activity: 1344
Merit: 6415
Farewell, Leo
First of all, how do you index transaction which isn't exist on your device? Block which contain transactions already pruned/removed.
During IBD, can't you index the transactions and then remove them?
legendary
Activity: 1344
Merit: 6415
Farewell, Leo
The reason why it is not available by default is that "pruning" means "I want to reduce my disk usage", but "txindex" means "I want to store everything".
Sure, it's oxymoron and there's no essential utility unless one wants to store all the outputs, but no blocks for some reason. That reason could perhaps be to run an SPV server with less expense?

If you don't want to store everything, but verify everything for your own good: Run a pruned node.
If you don't care of storing everything or you want to go beyond personal use: Run a non-pruned node.
Pages:
Jump to: