Fix debug build

This commit is contained in:
serkixenos 2022-09-05 00:59:36 +02:00
parent 21c9a84971
commit c967504235

View file

@ -323,6 +323,9 @@ void database::update_witness_schedule(const signed_block& next_block)
void database::update_son_schedule(const signed_block& next_block) void database::update_son_schedule(const signed_block& next_block)
{ {
auto start = fc::time_point::now(); auto start = fc::time_point::now();
#ifndef NDEBUG
const son_schedule_object& sso = get(son_schedule_id_type());
#endif
const global_property_object& gpo = get_global_properties(); const global_property_object& gpo = get_global_properties();
const flat_map<sidechain_type, uint32_t> schedule_needs_filled = [&gpo]() const flat_map<sidechain_type, uint32_t> schedule_needs_filled = [&gpo]()
{ {