Fix latency check error
This commit is contained in:
parent
1ce4d36532
commit
df787c9062
1 changed files with 1 additions and 1 deletions
|
|
@ -524,6 +524,7 @@ namespace detail {
|
|||
std::vector<fc::uint160_t>& contained_transaction_message_ids) override
|
||||
{ try {
|
||||
|
||||
auto latency = fc::time_point::now() - blk_msg.block.timestamp;
|
||||
if (!sync_mode || blk_msg.block.block_num() % 10000 == 0)
|
||||
{
|
||||
const auto& witness = blk_msg.block.witness(*_chain_db);
|
||||
|
|
@ -536,7 +537,6 @@ namespace detail {
|
|||
("w",witness_account.name)
|
||||
("i",last_irr)("d",blk_msg.block.block_num()-last_irr) );
|
||||
}
|
||||
auto latency = fc::time_point::now() - blk_msg.block.timestamp;
|
||||
FC_ASSERT( (latency.count()/1000) > -5000, "Rejecting block with timestamp in the future" );
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue