Skip to content

Commit

Permalink
GH-2006 Dangling reference
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Dec 21, 2023
1 parent eddea59 commit c0804e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/producer_plugin/producer_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1788,7 +1788,7 @@ producer_plugin_impl::start_block_result producer_plugin_impl::start_block() {
_pending_block_mode = pending_block_mode::producing;

// Not our turn
const auto& scheduled_producer = chain.active_producers().get_scheduled_producer(block_time);
const auto scheduled_producer = chain.active_producers().get_scheduled_producer(block_time);

const auto current_watermark = _producer_watermarks.get_watermark(scheduled_producer.producer_name);

Expand Down

0 comments on commit c0804e8

Please sign in to comment.