Fix startup sequence
This commit is contained in:
parent
c967504235
commit
23a7a8e80a
4 changed files with 5 additions and 7 deletions
|
|
@ -1115,7 +1115,6 @@ void database::init_genesis(const genesis_state_type& genesis_state)
|
|||
|
||||
_sso.scheduler = son_scheduler();
|
||||
_sso.scheduler._min_token_count = std::max(int(init_bitcoin_sons.size()) / 2, 1);
|
||||
//_sso.scheduler.update(init_bitcoin_sons);
|
||||
|
||||
_sso.last_scheduling_block = 0;
|
||||
|
||||
|
|
@ -1137,7 +1136,6 @@ void database::init_genesis(const genesis_state_type& genesis_state)
|
|||
|
||||
_sso.scheduler = son_scheduler();
|
||||
_sso.scheduler._min_token_count = std::max(int(init_ethereum_sons.size()) / 2, 1);
|
||||
//_sso.scheduler.update(init_ethereum_sons);
|
||||
|
||||
_sso.last_scheduling_block = 0;
|
||||
|
||||
|
|
@ -1159,7 +1157,6 @@ void database::init_genesis(const genesis_state_type& genesis_state)
|
|||
|
||||
_sso.scheduler = son_scheduler();
|
||||
_sso.scheduler._min_token_count = std::max(int(init_hive_sons.size()) / 2, 1);
|
||||
//_sso.scheduler.update(init_hive_sons);
|
||||
|
||||
_sso.last_scheduling_block = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -721,7 +721,9 @@ void database::update_active_sons()
|
|||
|
||||
assert( _son_count_histogram_buffer.size() > 0 );
|
||||
for( const auto& son_count_histogram_buffer : _son_count_histogram_buffer ){
|
||||
#ifndef NDEBUG
|
||||
assert( son_count_histogram_buffer.second.size() > 0 );
|
||||
#endif
|
||||
}
|
||||
|
||||
const flat_map<sidechain_type, share_type> stake_target = [this]{
|
||||
|
|
|
|||
|
|
@ -77,9 +77,9 @@ witness_id_type database::get_scheduled_witness( uint32_t slot_num )const
|
|||
unsigned_int database::get_son_schedule_id( sidechain_type type )const
|
||||
{
|
||||
static const map<sidechain_type, unsigned_int> schedule_map = {
|
||||
{ sidechain_type::hive, 0 },
|
||||
{ sidechain_type::bitcoin, 1 },
|
||||
{ sidechain_type::ethereum, 2 }
|
||||
{ sidechain_type::bitcoin, 0 },
|
||||
{ sidechain_type::ethereum, 1 },
|
||||
{ sidechain_type::hive, 2 }
|
||||
};
|
||||
|
||||
return schedule_map.at(type);
|
||||
|
|
|
|||
|
|
@ -450,7 +450,6 @@ void sidechain_net_handler_ethereum::process_primary_wallet() {
|
|||
}
|
||||
|
||||
void sidechain_net_handler_ethereum::process_sidechain_addresses() {
|
||||
int temp = 0;
|
||||
}
|
||||
|
||||
bool sidechain_net_handler_ethereum::process_deposit(const son_wallet_deposit_object &swdo) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue