Remove spam on reindex, only report missed blocks in real time
This commit is contained in:
parent
465280fbcb
commit
c875c8ac11
1 changed files with 2 additions and 1 deletions
|
|
@ -45,7 +45,8 @@ void database::update_global_dynamic_data( const signed_block& b )
|
|||
const auto& witness_missed = get_scheduled_witness( i+1 )(*this);
|
||||
if( witness_missed.id != b.witness ) {
|
||||
const auto& witness_account = witness_missed.witness_account(*this);
|
||||
wlog( "Witness ${name} missed block ${n} around ${t}", ("name",witness_account.name)("n",b.block_num())("t",b.timestamp) );
|
||||
if( (fc::time_point::now() - b.timestamp) < fc::seconds(30) )
|
||||
wlog( "Witness ${name} missed block ${n} around ${t}", ("name",witness_account.name)("n",b.block_num())("t",b.timestamp) );
|
||||
modify( witness_missed, [&]( witness_object& w ) {
|
||||
w.total_missed++;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue