fix: update sim for SPEL 32-byte tree_id and submodule restore

TREE_ID_HEX updated from 24 to 32 bytes to match SPEL's tree_id format,
fixing stale payment account lookup that caused silent registration
failures (KeyNotFound error 8).

setup_and_run.sh now restores working tree files in all nested
submodules after git submodule update --init, which resets them.
This commit is contained in:
Arseniy Klempner 2026-05-12 13:24:46 -06:00
parent 9d368aeb44
commit 932627d636
No known key found for this signature in database
GPG Key ID: 51653F18863BD24B
2 changed files with 5 additions and 1 deletions

View File

@ -163,7 +163,7 @@ echo "[2/6] Deploying programs..."
export NSSA_WALLET_HOME_DIR="$LEZ_RLN_DIR/dev"
export WALLET_CONFIG="$NSSA_WALLET_HOME_DIR/wallet_config.json"
export WALLET_STORAGE="$NSSA_WALLET_HOME_DIR/storage.json"
TREE_ID_HEX="000102030405060708090a0b0c0d0e0f1011121314151617"
TREE_ID_HEX="000102030405060708090a0b0c0d0e0f10111213141516170000000000000000"
GIFTER_ACCOUNT_FILE="$HOME/.logos-lez-rln/payment_account_${TREE_ID_HEX}.txt"
rm -f "$WALLET_CONFIG" "$WALLET_STORAGE"

View File

@ -65,6 +65,10 @@ fi
log "Initializing nested submodules in vendor/logos-lez-rln..."
(cd vendor/logos-lez-rln && \
git submodule update --init lssa logos-delivery logos-delivery-module logos-execution-zone-module && \
git checkout -- . && \
for d in lssa logos-delivery logos-delivery-module logos-execution-zone-module; do \
(cd "$d" && git checkout -- .); \
done && \
cd logos-delivery-module && git submodule update --init vendor/logos-delivery)
if [ -d "${GUEST_TMP:-}" ]; then
mkdir -p "$GUEST_DIR"