TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Why Is It Taking 20 Minutes to Mine This Bitcoin Block?

258 点作者 CyrusL大约 7 年前

21 条评论

alschwalm大约 7 年前
The article on the &quot;hitchhiker&#x27;s paradox&quot; that this links to made this much more clear to me (as well as being shorter): <a href="https:&#x2F;&#x2F;the8layers.com&#x2F;2016&#x2F;10&#x2F;30&#x2F;how-long-will-you-wait-hitchhiking-on-the-road&#x2F;" rel="nofollow">https:&#x2F;&#x2F;the8layers.com&#x2F;2016&#x2F;10&#x2F;30&#x2F;how-long-will-you-wait-hit...</a>
评论 #16469903 未加载
评论 #16470296 未加载
评论 #16473098 未加载
meuk大约 7 年前
I have been thinking about this as well, in another context. When I am at the tennis court, I always seem to be surrounded by players which are far above average.<p>This seems paradoxical, but you&#x27;re more likely to meet the players which train most often, and they are also most likely to be the best tennis players.
评论 #16471985 未加载
nosuchthing大约 7 年前
Bitcoin mining = &quot;Guess a random number between 1 and 5&quot;<p>If the network guesses too fast due to more cumulative guesses per second, the target number increases.<p>Interesting historical antidote, in early November of 2017 there was an event where it became more profitable to mine Bitcoin Cash. During that time about 60% of the miners left BTC Core in unison to focus on BTC Cash. Transactions for BTC Core started taking upwards two to three times as long as there wasn&#x27;t enough hash power to guess the magic number in time.<p>Eventually the miners returned to mine BTC core and transaction times returned to normal, other than the backlog in the memory pool that built up during that period.
评论 #16469678 未加载
评论 #16469686 未加载
评论 #16472325 未加载
CyrusL大约 7 年前
&quot;Assume a hashrate and difficulty corresponding to 1 block per 10 minutes. If I uniformly randomly pick a point in time, what is the expected time between the previous block and the next block?&quot;<p><a href="https:&#x2F;&#x2F;twitter.com&#x2F;pwuille&#x2F;status&#x2F;967878361782652928" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;pwuille&#x2F;status&#x2F;967878361782652928</a>
评论 #16469544 未加载
kristianp大约 7 年前
This is why I like block times of 2.5 minutes that Litecoin does. Rarely the block takes over 4 minutes. So even if it takes a couple of blocks, it&#x27;s still within 10 minutes. Even 5 minutes a block would be better than bitcoin&#x27;s 10. With bitcoin, if you put a reasonable fee, but your transaction doesn&#x27;t make the next block, it can take more than an hour, which makes impractical certain transaction types like online shopping.
评论 #16470535 未加载
fyfy18大约 7 年前
Say you have 10,000 miners, once you find a hash you can start all your miners mining the next block. Can you use the time between blocks to your advantage?<p>If you find the hash after say 6 minutes, you could delay broadcasting the block to the network for another minute or two, and give yourself an advantage.<p>Yes there’s a risk another miner would find the same hash, but statistically you could estimate the optimal delay for risk vs reward.
评论 #16470901 未加载
评论 #16470830 未加载
评论 #16470833 未加载
评论 #16473370 未加载
gtrubetskoy大约 7 年前
A related statistical &quot;mystery&quot; is the miner cooperation without communication property of Proof-of-Work I describe here: <a href="https:&#x2F;&#x2F;grisha.org&#x2F;blog&#x2F;2018&#x2F;01&#x2F;23&#x2F;explaining-proof-of-work&#x2F;" rel="nofollow">https:&#x2F;&#x2F;grisha.org&#x2F;blog&#x2F;2018&#x2F;01&#x2F;23&#x2F;explaining-proof-of-work&#x2F;</a> It too is rooted in that the mining problem is progress-free.<p>Contemplating adding the &quot;20 minute paradox&quot; as a section since I already explain the foundational principles in the write-up.
sebbyBinx大约 7 年前
The timing of block arrivals also greatly affects the guarantees against double spending, so this paradox may have some security implications.<p>Accepting transactions blindly after 5 confirmations&#x2F;blocks throws away the information of the amount of time it takes to generate those blocks<p><a href="https:&#x2F;&#x2F;eprint.iacr.org&#x2F;2018&#x2F;040" rel="nofollow">https:&#x2F;&#x2F;eprint.iacr.org&#x2F;2018&#x2F;040</a>
lisper大约 7 年前
The Monty Hall problem for the 21st century.<p>Note that the dependency of the expected value on sampling method also show up in other places, like Benford&#x27;s law. The expected value of the first digit of a number drawn from a uniform distribution depends on how the upper bound of that distribution is chosen.
marmaglade大约 7 年前
The hitchhiker&#x27;s paradox is correct, taking a point and looking backward or forward will correctly give an average event 10 minutes away, but combining the events to give an average of 20 minutes is false. Two events have been chosen resulting in a conditional probability.<p>Put more clearly, an event happens on average 10 minutes in the past, but using the same starting point for the event in the future links the events with a dependency. We could also arbitrarily start looking forward at the instance of the event in the past, or another random point in time.
评论 #16472070 未加载
jlhawn大约 7 年前
I wrote a quick little program to sort of prove this to myself: <a href="https:&#x2F;&#x2F;play.golang.org&#x2F;p&#x2F;fITZrZgzTT7" rel="nofollow">https:&#x2F;&#x2F;play.golang.org&#x2F;p&#x2F;fITZrZgzTT7</a><p>While the average difference in time between one record and the next is 10, the weighted average over the entire duration is 20.
评论 #16477266 未加载
memming大约 7 年前
Inspection paradox: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Renewal_theory#The_inspection_paradox" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Renewal_theory#The_inspection_...</a>
tvladeck大约 7 年前
&gt; Correct, that is exactly what I am saying. If you pick a random point in time, you expect 20 minutes between the previous block and the next block on average.<p>I thought this sounded funny, and I did a little simulation to see if it was correct. Given his assumptions (poisson with lambda 10), you do not get that answer. I got right around 10, which is what I would expect.<p><a href="https:&#x2F;&#x2F;gist.github.com&#x2F;tvladeck&#x2F;e7a164dfe70fa765b10c1af64b382b02" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;tvladeck&#x2F;e7a164dfe70fa765b10c1af64b3...</a>
评论 #16472045 未加载
评论 #16472499 未加载
ballenf大约 7 年前
Does this mean that the second block from a random point in time is, on average, 20 minutes away?<p>Anyone know what the longest wait time on a block in recent history was?<p>Final question -- do large mining operations network their miners so that they don&#x27;t overlap their hashes. I&#x27;m thinking the overhead in doing that would probably be counter-productive given the massive problem space. But, if they were networked that then the probability would eventually go down for a long enough wait between blocks (assuming there exists some massive mining operation).
评论 #16470008 未加载
评论 #16470974 未加载
评论 #16470233 未加载
评论 #16470384 未加载
评论 #16469983 未加载
评论 #16472417 未加载
评论 #16469980 未加载
评论 #16469969 未加载
tobiaswk大约 7 年前
With bitcoin (not bitcoin cash) the difficulty is adjusted every 2016 blocks. If too many blocks were mined in this period the difficulty will decrease and vice versa. This means that many blocks could be mined faster or slower in this period. Until of course the difficulty adjustment occurs again. You use what is called the nonce in the block header. Each time you do a hash of the block you increment this nonce. If your hash is under or equal to the difficulty the block is valid. The difficulty essentially means how many zeroes are in front of your hash.<p>What big mining operations do is to slice this nonce into appropriate ranges for each miner. So no miner is hashing with the same nonce. So miner 1 starts at nonce=0 and miner 2 on nonce=2000. The nonce range depends on how many hashes each miner can do in a ten minutes span. By doing this each miner is not doing hashing with the same nonce. That would be wasting hashing operations.<p>Now bitcoin cash changed the difficulty adjustment algorithm (DAA). Instead of adjusting the difficulty every 2016 blocks this is done after each block has been found. This was done to stabilize the difficulty. So miners stay mining bitcoin cash instead of switching between the most profitable chain (bitcoin or bitcoin cash). This was a problem before the new DAA was implemented for bitcoin cash.<p>There has been times in recent history were no new block was found for 20 minutes on bitcoin. For bitcoin cash around 2 hours. This was in November 2017. It has been 10 minutes stable ever since.<p>You can check this yourself on bitinfocharts.com for each blockchain under Block Time.
评论 #16472671 未加载
anon335dtzbvc大约 7 年前
Hmm if this is similar to the hitchhiker’s paradoxon, then one would expect to wait 5 min for the next block by intuition, which is wrong and we have to wait 10 minutes. But i do not get why the intuition should be wrong by a factor of 4x (20 mins) instead by a factor of 2x (10 mins).
ronyfadel大约 7 年前
This was an enjoyable read. Slightly off-topic: are there any books that approach Probability in a fun way? (i.e. that I can read on the train)
评论 #16470085 未加载
Molaxx大约 7 年前
Very nice explanation for the initiated. Thanks!
natch大约 7 年前
pdf == probability density function
rusbus大约 7 年前
TLDR: Since blocks that take a long time to mine fill up more wall-clock time, if you pick an arbitrary instant of wall clock time, you&#x27;re more likely to be in a &quot;slow&quot; block than a fast block. Specifically, you expect to wait 2x the average.
评论 #16470459 未加载
评论 #16470570 未加载
评论 #16471801 未加载
评论 #16472058 未加载
评论 #16470777 未加载
评论 #16481457 未加载
评论 #16470642 未加载
waytogo大约 7 年前
OT: From my perspective, HN is the reference regarding tech content. The upvoted stories, the comments, the discussions are of such a high quality. It&#x27;s just the best resource to stay informed and educated in tech.<p>Surprisingly this is not true with Blockchain topics. Upvoted Blockchain stories feel ok but not that relevant or often random. Comments, discussions are sometimes constuctive (like this one) but often anti-blockchain or of low quality.
评论 #16471678 未加载
评论 #16471900 未加载
评论 #16473349 未加载
评论 #16473251 未加载