Hyperledger Sawtooth Validator 节点如何在 Sawtooth 网络中拥有“大于最大连接的对等点数"? [英] How is it possible for a Hyperledger Sawtooth Validator node to have 'number of peers greater than the maximum connectivity' in the Sawtooth Network?

查看:24
本文介绍了Hyperledger Sawtooth Validator 节点如何在 Sawtooth 网络中拥有“大于最大连接的对等点数"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下声明来自此文档.

网络组件继续执行对等搜索,如果其编号对等点数小于最小连接.网络组件如果对等体的数量等于或大于,则拒绝对等互连尝试超过最大连接.

The network component continues to perform a peer search if its number of peers is less than the minimum connectivity. The network component rejects peering attempts if its number of peers is equal to or greater than the maximum connectivity.

问题:

正如文档所说,

节点数等于或大于最大连接数

number of peers is equal to or greater than the maximum connectivity,

如果允许一个节点有一个最大对等点数",比如 N,那么对等点数"怎么可能大于 N?

If a node is allowed to have a 'maximum number of peers', say N, how can the 'number of peers' be GREATER than N ?

注意:

您可能想参考另一个问题 来自我,这与在尝试 peering"之前发生的节点之间的最大connection"有关.这两个问题之间的主要区别是关于最大连接数"和最大(双向)对等点数".

You may want to refer to another question from me, which was related to 'maximum connection between nodes' which happens before 'attempting peering'. The main difference between these 2 questions is about 'maximum connections' and 'maximum (bi-directional) peers'.

推荐答案

不,它不能大于 N(理想情况下).查看 ,如果当前的对等点数小于允许的最大对等点数,则连接被注册为对等点.文档是根据拒绝条件来说明的.即(小于"与大于或等于")

No, it cannot be greater than N (ideally). Looking at this code, a connection is registered as peer, if current peers is less than the maximum peers allowed. The documentation is saying it in terms of condition for rejection. ie ("less than" vs "greater than or equal to")

文档是正确的

这篇关于Hyperledger Sawtooth Validator 节点如何在 Sawtooth 网络中拥有“大于最大连接的对等点数"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