Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IRITA准入相关的代码在哪一部分 #191

Open
Howard-Hu opened this issue Mar 28, 2022 · 4 comments
Open

IRITA准入相关的代码在哪一部分 #191

Howard-Hu opened this issue Mar 28, 2022 · 4 comments

Comments

@Howard-Hu
Copy link

请问节点和节点之间连接准入的代码在那一部分?

@shenyue001
Copy link

你好,节点和节点之间连接准入 具体是指权限相关的代码吗?

@Howard-Hu
Copy link
Author

Howard-Hu commented Mar 28, 2022

你好,节点和节点之间连接准入 具体是指权限相关的代码吗?

因为是联盟链网络,所以节点之间的连接需要一个准入机制而不是任意谁都能连接。
我指的是节点和节点之间连接的时候,是怎么识别和自己连接节点是不是能连接的节点,我需要的是学习这一块的代码,目前没有找到。
这里不是指账户级别的权限,可以说是节点进入网络的权限控制。
谢谢啦

@shenyue001
Copy link

这块代码的话可以看一下 Tendermint

@chengwenxi
Copy link
Contributor

@Chris-Howard Tendermint supports setting peer filter and IRITA sets it at https://github.com/bianjieai/irita/blob/master/app/app.go#L646.

Node manager refer https://github.com/bianjieai/iritamod/blob/master/modules/node/keeper/node.go and https://github.com/bianjieai/iritamod/blob/master/modules/node/keeper/peer_filter.go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants