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

Commit

Permalink
Merge pull request #9333 from EOSIO/state-history-log-mod
Browse files Browse the repository at this point in the history
Use fc::variant() instead of 0 to be clearer that value is not available
  • Loading branch information
heifner authored Jul 22, 2020
2 parents c08da05 + c14e6f7 commit 0b59a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/state_history_plugin/state_history_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ struct state_history_plugin_impl : std::enable_shared_from_this<state_history_pl
}
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 ? result.this_block->block_num : 0));
("this_block", result.this_block ? result.this_block->block_num : fc::variant()));
send(std::move(result));
--current_request->max_messages_in_flight;
need_to_send_update = current_request->start_block_num <= current &&
Expand Down

0 comments on commit 0b59a7e

Please sign in to comment.