From 654d79242155eb9394c1fcf4e71ae176cb14b455 Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Wed, 29 Apr 2026 10:31:59 -0300 Subject: [PATCH 1/2] fix: match sink-sql flag typo for --on-module-hash-mistmatch The substreams-sink-sql v4.12.0 binary registers the flag as --on-module-hash-mistmatch (with an extra 't'). Passing the correctly spelled --on-module-hash-mismatch causes an "unknown flag" error, making the sink crash-loop on stage. --- Dockerfile.sink | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.sink b/Dockerfile.sink index 8e2313e..5ee3138 100644 --- a/Dockerfile.sink +++ b/Dockerfile.sink @@ -50,7 +50,7 @@ ENV SUBSTREAMS_ENDPOINTS_CONFIG_TRON="mainnet.tron.streamingfast.io:443" ENV ON_MODULE_HASH_MISMATCH="warn" # Create entrypoint script - dynamically find the .spkg file -RUN printf '#!/bin/bash\nset -e\n\nSPKG=$(ls /app/request-network-tron-*.spkg 2>/dev/null | head -1)\nif [ -z "$SPKG" ]; then\n echo "ERROR: No .spkg file found in /app/"\n exit 1\nfi\necho "Using package: $SPKG"\n\n# Setup the database schema first\necho "Setting up database schema..."\nsubstreams-sink-sql setup "$DSN" "$SPKG" || true\n\n# Run the sink\necho "Starting sink..."\nexec substreams-sink-sql run --on-module-hash-mismatch=${ON_MODULE_HASH_MISMATCH:-warn} "$DSN" "$SPKG"\n' > /entrypoint.sh && \ +RUN printf '#!/bin/bash\nset -e\n\nSPKG=$(ls /app/request-network-tron-*.spkg 2>/dev/null | head -1)\nif [ -z "$SPKG" ]; then\n echo "ERROR: No .spkg file found in /app/"\n exit 1\nfi\necho "Using package: $SPKG"\n\n# Setup the database schema first\necho "Setting up database schema..."\nsubstreams-sink-sql setup "$DSN" "$SPKG" || true\n\n# Run the sink\necho "Starting sink..."\nexec substreams-sink-sql run --on-module-hash-mistmatch=${ON_MODULE_HASH_MISMATCH:-warn} "$DSN" "$SPKG"\n' > /entrypoint.sh && \ chmod +x /entrypoint.sh # Health check From c25ca151fab1a066330a6db5a98cfd8b1f3a5b2b Mon Sep 17 00:00:00 2001 From: rodrigopavezi Date: Wed, 29 Apr 2026 10:34:28 -0300 Subject: [PATCH 2/2] chore: bump version to v0.1.1 --- tron/Cargo.lock | 2 +- tron/Cargo.toml | 2 +- tron/substreams.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tron/Cargo.lock b/tron/Cargo.lock index 6f80cd4..cc36d74 100644 --- a/tron/Cargo.lock +++ b/tron/Cargo.lock @@ -476,7 +476,7 @@ checksum = "a96887878f22d7bad8a3b6dc5b7440e0ada9a245242924394987b21cf2210a4c" [[package]] name = "request-network-tron" -version = "0.1.0" +version = "0.1.1" dependencies = [ "anyhow", "bs58", diff --git a/tron/Cargo.toml b/tron/Cargo.toml index 4b89e20..9a6b9a2 100644 --- a/tron/Cargo.toml +++ b/tron/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "request-network-tron" -version = "0.1.0" +version = "0.1.1" edition = "2021" repository = "https://github.com/RequestNetwork/payments-substream" license = "MIT" diff --git a/tron/substreams.yaml b/tron/substreams.yaml index 5cd9c56..4310059 100644 --- a/tron/substreams.yaml +++ b/tron/substreams.yaml @@ -1,7 +1,7 @@ specVersion: v0.1.0 package: name: request_network_tron - version: v0.1.0 + version: v0.1.1 url: https://github.com/RequestNetwork/payments-substream doc: | Request Network TRON Substreams module for indexing ERC20FeeProxy payment events.