-
Notifications
You must be signed in to change notification settings - Fork 648
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
Check Steem issue 2658: Not producing block because node didn't wake up within 500ms of the slot time #1157
Comments
We should define desirable behaviour before implementing fixes. IMO, if a node hasn't received a block from its predecessor when its time slot has come, it should simply produce its own block in time.
There is one special case though: if the previous block has been received in time but takes a long time to apply (as is often the case in a maintenance block), then it makes sense to produce one even if our slot is nearing its end. I would extend the deadline in that special case only. |
@pmconrad I think your comment is not about the issue in OP, but more related to #504. In this issue, the node was not waiting doing nothing until it's slot is nearly over, but on the contrary, it tried to produce a block on the 2nd second and the 3rd second but failed due to the timeout check. The reason why it didn't try to produce on the 1st second, is it was not its time slot to produce before received the high-latency block, that said, the high-latency block caused a schedule change. |
Yes, I thought of a different scenario. Makes sense for a schedule change as well. |
Changed block producing timeout to 2500 ms (#1157)
Fixed by #1266. |
steemit/steem#2658
Brief:
bitshares-core/libraries/plugins/witness/witness.cpp
Lines 269 to 273 in af118f6
Generally, if latency of previous block is too high, the node will try to produce another block on the first second of its time slot. But in the scenario when witness list got shuffled after the previous block, the node may "suddenly" find it's its turn to produce next block, but will fail as described above.
Note: this is a minor issue, IMHO low priority.
Possible solution:
Please discuss.
The text was updated successfully, but these errors were encountered: