Skip to Content
精通区块链
book

精通区块链

by Lorne Lantz, Daniel Cawrey
March 2022
Intermediate to advanced
293 pages
5h 31m
Chinese
China Electric Power Press Ltd.
Content preview from 精通区块链
加密货币的基础知识 59
区块
区块
区块
区块 区块
被矿工A发现
被矿工B发现
同一时间被发现
2
-
19
:两个矿工同时发现新区块的事件
在矿工向区块链中添加新区块之前,矿工会验证以下内容是否为真:
1.
该区块是有效的。
2.
该区块中的所有交易都是有效的。包括验证用于解锁交易输出的数据签名。
当网络中
50%
以上的矿工将同一新区块纳入其区块链副本时,即达成共识。
矿工们集体“投票”他们认可的区块在那时被添加到区块链中,同时会验证
所有交易是否有效。
矿工遵从长链规则选择工作最多的链,也就是最长的链。如果两个版本的链
都是相同长度的,就像两个不同的矿工同时找到相同答案一样,那么矿工就
会停留在他们看到的第一条链上,然后在他们看到一条更长的链时就会切换。
长链规则对大多数形式的共识至关重要,特别是工作量证明。
2.8.1.3
交易的生命周期
PayPal
这样的中心化支付系统中,交易的生命周期是非常直接的。登录到
PayPal
的网站或应用,输入的你的交易信息,然后按下确认。如果
PayPal
应“已完成”的通知,那么你的交易就已经被处理了。
60 2
比特币的交易的生命周期和中心化支付系统有很大的差异,其中包含许多不
一样的步骤。以下是交易过程中的四个主要阶段:
1.
广播
。首先生成有效的比特币交易,并将该交易广播到比特币网络。大多 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

人工智能技术与大数据

人工智能技术与大数据

Posts & Telecom Press, Anand Deshpande, Manish Kumar
Python和NLTK实现自然语言处理

Python和NLTK实现自然语言处理

Posts & Telecom Press, Nitin Hardeniya
Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu
编写整洁的Python代码(第2版)

编写整洁的Python代码(第2版)

Posts & Telecom Press, Mariano Anaya

Publisher Resources

ISBN: 9787519863166