提交 ad634a88 编写于 作者: D Daniel Larimer

Fix block timestamp tolerance from 0 to 1 second, Fix #3041

上级 854f8d80
......@@ -182,9 +182,7 @@ class producer_plugin_impl {
void on_incoming_block(const signed_block_ptr& block) {
if( block->timestamp > fc::time_point::now() ) {
FC_ASSERT( block->timestamp < fc::time_point::now(), "received a block from the future, ignoring it" );
}
FC_ASSERT( block->timestamp < (fc::time_point::now() + fc::seconds(1)), "received a block from the future, ignoring it" );
chain::controller& chain = app().get_plugin<chain_plugin>().chain();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册