How Bitcoin Transactions Get Verified.
Have you ever wondered how transactions get validated and then added to the Bitcoin blockchain? If Bitcoin is "decentralized" then who or what group approves the transactions?
Your answer is not farfetched. The Bitcoin Blockchain uses a consensus algorithm. Consensus because it requires members (called miners) of the Bitcoin network to try their hands at solving a mathematical problem in other to add transactions to the Bitcoin Block.
You may wonder how the Blockchain is secure if members can validate transactions.
Well, miners are rewarded with Bitcoins for every block for which they find the solution. So if a miner breaks the rules within a block they should be rewarded for, the block will be rejected by the network and the reward withdrawn from the miner.
If you are now thinking, well he can just get support. This means the miner now has 51% mining power which is just impossible as all miners are anonymous and scattered across the world.
To fill your head with more nerd stuff read the full article here