From c65fb6b3662658e21e84d1bfc74695bd452e935c Mon Sep 17 00:00:00 2001 From: theoreticalbts Date: Wed, 17 Jun 2015 23:06:32 -0400 Subject: [PATCH] Use with_skip_flags() to handle virtual ops in clear_expired_orders --- libraries/chain/db_update.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/chain/db_update.cpp b/libraries/chain/db_update.cpp index 35b265db..9ba15e22 100644 --- a/libraries/chain/db_update.cpp +++ b/libraries/chain/db_update.cpp @@ -118,7 +118,10 @@ void database::clear_expired_proposals() void database::clear_expired_orders() { - transaction_evaluation_state cancel_context(this, true); + with_skip_flags( + get_node_properties().skip_flags | skip_authority_check, [&]() + { + transaction_evaluation_state cancel_context(this); //Cancel expired limit orders auto& limit_index = get_index_type().indices().get(); @@ -141,6 +144,7 @@ void database::clear_expired_orders() canceler.order = order.id; apply_operation(cancel_context, canceler); } + } ); //Process expired force settlement orders auto& settlement_index = get_index_type().indices().get();