Bitcoin Q&A: The Mining Process

  Рет қаралды 15,639

aantonop

aantonop

Күн бұрын

Can you provide a brief overview of the mining process? Is there human intervention in mining or is it automated? What influenced the centralisation of mining and how will it decentralise again?
More on mining and consensus in 'Mastering Bitcoin' - github.com/bitcoinbook/bitcoi...
Chapters
0:00 Can you explain the mining process in detail? When are hashes calculated? How are the
transactions selected from the mempool? Does the client software automatically confirm the correct blocks?
8:36 If my node finds a block, is the verification automatic, or does a real person need to do manual work to enable it to go through?
9:31 Some say that a few miners control 70% of the hash power. Is this centralization?
These questions are from the MOOC 9.2, 9.3, and 9.5 sessions, which took place on February 23rd, March 2nd, and March 16th 2018 respectively. Andreas is a teaching fellow with the University of Nicosia. The first course in their Master of Science in Digital Currency degree, DFIN-511: Introduction to Digital Currencies, is offered for free as an open enrollment MOOC course to anyone interested in learning about the fundamental principles.
If you want early-access to talks and a chance to participate in the monthly live Q&As with Andreas, become a patron: / aantonop
RELATED:
Consensus Algorithms, Blockchain Technology, and Bitcoin - • Consensus Algorithms, ...
Advanced Bitcoin Scripting Part 1: Transactions and Multisig - • Advanced Bitcoin Scrip...
Advanced Bitcoin Scripting Part 2: SegWit, Consensus, and Trustware - • Advanced Bitcoin Scrip...
What is Consensus: Rules without Rulers - • What is Consensus: Rul...
Forkology: A Study of Forks for Newbies - • Forkology: A Study of ...
Bitcoin: Where the Laws of Mathematics Prevail - • Bitcoin: Where the Law...
Software distribution security - • Bitcoin Q&A: Software ...
What is mining? - • Bitcoin Q&A: What is M...
Miners, pools, and consensus - • Bitcoin Q&A: Miners, P...
The rules of Bitcoin (part 1) - • Bitcoin Q&A: The Rules...
The rules of Bitcoin (part 2) - • Bitcoin Q&A: The Rules...
Rules versus rulers - • Bitcoin Q&A: Rules ver...
The value of proof-of-work - • Bitcoin Q&A: The Value...
Could a state-sponsored 51% attack work? - • Bitcoin Q&A: Could a S...
Honest nodes and consensus - • Bitcoin Q&A: Honest No...
Spam transactions and Child Pays For Parent (CPFP) - • Bitcoin Q&A: Spam Tran...
Is Bitcoin a democracy? - • Bitcoin Q&A: Is Bitcoi...
Decentralized power, leaderless governance - • Bitcoin Q&A: Decentral...
Scaling, trust, and trade-offs - • Bitcoin Q&A: Scaling, ...
What is the role of nodes? - • Bitcoin Q&A: What is t...
Why running a node is important - • Bitcoin Q&A: Why Runni...
Lightning, full nodes, and miners - • Bitcoin Q&A: Lightning...
Running nodes and payment channels - • Bitcoin Q&A: Running N...
What happens during a fork? - • Bitcoin Q&A: What Happ...
SegWit adoption - • Bitcoin Q&A: SegWit Ad...
Spam transactions and Child Pays For Parent (CPFP) - • Bitcoin Q&A: Spam Tran...
Energy consumption - • Bitcoin Q&A: Energy Co...
Solar energy and mining in space - • Bitcoin Q&A: Solar Ene...
Bitmain and ASICBoost allegations - • Bitcoin Q&A: Bitmain a...
Andreas M. Antonopoulos is a technologist and serial entrepreneur who has become one of the most well-known and respected figures in bitcoin.
Follow on Twitter: @aantonop / aantonop
Website: antonopoulos.com/
He is the author of two books: “Mastering Bitcoin,” published by O’Reilly Media and considered the best technical guide to bitcoin; “The Internet of Money,” a book about why bitcoin matters.
THE INTERNET OF MONEY, v1: www.amazon.co.uk/Internet-Mon...
[NEW] THE INTERNET OF MONEY, v2: www.amazon.com/Internet-Money...
MASTERING BITCOIN: www.amazon.co.uk/Mastering-Bi...
[NEW] MASTERING BITCOIN, 2nd Edition: www.amazon.com/Mastering-Bitc...
Subscribe to the channel to learn more about Bitcoin & open blockchains!
Music: "Unbounded" by Orfan ( / orfan )
Outro Graphics: Phneep (www.phneep.com/)
Outro Art: Rock Barcellos (www.rockincomics.com.br/)
Join the aantonop Channel: aantonop.io/joinaantonopyt

