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

子链块权重计算优化 #605

Open
cchanm opened this issue Aug 12, 2020 · 0 comments
Open

子链块权重计算优化 #605

cchanm opened this issue Aug 12, 2020 · 0 comments

Comments

@cchanm
Copy link
Contributor

cchanm commented Aug 12, 2020

当前子链块权重计算是根据主链块之间的权重差而得,主链块权重根据难度系数计算而得,所以子链块权重也会因难度系数变化而变化,并成倍数变化,可能导致子链上难度系数低的多个块的权重,比难度系数高的一个块权重低。
表现的问题:由于难度系数降低,后面出的子链块可能被前面高度的子链块回滚。
可以考虑将DPOS块的权重计算改为固定难度系数,如:固定200或50,或者一段时间的最高难度值。

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