Fix crypto sync status detection with proper imports

The sync status request methods were failing due to relative import errors
when trying to import crypto clients. Changed to absolute imports to resolve:
- "attempted relative import beyond top-level package" errors
- Monero and Dogecoin sync status now properly detected
- Payment method availability correctly reflects wallet/node sync status

This restores the intended functionality where crypto payment buttons only
appear when the underlying nodes/wallets are fully synchronized.
This commit is contained in:
Russell Ballestrini 2025-09-23 15:33:19 -04:00
parent 45dca33b65
commit 72ac3d29ca

View file

@ -198,7 +198,7 @@ def includeme(config):
return False
try:
from ..lib.crypto_clients import get_client_from_settings
from make_post_sell.lib.crypto_clients import get_client_from_settings
client = get_client_from_settings(request.registry.settings)
# Try to get blockchain height as a simple health check
@ -213,7 +213,7 @@ def includeme(config):
return False
try:
from ..lib.crypto_clients import get_client_from_settings
from make_post_sell.lib.crypto_clients import get_client_from_settings
client = get_client_from_settings(request.registry.settings)
# Check if wallet is synced (ready for payment processing)
@ -239,7 +239,9 @@ def includeme(config):
return False
try:
from ..lib.crypto_clients import get_dogecoin_client_from_settings
from make_post_sell.lib.crypto_clients import (
get_dogecoin_client_from_settings,
)
client = get_dogecoin_client_from_settings(request.registry.settings)
# Try to get blockchain height as a simple health check
@ -254,7 +256,9 @@ def includeme(config):
return False
try:
from ..lib.crypto_clients import get_dogecoin_client_from_settings
from make_post_sell.lib.crypto_clients import (
get_dogecoin_client_from_settings,
)
client = get_dogecoin_client_from_settings(request.registry.settings)
# Check if node is synced (ready for payment processing)