The Chinese (Simplified) wiki is no longer maintained and is in read-only mode. Information contained within may be inaccurate or outdated. Please go to the English wiki for more up to date information.

从英文自动翻译:中文(简体)维基不再维护,处于只读模式。其中包含的信息可能不准确或过时。请前往英文维基获取更多最新信息。

Block

来自Bitcoin Wiki
Simapple留言 | 贡献2011年5月30日 (一) 07:46的版本
跳转到导航 跳转到搜索

Bitcoin网络中的数据永久记录在'block中。每个block都记录了最近的交易,一个nonce随机数,和它之前的block的散列值。当block的SHA-256散列值低于当前target时,它就“完成”了。一次散列计算就完成block的可能性很低,因此需要对nonce增量重新计算block散列直至完成。

Bitcoin交易发生时,交易发起者会将这个交易广播到整个网络,所有铸币端都收集这一信息并将其加入正在生成的block中。如果交易量相比平均交易量大很多,则这笔交易可能被收取一定费用。

block中的第一笔交易是特殊的:它为生成这个block的人创造新的比特币。仅当这笔交易的数量正确的时候,其他的端才会接受这个block。每个block生成的比特币数量是50,每生成210000个block(大约需要4年),这个数字减半。

网络预期每小时生成6个block。每生成2016个block(约花费2星期),所有Bitcoin客户端将目标与实际生成数量做比较,并改变target。这将增加或降低生成block的难度


Common Questions about Blocks

How many blocks are there?

Current block count

What is the maximum number of blocks?

There is no maximum number, blocks just keep getting added to the end of the chain at an average rate of one every 10 minutes.

Even when all 21 million coins have been generated?

Yes. The blocks are for proving that transactions existed at a particular time. Transactions will still occur once all the coins have been generated, so blocks will still be created as long as people are trading Bitcoins.

How long will it take me to generate a block?

No-one can say exactly. There is a generation calculator that will tell you how long it might take.

What if I'm 1% towards calculating a block and...?

There's no such thing as being 1% towards solving a block. You don't make progress towards solving it. After working on it for 24 hours, your chances of solving it are equal to what your chances were at the start or at any moment.

It's like trying to flip 37 coins at once and have them all come up heads. Each time you try, your chances of success are the same.

Where can I find more technical detail?

There is more technical detail on the block hashing algorithm page.

See Also

模板:Fromold