application.cpp: Validate block timestamps #645
This commit is contained in:
parent
9e10edfdb2
commit
ead2db3272
1 changed files with 1 additions and 0 deletions
|
|
@ -463,6 +463,7 @@ namespace detail {
|
|||
{ try {
|
||||
|
||||
auto latency = graphene::time::now() - blk_msg.block.timestamp;
|
||||
FC_ASSERT( (latency.count()/1000) > -5000, "Rejecting block with timestamp in the future" );
|
||||
if (!sync_mode || blk_msg.block.block_num() % 10000 == 0)
|
||||
{
|
||||
const auto& witness = blk_msg.block.witness(*_chain_db);
|
||||
|
|
|
|||
Loading…
Reference in a new issue