You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cardano-node): support custom mithril image overrides
Adds support for specifying a dedicated image, tag, and pullPolicy for the mithril-snapshot initContainer.
Sets default pullPolicy to Always to ensure mutable tags (like latest-unstable) are always checked on restart.
Note: The built-in mithril-client v0.13.9 in ghcr.io/blinklabs-io/cardano-node:11.0.1-1 has a closed-channel stream race condition bug on GCS (Download: could not write 0 bytes to stream). Suggest using ghcr.io/input-output-hk/mithril-client:latest-unstable (or v2617.0+).
Signed-off-by: Ales Verbic <verbotenj@blinklabs.io>
# If protocolMagicId is missing, the DB is incomplete/corrupted. We must wipe /data/db/*
71
+
# to prevent Mithril Client from failing with "Unpack directory is not empty" errors on restarts!
72
+
echo "Incomplete database detected (protocolMagicId missing) or force redownload enabled, cleaning up existing files to prevent Mithril unpack errors..."
73
+
rm -rf /data/db/* 2>/dev/null || true
73
74
74
75
# Determine aggregator path based on network
75
76
case ${NETWORK} in
@@ -88,15 +89,26 @@ spec:
88
89
fi
89
90
90
91
# Read keys from image config files if they exist, otherwise use values from helm chart
92
+
# Read keys from image config files if they exist, otherwise use values from helm chart or fall back to known defaults
91
93
if [ -f "/opt/cardano/config/${NETWORK}/genesis.vkey" ] && [ -s "/opt/cardano/config/${NETWORK}/genesis.vkey" ]; then
0 commit comments