Silence SON logs when not needed
This commit is contained in:
parent
29189b3897
commit
02d898d4dc
2 changed files with 6 additions and 6 deletions
|
|
@ -660,6 +660,10 @@ void database::update_active_committee_members()
|
||||||
|
|
||||||
void database::update_active_sons()
|
void database::update_active_sons()
|
||||||
{ try {
|
{ try {
|
||||||
|
if (head_block_time() < HARDFORK_SON_TIME) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
assert( _son_count_histogram_buffer.size() > 0 );
|
assert( _son_count_histogram_buffer.size() > 0 );
|
||||||
share_type stake_target = (_total_voting_stake-_son_count_histogram_buffer[0]) / 2;
|
share_type stake_target = (_total_voting_stake-_son_count_histogram_buffer[0]) / 2;
|
||||||
|
|
||||||
|
|
@ -759,11 +763,7 @@ void database::update_active_sons()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (son_sets_equal) {
|
if (!son_sets_equal) {
|
||||||
ilog( "Active SONs set NOT CHANGED" );
|
|
||||||
} else {
|
|
||||||
ilog( "Active SONs set CHANGED" );
|
|
||||||
|
|
||||||
update_son_wallet(new_active_sons);
|
update_son_wallet(new_active_sons);
|
||||||
update_son_statuses(cur_active_sons, new_active_sons);
|
update_son_statuses(cur_active_sons, new_active_sons);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1339,7 +1339,7 @@ namespace graphene { namespace net { namespace detail {
|
||||||
// reconnect with the rest of the network, or it might just futher isolate us.
|
// reconnect with the rest of the network, or it might just futher isolate us.
|
||||||
{
|
{
|
||||||
// As usual, the first step is to walk through all our peers and figure out which
|
// As usual, the first step is to walk through all our peers and figure out which
|
||||||
// peers need action (disconnecting, sending keepalives, etc), then we walk through
|
// peers need action (disconnecting, sending keepalives, etc), then we walk through
|
||||||
// those lists yielding at our leisure later.
|
// those lists yielding at our leisure later.
|
||||||
ASSERT_TASK_NOT_PREEMPTED();
|
ASSERT_TASK_NOT_PREEMPTED();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue