From 4d909e5f22e0199534b6c512455988e89713e69c Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Fri, 6 Dec 2024 10:24:10 -0600 Subject: [PATCH] GH-570 Update comment and return incomplete for terminate-at-block --- libraries/chain/controller.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/chain/controller.cpp b/libraries/chain/controller.cpp index 4b6e978221..f94e2427f5 100644 --- a/libraries/chain/controller.cpp +++ b/libraries/chain/controller.cpp @@ -4413,7 +4413,8 @@ struct controller_impl { if (!switch_fork) { if (check_shutdown()) { shutdown(); - break; // result should be complete since we are shutting down + result = controller::apply_blocks_result::incomplete; // doesn't really matter since we are shutting down + break; } if (result == controller::apply_blocks_result::complete) { // Break every ~500ms to allow other tasks (e.g. get_info, SHiP) opportunity to run. User expected