在提交块之前,Orderer验证和对等验证之间有什么区别

问题描述 投票:1回答:1

我有疑问,我正在阅读Hyperledger Fabric文章,在其文章中提到,用户User1向对等端P1发送事务Tx1,对等端P1发送< [E1,交易Tx1,交易收到回给[[user1,然后将其传递给订单or1,订单将验证Tx1并创建区块和它会提交。

我的问题是: 1. when order is committing the block, why it will send to peer P1 back. 2. In article they mention Peer P1 is also validate Tx1, How Peer will verify the Tx1. 3. If Peer P1 verify the Tx1, does Peer P1 also keep the record of all the Peers and Orderer details. 4. If Peer also can Validate the Tx1, best thing is to apply the block/Batch creation mechanism to Peer directly, so no need of orderer. i have doubt please suggest me.
hyperledger-fabric
1个回答
0
投票
阅读此文档:https://hyperledger-fabric.readthedocs.io/en/release-1.4/txflow.html
但是,我会回答你的问题:

[提交订单时,为什么它将发送回对等P1。

    A)定购者将只接收交易池和表格块并运送到提交的同级,它将不进行任何验证,而是创建块,因此定购者还将拥有分类帐的副本
  1. [他们在文章中提到Peer P1也是验证Tx1,Peer将如何验证Tx1。

    A)如果Peer1是认可对等方,则它将通过提交事务来

  2. 模拟分类帐,并将记录将发送回用户的行为。
  3. 如果对等方P1验证了Tx1,对等方P1也会保留所有对等方和订购者详细信息的记录。

    A)默认情况下,所有背书对等体都是提交对等体,因此,它将保留
  4. 如果Peer也可以验证Tx1,最好的方法是应用块/批次创建机制直接与Peer关联,因此无需订购者。我有疑问请建议我。

    A)在这里,如果您是以太坊后台订购者,就像矿工一样,在这里他将不做任何简单的计算,而只是像批邮递员一样,成批地运送到同行。

© www.soinside.com 2019 - 2024. All rights reserved.