Пікірлер: 42
@Mikesco3
@Mikesco3 6 жыл бұрын
Is the nonce calculated in a sequential order or random sequence? Because I was wondering if everybody is incrementing the nonce say from zero upwards till they find a valid hash. Because another advantage of having a large amount of miners could be starting different miners at different starting points so they aren't all counting the same nonce numbers
@MikeMalaysia
@MikeMalaysia 4 жыл бұрын
It is completley random, and you need the hash of block n-1 in order to attempt solving block n, so no u can't mine blocks in the future.
@greatbritain5355
@greatbritain5355 6 жыл бұрын
I haven't got any crypto currency however I am fascinated with the technology and community.
@darrelbryan
@darrelbryan 6 жыл бұрын
Great Britain lmao
@hossein3494
@hossein3494 6 жыл бұрын
I'm concerned that some day governments require KYC for transactions. Which can get the transactions to sit in queue until it gets KYC info from another protocol. That's why i really take mining decentralization seriously.
@nion456789
@nion456789 6 жыл бұрын
best explination always.....smashed the like.....
@ketzalkiawitl
@ketzalkiawitl 6 жыл бұрын
Andreas, would you be interested in spanish subtitles for your videos?
@aantonop
@aantonop 6 жыл бұрын
We already have 60 videos with Spanish subtitles. More please! Have a look: kzbin.info/aero/PLPQwGV1aLnTti_3_9dfwfg6a4XLly9i6n
@mywaycarpet
@mywaycarpet 6 жыл бұрын
You are awesome and the most intelligent man in this field, in my opinion. Thank you for your hard work and efforts! Your crypto follower, Sam The Carpet Man®
@jamesthomas4577
@jamesthomas4577 6 жыл бұрын
Thank you Andreas.
@peterpetrov6522
@peterpetrov6522 6 жыл бұрын
Thank you Andreas! Bitcoin is 5 (cat) years older than the other crypto currencies, but it feels like they all caught up to Bitcoin and, because of the exponential growth, Bitcoin might end up in the top 50 in 6 months!! What is Bitcoin doing wrong?? How does it become the clear winner with the lowest fees, the highest tps and the highest number of nodes? This competition shouldn't be that close.
@aantonop
@aantonop 6 жыл бұрын
It's easy to pretend you have better solutions when you don't have to test them at massive scale or against state-level attacks. Bitcoin is designed to survive in that kind of environment. People keep predicting a "flippening", every 6 months over the past 5 years. It hasn't happened and I doubt it will. There may be faster and cheaper systems developed. But so far I only see one that is robust, decentralized and censorship resistant.
@Mikeeeeeeeeeeeeeeeeeeee
@Mikeeeeeeeeeeeeeeeeeeee 6 жыл бұрын
but those few taht have a lot of percent of the hash power are the pools right? So when people see a pool doing something they dont agree with can choose to use another pool?
@geekworthy7938
@geekworthy7938 6 жыл бұрын
Thank you, this is the most in depth explanation I have found yet. My remaining questions are: 1. Where does each miner get it's nonce? Does it just start at a random number? Do they all start with the same? Can you tweak it? 2. So it seems that after a block solution is found and transmitted to other nodes, how long does that process take to reach all nodes? 3. Is it possible that a few solutions can be being worked on at the same time? 4. Is it possible to ignore other miner's solutions? If not, is it then possible to flood the network with incorrect solutions and in effect create a denial of service? 5. I'm also wondering about the pool of transactions left to be added. From your video it sounds like it can just grow and grow creating a huge backlog. How do they prevent this from happening? How do they guarantee timely transactions? 6. I know they are counting on fees to ultimately provide incentive when the bitcoins that are awarded just aren't worth it. If this is so, does this means transactions without fees or smaller ones can just be pushed to the end of the line forever? Thanks. BTW, I have heard of a team which owns 8 warehouses full of miners in China, and that was like a year ago. Again, great video! Going to share it with friends.
@marysini1391
@marysini1391 2 жыл бұрын
A simple question: the brute force searching for nonce starts with 1, 2 and, so on.... or with random numbers with a lot of digits?
@PuscH311
@PuscH311 6 жыл бұрын
thx for upload
@cryptoconversations388
@cryptoconversations388 6 жыл бұрын
Outstanding
@THEACCOUNTANTTHEBITCOINCORP
@THEACCOUNTANTTHEBITCOINCORP 6 жыл бұрын
Hello Andreas, QUESTION: What Proof of work for Encryption, Uniqueness & Entire Control is generated by the creation of the Digital Seed by an application ?
@lucapeter379
@lucapeter379 9 ай бұрын
Thanks Andreas! :) great video! What if 2 Miners find a nonce almost in the same time? I guess it is a timestamp at the exactly time he found the nonce? But as it takes some time until the information is spread through the network, it could happen that some of them have the wrong one already implemented? I would be happy to get to know more about the syncronisation of the network.
@Qelly21
@Qelly21 6 жыл бұрын
Were is mempool stored? Once a new block is mined, the transactions it contains must be removed from mempool. Right? Who preforms the removal? What if the block I am mining at the moment contains transaction X and Y, and I receive a new valid block with transactions X and Z. Should I abandon mining both of them or just the transaction X?
@aantonop
@aantonop 6 жыл бұрын
Each node has it's own mempool, removing individual transactions when they are mined in a block. There is no "THE mempool", there is only "my node's mempool"
@jamillhallak1844
@jamillhallak1844 3 жыл бұрын
1-suppose there are two miners (A , B), and both of them work on the same block with all the transactions it contains. The first miner A managed to prove his work and spread his block to the network and it was approved and take his reward. After several days, the second worker B finished the work on his block (which is the same as that of the first miner ) and published it to the network. What is the mechanism used by the network to know that this block has already been approved so that the block of the second miner B is rejected? 2- if I try to public empty block (only have coinbase transaction ) will the network approve it and will I get my 12.5 BTC after 100 blocks?
@Francesco-cj3oi
@Francesco-cj3oi 2 жыл бұрын
When the first block gets approved by miner A, every other miner sees it and immediately starts validating transactions for the next block. I believe what would happen in your scenario is a hard fork?
@Jason-pk5ec
@Jason-pk5ec 6 жыл бұрын
In the future when bitcoin are no longer issued as a reward, will there no longer be empty blocks as there is no financial benefit?
@don.mccracken
@don.mccracken 6 жыл бұрын
Great video Andreas! However, in spite of also having read your book, I still don't quite understand what happens to the transactions in a losing candidate block, and how and when transactions move from the mempool into a block. I would appreciate if you could explain this process in more detail. Here's my best guess at how it goes. Each miner can chose which and how many transactions from the mempool to include in their candidate block. So in theory at least, each candidate block could include a different set of transactions. Once a block is found, the transactions in the winning block are 'tagged' confirmed and removed from the mempool. The losing miners delete their transaction selections and start over with a new set of transactions from the current mempool of unconfirmed transactions. Please let me know if this is correct of if I'm missing something. Thanks!
@aantonop
@aantonop 6 жыл бұрын
That's exactly how it works, including the different set of transactions in each candidate block. One additional thought - miners may replace the candidate block every few seconds, as new lucrative (fee) transactions arrive and are prioritized. Each proof-of-work attempt (trillions per second) is statistically unrelated to the previous and has equal chance to find a valid proof. Changing candidate blocks in between doesn't affect the probability of success.
@don.mccracken
@don.mccracken 6 жыл бұрын
Thanks! As a tech geek without programming skills, your books and videos have really helped me to better understand the tech behind bitcoin. Thank you for spreading the knowledge!
@kennethstauffer9220
@kennethstauffer9220 5 жыл бұрын
12.5 bitcoins seems like a huge payday. what is the gotchas? what are satoshi's? why wouldn't every transaction be the same number of bytes?
@kennethstauffer9220
@kennethstauffer9220 5 жыл бұрын
12.5 bitcoin fee is so huge, how much more bitcoins can be obtained by the fees associated with each transaction?
@chubitos
@chubitos 6 жыл бұрын
Shouldnt the mining difficult decrease with the time without blocks? Imagine that all the asic miners leave bitcoin. It would take ages to a normal pc find each block, so the difficult adjustment would take forever because it happens every x blocks. If the difficult decreased after some time without new blocks it would be easier to new miners join the network in case the asic ones change chain
@rrpprp
@rrpprp 6 жыл бұрын
@ decentralization: true, BUT one (a few) miner(s) can (and will very probably) globalize their mining activities => decentralized mining facilities, but centralized decision making...
@Francesco-cj3oi
@Francesco-cj3oi 2 жыл бұрын
Unless mining farms become government properties and government officials make the decisions, we are good. And people can alwaya create their own node and their own mining node and contribute to the decision making, effectively reducing the power of the "centralized" mining farms
@franky1636
@franky1636 6 жыл бұрын
Wouldn't Bitcoin be more decentralized with an ASIC resistant mining algorithm?
@MikeMalaysia
@MikeMalaysia 4 жыл бұрын
No
@thomasimmler7857
@thomasimmler7857 5 жыл бұрын
Sehr interessant, sollten uns mal unterhalten, Liebe Grüße Thomas
@MrHalinrobert
@MrHalinrobert 6 жыл бұрын
Fitrova FRV token Listed in 3 exchanges after the 2 weeks of ICO complete, and 2 more exchanges in coming week. Best token for health and fitness industry.
@floodedstrand
@floodedstrand 6 жыл бұрын
Chinese subtitle please
Bitcoin Q&A: What is a Private Key?
18:18
aantonop
Рет қаралды 42 М.
Perfect Beer Experience with Bitcoin Payment
0:35
Pubinno, Inc.
Рет қаралды 800
Giving 1000 Phones Away
00:18
MrBeast
Рет қаралды 27 МЛН
Normal vs Smokers !! 😱😱😱
00:12
Tibo InShape
Рет қаралды 116 МЛН
What are Diffusion Models?
15:28
Ari Seff
Рет қаралды 200 М.
Rust's Alien Data Types 👽 Box, Rc, Arc
11:54
Code to the Moon
Рет қаралды 131 М.
Bitcoin Q&A: Key Storage Best Practices
18:15
aantonop
Рет қаралды 54 М.
Bitcoin Q&A: Nonces, Mining, and Quantum Computing
15:23
aantonop
Рет қаралды 16 М.
AI’s Hardware Problem
16:47
Asianometry
Рет қаралды 614 М.
Bitcoin and cryptocurrency mining explained
7:46
365 Financial Analyst
Рет қаралды 801 М.
How TLS Works?
12:09
High-Performance Programming
Рет қаралды 33 М.
But how does bitcoin actually work?
25:16
3Blue1Brown
Рет қаралды 15 МЛН
Теперь это его телефон
0:21
Хорошие Новости
Рет қаралды 1,7 МЛН
Как я сделал домашний кинотеатр
0:41
RICARDO
Рет қаралды 1,5 МЛН
🤔Почему Samsung ПОМОГАЕТ Apple?
0:48
Technodeus
Рет қаралды 450 М.
👎Главный МИНУС планшета Apple🍏
0:29
Demin's Lounge
Рет қаралды 482 М.