我试图了解节点是如何在Ethereum中传播新的有效块的。
下面是我一步一步地描述这个过程的尝试:
1. Miner constructs a new block and starts iterating the nonce to try to match the difficulty target
2. Miner finds a nonce that meets the difficulty target
3. Miner sends the new winning block to (say) 6 peers
4. These peers validate the block
5. If
我们有一个超级账本设置(假设是N1),有两个org1(org1和community-koinearth)。每个组织有2个同级(peer1作为锚点对等点& peer2。作为工作者同级)。在这个设置中,我们也有排序服务与3排序与kafka。所有锚点对等体和定序器都连接到它们各自的NLB。这个设置工作得很好。
现在我们已经设置了另一个hyperledger基础设施(假设是N2),具有1个org和1个peer,基本上是试图加入早期的网络。最初,加入同级成功地加入了N1。所有数据块都已同步,没有任何问题。过了一段时间,当我们开始安装链码时,我们突然开始在joiner peer上看到peer on
我做了以下教程(),让fabric在kube上运行,并试图查询我的区块链。
我尝试这样设置我的用户:
function getAdmin(client, options) {
return Promise.resolve(client.createUser({
username: 'admin',
mspid: 'Org1MSP',
cryptoContent: {
privateKeyPEM: // am not sure what goes here but I put the