Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Fix core dump on logging when no this_block set #9328

Merged
merged 1 commit into from
Jul 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion plugins/state_history_plugin/state_history_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ struct state_history_plugin_impl : std::enable_shared_from_this<state_history_pl
++current_request->start_block_num;
}
fc_ilog(_log, "pushing result {\"head\":{\"block_num\":${head}},\"last_irreversible\":{\"block_num\":${last_irr}},\"this_block\":{\"block_num\":${this_block}}} to send queue",
("head", result.head.block_num) ("last_irr", result.last_irreversible.block_num)("this_block", result.this_block->block_num));
("head", result.head.block_num)("last_irr", result.last_irreversible.block_num)
("this_block", result.this_block ? result.this_block->block_num : 0));
send(std::move(result));
--current_request->max_messages_in_flight;
need_to_send_update = current_request->start_block_num <= current &&
Expand Down