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

平行链切换主节点 #132

Closed
vipwzw opened this issue Nov 28, 2018 · 0 comments · Fixed by #185
Closed

平行链切换主节点 #132

vipwzw opened this issue Nov 28, 2018 · 0 comments · Fixed by #185
Assignees
Milestone

Comments

@vipwzw
Copy link
Collaborator

vipwzw commented Nov 28, 2018

平行链安全的切换主节点:
不同的主节点,有不同的seq id。分成两种情况讨论:

  1. 平行链最后seq对应的hash id 可以在 另一个主链上取到,然后更新新的seq id 并继续同步。
  2. 如果最后的seq 对应的hash id 取不到,还需要一个个回滚,然后处理。
  3. 对平行链节点同步到的数据做一个安全校验,检查 prevHash 是否能够连续匹配,如果不匹配,要考虑切换节点的可能性(对负载均衡节点的情况下)
@vipwzw vipwzw added this to the 6.1 milestone Nov 30, 2018
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

Successfully merging a pull request may close this issue.

2 participants