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

Genesis file sets timestamp to the future time. Before the block is generated, an error occurs when restarting the node #1808

Closed
pengzhepz opened this issue Jul 9, 2021 · 3 comments
Assignees
Labels
bug 🐛 Something isn't working

Comments

@pengzhepz
Copy link

Hi there,

please note that this is an issue tracker reserved for bug reports and feature requests.

System information

PlatON version: 0.16.0
OS & Version: Windows/Linux/OSX
Commit hash : (if develop)

Expected behaviour

Successful restart

Actual behaviour

Node failed to start

Steps to reproduce the behaviour

platon (3).log

Backtrace

[backtrace]
@benbaley benbaley added the bug 🐛 Something isn't working label Jul 9, 2021
@niuxiaojie81
Copy link
Contributor

修改创世区块时间戳为未来时间,节点启动后无法出块(出块的时间必须大于创世区块),但可以切换view,节点成功切换view时会把切换信息ConfirmedViewChange记录到wal日志中。
ConfirmedViewChange消息包含切换view时的blockQC,但该字段不允许为nil,所以导致rlp编解码异常

@niuxiaojie81
Copy link
Contributor

针对这种不出块又重启的情况,将ConfirmedViewChange消息中的blockQC字段设置为允许为空

@pengzhepz
Copy link
Author

bug fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants