Is a Blockchain Just Code Running on Many Computers? (Nodes & Resilience)
🤔 So is blockchain just code located on a bunch of computers?
Yes, simply put, a blockchain is a shared, immutable database distributed across a network of computers, along with the rules that govern those data.
To understand this even better, let's look at it this way:
Is it just "Code"?
A blockchain is mainly composed of two parts:
- The Software (The Code): This is the set of rules (the Protocol) determining how the network must operate. For example, things like "how does a transaction occur?", "how is a new coin created?" are written in this code.
- The Database (The Ledger): This is the record where all transactions are logged.
How does this exist across many computers?
The specialty of a blockchain is that this "Code" and "Ledger" run simultaneously on thousands of independent computers around the world (these are called Nodes).
- If you open an account at a bank, those data reside only on the bank's server.
- However, in a blockchain, a copy of every single transaction that occurs is deposited into every computer in this network.
What is the advantage of this?
If someone tries to secretly modify the data (the Code or the Ledger) on their computer, the network rejects that change because it does not match the thousands of other computers in the network.
Still haven't fully understood? You might be wondering: how does this code run on every computer in the world? If I buy a computer today, does it work as a node too? That's precisely why "The Crypto Folder" was created—to learn this thoroughly and simply. 😎
When someone hears "this is on every computer around the world," anyone would think that even the new laptop they bought today has it. No, that's not how it happens. Let's understand this simply.
▫️ Not on every computer, only on computers connected to the network.
This blockchain does not run on billions of computers globally. It runs only on computers belonging to those who voluntarily choose to connect to this network. If you buy a new computer today, it is not a Node. Only if you download and install the blockchain software (e.g., Bitcoin Core software) onto that computer does your computer become a "Node."
▫️ How does it work? (Like a Torrent)
If you have ever downloaded a movie via Torrent, this is very easy to understand. In a torrent, the film isn't located on a single server. It is located on the computers of thousands of people around the world who have downloaded it. Even if one person turns off their computer, the network keeps working because thousands of others still have that film.
A blockchain is just like that. Everyone who has installed this software is connected to one another over the Internet (this is called a P2P Network). The moment one person records a new transaction, they send it as a message to the nodes closest to them. Within seconds, nodes all across the world copy that message.
▫️ Why do people install this on their computers? (The Motivation)
You might think: "Why should I spend significant storage on my computer and burn electricity to run this?" Here are the reasons: 👇
- Mining (For Profit): Certain nodes (Miners) receive newly minted coins as a reward when they incorporate new transactions into the ledger.
- Security (For Protection): If you run a large crypto enterprise, verifying data via your own node rather than trusting data provided by someone else is far more secure.
- Ideology (Belief): Volunteers who want to help maintain and sustain the blockchain system.
"Blockchain is an open network accessible to anyone. The computer you purchase today does not automatically become a Node; however, the moment you install the relevant blockchain software and connect it to the internet, you become one of the custodians of that great Public Ledger. Because thousands of individuals maintain data voluntarily in this manner, the blockchain network operates continuously 365 days a year without needing any centralized authority."
🤔 Given this explanation, if someone who installed bitcoin core software turns off their computer, do they not copy incoming messages from other nodes?
This is a practical question that many people have. The short answer is: Yes, while the computer is turned off, it does not receive new messages (Transactions/Blocks).
However, that causes no harm either to the network or to that computer. Here is how that works:
Offline Time (Catch-up Mode)
While your computer is turned off, thousands of new transactions take place around the world. Your Node is "asleep" during that time.
However, the moment you turn the computer back on and open the software (Bitcoin Core), the first thing it does is connect with other Nodes in the network. Then your Node asks the others: "What happened while I was offline? Send me the new Blocks I missed."
Then the other Nodes send you all the missed data and "Sync" (update) your Node. This is just like turning off WhatsApp mobile data for two days, and the moment you turn data back on, all the old messages arrive at once.
Is there any impact on the network?
No. Because there are thousands of Nodes in a blockchain network. The network does not stop just because one or ten go offline. For the network to continue operating, it is sufficient for at least one Node somewhere in the world to remain powered on at any given moment.
The Importance of a "Fully Synced" Node
Your Node operates accurately only after it is 100% Synced. If your Node is not Synced, money someone sent you might not show up yet. However, that does not mean the money was not received. The funds are already recorded on the blockchain; it is simply not yet recorded on your local personal copy.
"The most unique characteristic of a blockchain network is its resilience. Any Node has the freedom to leave the network at any moment and reconnect later. The instant a Node reconnects to the Internet, it automatically communicates with other Nodes, retrieves all the data (Blocks) it missed, and updates itself. Because of this, wiping out a blockchain data system from the world is practically impossible."
Comments
Post a Comment