From f9574e014416ffeac59cacb14c45dda18ec45ad0 Mon Sep 17 00:00:00 2001 From: Nicolas Cantu Date: Mon, 22 Sep 2025 05:27:34 +0000 Subject: [PATCH] update submodule --- blindbit/Dockerfile | 10 -------- blindbit/blindbit.toml | 28 ----------------------- scripts/healthchecks/blindbit-progress.sh | 11 ++------- 3 files changed, 2 insertions(+), 47 deletions(-) delete mode 100644 blindbit/Dockerfile delete mode 100644 blindbit/blindbit.toml diff --git a/blindbit/Dockerfile b/blindbit/Dockerfile deleted file mode 100644 index 3e161ee..0000000 --- a/blindbit/Dockerfile +++ /dev/null @@ -1,10 +0,0 @@ -# Dockerfile personnalisé pour BlindBit avec pgrep et wget -FROM git.4nkweb.com/4nk/blindbit-oracle:dev - -# Installer pgrep, wget et autres outils utiles pour les healthchecks -USER root -RUN apt-get update && apt-get install -y procps wget curl && \ - rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* - -# Revenir à l'utilisateur par défaut -USER root diff --git a/blindbit/blindbit.toml b/blindbit/blindbit.toml deleted file mode 100644 index 01ed4d7..0000000 --- a/blindbit/blindbit.toml +++ /dev/null @@ -1,28 +0,0 @@ -# Configuration pour blindbit-oracle -http_host = "0.0.0.0:8000" - -# Définit la chaîne sur laquelle le wallet fonctionne -chain = "signet" - -# Point d'accès RPC Bitcoin -rpc_endpoint = "http://bitcoin:38332" - -# Chemin vers le fichier cookie RPC Bitcoin -cookie_path = "/home/bitcoin/.bitcoin/signet/.cookie" - -# Identifiants RPC Bitcoin (non utilisés avec cookie_path) -rpc_user = "" -rpc_pass = "" - -# Hauteur de départ pour la synchronisation -sync_start_height = 1 - -# Paramètres de performance -max_parallel_tweak_computations = 4 -max_parallel_requests = 4 - -# Configuration des index -tweaks_only = 0 -tweaks_full_basic = 1 -tweaks_full_with_dust_filter = 1 -tweaks_cut_through_with_dust_filter = 1 \ No newline at end of file diff --git a/scripts/healthchecks/blindbit-progress.sh b/scripts/healthchecks/blindbit-progress.sh index d1cf5f5..98a754a 100755 --- a/scripts/healthchecks/blindbit-progress.sh +++ b/scripts/healthchecks/blindbit-progress.sh @@ -8,15 +8,8 @@ if pgrep main > /dev/null 2>/dev/null; then echo 'BlindBit ready: Oracle service responding' exit 0 else - # Récupérer les logs récents pour voir la progression - scan_logs=$(tail -20 /var/log/blindbit/blindbit.log 2>/dev/null | grep -E "(scanning|scan|blocks|tweaks|processing)" | tail -1 || echo "") - if [ -n "$scan_logs" ]; then - echo "BlindBit processing: $scan_logs" - exit 1 - else - echo 'BlindBit starting: Oracle service initializing' - exit 1 - fi + echo 'BlindBit starting: Oracle service initializing' + exit 1 fi else echo 'BlindBit starting: Process not ready'