From 8be0e60f8075457ce63febeaed9cc7f8a4b601cd Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Tue, 21 Jul 2020 08:50:47 -0500 Subject: [PATCH] this_block optional is not always set at time of logging --- plugins/state_history_plugin/state_history_plugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/state_history_plugin/state_history_plugin.cpp b/plugins/state_history_plugin/state_history_plugin.cpp index f3bc50e9d69..a6561985dc5 100644 --- a/plugins/state_history_plugin/state_history_plugin.cpp +++ b/plugins/state_history_plugin/state_history_plugin.cpp @@ -224,7 +224,8 @@ struct state_history_plugin_impl : std::enable_shared_from_thisstart_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 &&