|
@@ -415,22 +415,23 @@ This will:
|
|
|
elif callback_data.startswith("copy_start_confirm_"):
|
|
|
target_address = callback_data.replace("copy_start_confirm_", "")
|
|
|
|
|
|
- await query.edit_message_text("🚀 Starting copy trading...")
|
|
|
+ await query.edit_message_text("🚀 Copy trading configuration updated...")
|
|
|
|
|
|
if copy_monitor:
|
|
|
- # Enable copy trading
|
|
|
+ # Enable copy trading config but DON'T start monitoring yet (Step 3 debugging)
|
|
|
copy_monitor.enabled = True
|
|
|
copy_monitor.target_address = target_address
|
|
|
|
|
|
- # Start monitoring in background
|
|
|
- import asyncio
|
|
|
- asyncio.create_task(copy_monitor.start_monitoring())
|
|
|
+ # TEMPORARILY DISABLED: Start monitoring in background (causes blocking)
|
|
|
+ # import asyncio
|
|
|
+ # asyncio.create_task(copy_monitor.start_monitoring())
|
|
|
|
|
|
await query.edit_message_text(
|
|
|
- f"✅ Copy trading started!\n\n"
|
|
|
+ f"✅ Copy trading configured but not started!\n\n"
|
|
|
f"🎯 Target: {target_address[:10]}...\n"
|
|
|
- f"📊 Monitoring active positions and new trades\n\n"
|
|
|
- f"Use /copy status to check progress.",
|
|
|
+ f"⚠️ Monitoring temporarily disabled for debugging\n\n"
|
|
|
+ f"The start_monitoring() method is causing blocking issues.\n"
|
|
|
+ f"We need to debug this specific method.",
|
|
|
parse_mode='HTML'
|
|
|
)
|
|
|
else:
|