Closed abitmore closed 8 years ago
duplicate of #595
If a witness produced a block with a timestamp 100 years in the future, will the network die?
This issue happened on BitShares network a few hours ago. It happened on MUSE network a few days ago.
When the system clock of one active witness is off (at several minutes in the future), only that witness was producing one block in every round, network participation rate became very low. Once size of undo_db reached the limit, the network will freeze.
I pushed a quick and dirty patch.
According to the log, the system clock of one of active witnesses is 7 seconds ahead of correct time, when a block is produced by it, the timestamp is set to 9 seconds in the future. IMO this kind of blocks should be rejected by other witnesses. But now they got accepted, in addition next block is produced after 10 seconds. Other witnesses are missing blocks due to this. What if one witness set the clock to 1 minute or 2 minutes ahead?