了解 Hyperledger Fabric 背书策略逻辑和节点类型
Understand Hyperledger Fabric endorsement policy logic and peers types
抱歉这个问题很长,但是 Hyperledger 是一个相当复杂的系统。
Reading the Blockchain network In the section Generating and accepting transactions
In contrast to peer nodes, which always host a copy of the ledger, we
see that there are two different kinds of peer nodes; those which host
smart contracts and those which do not. In our network, every peer
hosts a copy of the smart contract, but in larger networks, there will
be many more peer nodes that do not host a copy of the smart contract
如何设计区块链网络,决定有多少节点应该有智能合约,有多少节点不应该?有什么设计规则或模式吗?
当我们有多个组织时,每个组织都应该有一个背书节点,还是他们在一个组织内只能有一个节点,所有其他节点都可以调用它?
How to design the blockchain network and to decide how many peers
should have smart contracts and how many should not?, Is there any
design rules or patterns ?
我的经验法则是 - 首先考虑背书策略,然后在属于背书策略中的组织的对等节点上安装链代码。
然后,您还可以选择在组织的对等体上安装仅查询交易(不进入区块链)的链代码,无论他们是否参与背书政策,因为这是有道理的客户会想查询自己的组织(因为它最信任它)。
唯一的极端情况是,有时链代码的代码是未知的,并且背书策略的组织不想共享它。
When we have multiple organizations, should every organization have an
endorsing peer, or they all can have only one within one organization
and all other can call it ?
这取决于用例。有些组织只有客户,有些组织只有同行,或者只有排序者。
一个组织是否是链代码的背书者,通常取决于背书策略。
抱歉这个问题很长,但是 Hyperledger 是一个相当复杂的系统。
Reading the Blockchain network In the section Generating and accepting transactions
In contrast to peer nodes, which always host a copy of the ledger, we see that there are two different kinds of peer nodes; those which host smart contracts and those which do not. In our network, every peer hosts a copy of the smart contract, but in larger networks, there will be many more peer nodes that do not host a copy of the smart contract
如何设计区块链网络,决定有多少节点应该有智能合约,有多少节点不应该?有什么设计规则或模式吗?
当我们有多个组织时,每个组织都应该有一个背书节点,还是他们在一个组织内只能有一个节点,所有其他节点都可以调用它?
How to design the blockchain network and to decide how many peers should have smart contracts and how many should not?, Is there any design rules or patterns ?
我的经验法则是 - 首先考虑背书策略,然后在属于背书策略中的组织的对等节点上安装链代码。
然后,您还可以选择在组织的对等体上安装仅查询交易(不进入区块链)的链代码,无论他们是否参与背书政策,因为这是有道理的客户会想查询自己的组织(因为它最信任它)。
唯一的极端情况是,有时链代码的代码是未知的,并且背书策略的组织不想共享它。
When we have multiple organizations, should every organization have an endorsing peer, or they all can have only one within one organization and all other can call it ?
这取决于用例。有些组织只有客户,有些组织只有同行,或者只有排序者。
一个组织是否是链代码的背书者,通常取决于背书策略。