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

交易在dht网络广播中存在丢失情况 #1164

Open
bysomeone opened this issue Nov 5, 2021 · 1 comment
Open

交易在dht网络广播中存在丢失情况 #1164

bysomeone opened this issue Nov 5, 2021 · 1 comment
Assignees

Comments

@bysomeone
Copy link
Collaborator

bysomeone commented Nov 5, 2021

测试方法

  1. 测试线上主链的区块广播,统计区块内交易是否都在mempool中存在,跑了2w个区块,5%的区块无法在mempool中找到完整的交易列表, 即交易在网络广播中存在丢失情况

  2. 本机搭建4节点情况暂未发现丢失情况

相关模块

dht pubsub广播

@bysomeone
Copy link
Collaborator Author

  1. 本地双节点环境在高并发压测下也存在丢失, 主要是libp2p pubsub底层非阻塞实现, 在发送和接收端没有及时处理消息会将消息直接丢弃, 通过调整队列大小参数可以缓解

  2. 主链环境网络拓扑更复杂, 但并发数较低, 后续调整队列大小,升级版本后, 进一步测试

@bysomeone bysomeone self-assigned this Dec 3, 2021
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

1 participant