mirror of
https://github.com/curly60e/pyblock.git
synced 2026-08-18 13:08:54 +02:00
Use lazy import for MainMenuCROPPED to avoid circular import
Move SPV.spvblock import inside the functions that call MainMenuCROPPED() instead of top-level, preventing circular dependency issues when SPV modules load before PyBlock globals. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
e1923ffcff
commit
296b59e786
1 changed files with 4 additions and 3 deletions
|
|
@ -26,7 +26,6 @@ from imgterminal import createimagebitaxe, set_terminal_background
|
|||
from datetime import datetime, timedelta
|
||||
from sha256 import ex
|
||||
from cfonts import render, say
|
||||
from SPV.spvblock import MainMenuCROPPED
|
||||
from clone import gitclone, satnode
|
||||
from donation import donationAddr, donationPayNym, donationLN, donationAddrTst, donationLNTst, decodeQR
|
||||
from feed import readFile
|
||||
|
|
@ -1833,7 +1832,8 @@ def MainMenu(mode): #Unified Main Menu - mode: "local", "onchain_only", or "remo
|
|||
show_error("Bitcoin CLI path not configured. Redirecting to Lite Mode.")
|
||||
import time as _t
|
||||
_t.sleep(2)
|
||||
MainMenuCROPPED()
|
||||
from SPV.spvblock import MainMenuCROPPED as _lite_menu
|
||||
_lite_menu()
|
||||
return
|
||||
|
||||
# Fetch BTC price for status bar
|
||||
|
|
@ -5149,7 +5149,8 @@ def menuSelection():
|
|||
path = pathv # Copy the variable pathv to 'path'
|
||||
MainMenuLOCAL()
|
||||
elif chln == "C":
|
||||
MainMenuCROPPED()
|
||||
from SPV.spvblock import MainMenuCROPPED as _lite_menu
|
||||
_lite_menu()
|
||||
else:
|
||||
if os.path.isfile('config/blndconnect.conf'):
|
||||
chln['offchain'] = "offchain"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue