From 80e1be9ee09417fa96bc4d1a5cf49243cb9815df Mon Sep 17 00:00:00 2001 From: SynaptiCAD User Date: Tue, 30 May 2017 14:50:49 -0400 Subject: [PATCH] [DLN] fixed missed_count for participation_rate calculateion on RNG, also hopefully fix missed block count for individual witnesses --- libraries/chain/db_update.cpp | 7 ++++--- libraries/fc | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) delete mode 160000 libraries/fc diff --git a/libraries/chain/db_update.cpp b/libraries/chain/db_update.cpp index 1d3bc23d..c45acd97 100644 --- a/libraries/chain/db_update.cpp +++ b/libraries/chain/db_update.cpp @@ -55,8 +55,9 @@ void database::update_global_dynamic_data( const signed_block& b ) #else assert( missed_blocks != 0 ); #endif - if (gpo.parameters.witness_schedule_algorithm == GRAPHENE_WITNESS_SHUFFLED_ALGORITHM) - { +// bad if-condition, this code needs to execute for both shuffled and rng algorithms +// if (gpo.parameters.witness_schedule_algorithm == GRAPHENE_WITNESS_SHUFFLED_ALGORITHM) +// { missed_blocks--; for( uint32_t i = 0; i < missed_blocks; ++i ) { const auto& witness_missed = get_scheduled_witness( i+1 )(*this); @@ -72,7 +73,7 @@ void database::update_global_dynamic_data( const signed_block& b ) }); } } - } +// } #ifdef DIRTY_TRICK } #endif diff --git a/libraries/fc b/libraries/fc deleted file mode 160000 index c1f098e1..00000000 --- a/libraries/fc +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c1f098e14a9f1d4e31b539b63265ffe575240d10