Revert "adding fix for edge case"

This reverts commit 3f1b9bbb27.
This commit is contained in:
theoreticalbts 2015-08-31 12:50:45 -04:00
parent 42fb233fbb
commit 2a891ac89b

View file

@ -72,17 +72,6 @@ witness_id_type database::get_scheduled_witness( uint32_t slot_num )const
uint64_t current_aslot = get_dynamic_global_properties().current_aslot + slot_num;
if( slot_num == 0 ) // then return the witness that produced the last block
{
for( const witness_id_type& wit_id : active_witnesses )
{
const witness_object& wit = wit_id(*this);
if( wit.last_aslot >= current_aslot )
return wit_id;
}
}
uint64_t start_of_current_round_aslot = current_aslot - (current_aslot % n);
uint64_t first_ineligible_aslot = std::min( start_of_current_round_aslot, current_aslot - min_witness_separation );
//