Skip to content

Commit

Permalink
Set is_producing flag when applying transactions from mempool steemit…
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandeberg committed Oct 31, 2018
1 parent c1ae22d commit 88f9b77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/chain/include/steem/chain/db_with.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ struct pending_transactions_restorer

~pending_transactions_restorer()
{
bool producing = _db.is_producing();
_db.set_producing( true );
for( const auto& tx : _db._popped_tx )
{
try {
Expand Down Expand Up @@ -93,6 +95,7 @@ struct pending_transactions_restorer
*/
}
}
_db.set_producing( producing );
}

database& _db;
Expand Down

0 comments on commit 88f9b77

Please sign in to comment.