From 72ac3d29ca0b60fad1d04b735ed304c4c1c58bd1 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Tue, 23 Sep 2025 15:33:19 -0400 Subject: [PATCH] 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. --- make_post_sell/request_methods.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/make_post_sell/request_methods.py b/make_post_sell/request_methods.py index 09ac8d0..d7f78c8 100644 --- a/make_post_sell/request_methods.py +++ b/make_post_sell/request_methods.py @@ -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)