From b9332130a8fe013782b9cf84cbbdfae81b8f7b9f Mon Sep 17 00:00:00 2001 From: Khaled Al-Hassanieh Date: Fri, 27 Apr 2018 14:41:14 -0400 Subject: [PATCH] Changed active_producers in controller --- libraries/chain/controller.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/chain/controller.cpp b/libraries/chain/controller.cpp index 455e9218b..48163ec69 100644 --- a/libraries/chain/controller.cpp +++ b/libraries/chain/controller.cpp @@ -1065,6 +1065,8 @@ bool controller::set_proposed_producers( vector producers ) { } const producer_schedule_type& controller::active_producers()const { + if ( !(my->pending) ) + return my->head->active_schedule; return my->pending->_pending_block_state->active_schedule; } -- GitLab