From 00497a655a191819dfeb51f6a815d8c605d7b6ee Mon Sep 17 00:00:00 2001 From: aitbc Date: Tue, 26 May 2026 20:04:04 +0200 Subject: [PATCH] Remove force-enable block production from wrapper script - Removes AITBC_FORCE_ENABLE_BLOCK_PRODUCTION, ENABLE_BLOCK_PRODUCTION, and enable_block_production environment variable overrides - Block production is now controlled by env file settings (enable_block_production) - Allows follower nodes to properly disable block production via configuration --- scripts/wrappers/aitbc-blockchain-node-wrapper.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/wrappers/aitbc-blockchain-node-wrapper.py b/scripts/wrappers/aitbc-blockchain-node-wrapper.py index 93c35a23..5c112f52 100755 --- a/scripts/wrappers/aitbc-blockchain-node-wrapper.py +++ b/scripts/wrappers/aitbc-blockchain-node-wrapper.py @@ -21,12 +21,8 @@ os.environ["PYTHONPATH"] = f"{REPO_DIR}/apps/blockchain-node/src" os.environ["DATA_DIR"] = str(DATA_DIR) os.environ["LOG_DIR"] = str(LOG_DIR) -# Force disable block production in combined_main to prevent event loop blocking -# The combined_main runs both node logic and HTTP RPC server in the same process -# Block production in the RPC process can cause timeouts during transaction submission -os.environ["AITBC_FORCE_ENABLE_BLOCK_PRODUCTION"] = "true" -os.environ["ENABLE_BLOCK_PRODUCTION"] = "true" -os.environ["enable_block_production"] = "true" +# Block production is controlled by env file settings (enable_block_production) +# The proposer runs in the event loop without blocking - no force-enable needed # Execute the actual service # Use combined_main to run both blockchain node and HTTP RPC server