From 14e984feecc10de9d563bb433a060fd39f124175 Mon Sep 17 00:00:00 2001 From: Luke Dunshea <73735118+elldeeone@users.noreply.github.com> Date: Tue, 31 Mar 2026 19:29:10 +1100 Subject: [PATCH] Update rusty-kaspad to version v1.1.0-1 (#5142) Co-authored-by: Alexander L. --- rusty-kaspad/data/app/.gitkeep | 1 + rusty-kaspad/data/logs/.gitkeep | 0 rusty-kaspad/docker-compose.yml | 22 +++---------------- rusty-kaspad/entrypoint.sh | 39 --------------------------------- rusty-kaspad/umbrel-app.yml | 11 ++++++++-- 5 files changed, 13 insertions(+), 60 deletions(-) delete mode 100644 rusty-kaspad/data/logs/.gitkeep delete mode 100755 rusty-kaspad/entrypoint.sh diff --git a/rusty-kaspad/data/app/.gitkeep b/rusty-kaspad/data/app/.gitkeep index e69de29b..8b137891 100644 --- a/rusty-kaspad/data/app/.gitkeep +++ b/rusty-kaspad/data/app/.gitkeep @@ -0,0 +1 @@ + diff --git a/rusty-kaspad/data/logs/.gitkeep b/rusty-kaspad/data/logs/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/rusty-kaspad/docker-compose.yml b/rusty-kaspad/docker-compose.yml index ad6a867c..7ffdec4a 100644 --- a/rusty-kaspad/docker-compose.yml +++ b/rusty-kaspad/docker-compose.yml @@ -7,36 +7,20 @@ services: APP_PORT: 4321 frontend: - image: elldee/kaspa-frontend:v0.3.0@sha256:129cff71ec174ea69bb38313cfb2a20518fa2c1fd371e2a2aa5fa4d75b74470c + image: elldee/kaspa-frontend:v0.4.1@sha256:a77573dfbc706b632ba24b9087685dc0b44d588c60b5399e2c2df2a19bd38a93 restart: on-failure stop_grace_period: 1m - depends_on: - - kaspa-api - - kaspa-api: - image: elldee/kaspa-api:v0.3.0@sha256:272c62730984d0a89459337370d215ee75a315552e3031b1f4c4f11c673cb266 - restart: on-failure - stop_grace_period: 1m - environment: - KASPAD_HOST: kaspad - KASPAD_RPC_PORT: 18110 - KASPAD_CONTAINER_NAME: rusty-kaspad_kaspad_1 - volumes: - - ${APP_DATA_DIR}/data/logs:/logs:ro # For log parsing depends_on: - kaspad kaspad: image: kaspanet/rusty-kaspad:v1.1.0@sha256:150ffa0c0dcc6497951f9199d1ba3e48c7d91ef958846b28c9fb5045459a2dca restart: on-failure - stop_grace_period: 1m + stop_grace_period: 3m volumes: - - ${APP_DATA_DIR}/data/app:/data - - ${APP_DATA_DIR}/data/logs:/logs - - ${APP_DATA_DIR}/entrypoint.sh:/entrypoint.sh:ro + - ${APP_DATA_DIR}/data/app:/app/data ports: - 16110:16110 # GRPC - 16111:16111 # P2P - 17110:17110 # WRPC (Borsh) - 18110:18110 # WRPC (JSON) - entrypoint: /entrypoint.sh diff --git a/rusty-kaspad/entrypoint.sh b/rusty-kaspad/entrypoint.sh deleted file mode 100755 index 09ffb1fa..00000000 --- a/rusty-kaspad/entrypoint.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh -set -e - -# Configuration -LOG_DIR="/logs" -LOG_FILE="${LOG_DIR}/kaspad_buffer.log" -BUFFER_SIZE=10000 - -# Ensure log directory exists -mkdir -p "${LOG_DIR}" - -# Call the original entrypoint with kaspad and our custom arguments -# The original entrypoint handles user switching and IP detection -exec /app/entrypoint.sh kaspad \ - --rpclisten=0.0.0.0:16110 \ - --rpclisten-borsh=0.0.0.0:17110 \ - --rpclisten-json=0.0.0.0:18110 \ - --loglevel=info \ - --yes \ - --nologfiles \ - "$@" 2>&1 | { - # Initialize the log file - > "${LOG_FILE}" - - # Read lines and maintain rolling buffer - while IFS= read -r line; do - echo "$line" >> "${LOG_FILE}" - - # Check line count and trim if necessary - LINE_COUNT=$(wc -l < "${LOG_FILE}" 2>/dev/null || echo 0) - if [ "$LINE_COUNT" -gt "$BUFFER_SIZE" ]; then - tail -n "$BUFFER_SIZE" "${LOG_FILE}" > "${LOG_FILE}.tmp" - mv "${LOG_FILE}.tmp" "${LOG_FILE}" - fi - - # Also output to stdout for Docker logging - echo "$line" - done -} diff --git a/rusty-kaspad/umbrel-app.yml b/rusty-kaspad/umbrel-app.yml index 9e4a8e86..865c3837 100644 --- a/rusty-kaspad/umbrel-app.yml +++ b/rusty-kaspad/umbrel-app.yml @@ -2,7 +2,7 @@ manifestVersion: 1 id: rusty-kaspad category: crypto name: Rusty Kaspad -version: "v1.1.0" +version: "v1.1.0-1" tagline: A Rust implementation of a Kaspa full node description: | Rusty Kaspad is a Rust implementation of a Kaspa full node. This node software provides essential Kaspa network services including peer-to-peer networking and RPC functionality. @@ -13,7 +13,7 @@ description: | This package uses the Docker container maintained by [supertypo](https://hub.docker.com/r/kaspanet/rusty-kaspad), based on [Rusty Kaspa](https://github.com/kaspanet/rusty-kaspa). - Packaged for Umbrel by Luke Dunshea (http://luke.dunshea.au). + Packaged for Umbrel by Luke Dunshea (https://dunshea.au). developer: Kaspa Community website: https://github.com/kaspanet/rusty-kaspa repo: https://github.com/kaspanet/rusty-kaspa @@ -39,5 +39,12 @@ releaseNotes: >- Full release notes can be found at https://github.com/kaspanet/rusty-kaspa/releases + + + Note: the `-1` suffix in this Umbrel app version indicates a frontend/package-only revision and is not a new Rusty Kaspa node release. + + On some older installs, this update may cause the node to re-sync. submitter: Luke Dunshea submission: https://github.com/getumbrel/umbrel-apps/pull/2060 +backupIgnore: + - data/app/*