Network and blocks
Blockchain
A blockchain is a shared ledger made of blocks of transactions, each block linked to the one before it by its hash.
- Linked by
- the hash of the previous block
- Stored by
- every full node
- Extended by
- miners or, on other chains, validators
- Changed by
- adding only, not editing
- First Bitcoin block
- 3 January 2009
What it means in practice
Every block carries the hash of the previous block's header, so changing an old transaction would change every block after it. Thousands of computers keep a copy and check each new block against the rules. On proof-of-work chains, miners add the blocks and are paid in the chain's own coin for doing so.
What is inside a block
A block has a short header and a list of transactions. The first transaction is special: it has no sender and pays the miner. The rest are payments people sent to the network. A Merkle tree ties the list to the header by hashing the transactions in pairs until one fingerprint is left.
Thanks to that tree, a phone wallet can prove a payment is in a block without downloading the block. It asks for the few hashes on the path from the payment to the top. For 4,000 transactions that is only 12 hashes.
Why an old entry cannot be edited quietly
Change one digit in a payment and its hash changes. So does the Merkle root, the header’s hash, and the link in the next block, which no longer points to anything. Every later block breaks in turn.
To repair the chain you would have to find new valid hashes for all of them, faster than the rest of the network adds new ones. The link makes a change visible, and the work makes it costly.
How much room it takes
Example figures: blocks of 1.6 MB on average and 144 of them a day add 230 MB a day, or about 84 GB a year. A full node keeps everything. A pruned node checks everything too, then throws old blocks away and lives in a few gigabytes.
A miner connected to a pool needs none of it. The pool’s node holds the chain and sends the machine only the header to work on. Someone who mines solo at home with their own node keeps a copy or a pruned one.
Rules and forks
A chain is as much a set of rules as a file. Nodes reject a block that breaks a rule even if its proof of work is perfect. A miner who creates too many new coins has burned power for nothing.
When the rules are tightened, old nodes can still follow along: that is a soft fork. When they are loosened, old nodes refuse the new blocks, and a hard fork may leave two coins. For the owner of a machine the question is which coins share its algorithm afterward.
Chains that are not a single line
Some networks let blocks appear side by side. Kaspa arranges them in a graph and then sorts them into one order. Alephium runs several chains in parallel. For the miner the work stays the same: hash, find, get paid. What changes is how often a block is found and how payouts are counted.
Confirmation also feels different there. A wallet may show a payment as safe after seconds, because many small blocks have already been built around it.
Worked example
A chain that adds one block every 10 minutes grows by about 144 blocks a day and 52,560 a year.
Example figures, not live data.
Common mistakes
- Thinking the chain stores coins in a wallet: it stores which amounts each key may spend.
- Assuming a blockchain is private, when most are readable by anyone.
- Mixing up a full node, which checks the rules, with a miner, which adds blocks.
Common questions
Do I need to download the blockchain to mine?
Not with a pool. The machine receives its work over a few kilobytes a minute.
What is the difference between a blockchain and a database?
A database has an owner who can edit it. A public blockchain has many copies, and changes are accepted only when they follow the common rules.
Can a blockchain stop?
If nobody adds blocks, it stands still until someone does. Difficulty rules on most mined coins then make it easier again.