#463 Fix unused variable son_count_histogram_buffer in Release mode

This commit is contained in:
Milos Milosevic 2022-10-19 17:37:23 +00:00 committed by serkixenos
parent 71c113c190
commit 194fa6abfa

View file

@ -720,11 +720,11 @@ 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
for( const auto& son_count_histogram_buffer : _son_count_histogram_buffer ){
assert( son_count_histogram_buffer.second.size() > 0 );
#endif
}
#endif
const flat_map<sidechain_type, share_type> stake_target = [this]{
flat_map<sidechain_type, share_type> stake_target;