Skip to content

Commit 8490cd3

Browse files
dkijaniaCopilot
andauthored
Update scripts/mina-local-network/split_precomputed_log.sh
Co-authored-by: Copilot <[email protected]>
1 parent 1d00af8 commit 8490cd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/mina-local-network/split_precomputed_log.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ cd "$OUTPUT_FOLDER" || exit
1212

1313
while IFS= read -r line; do
1414
LEDGER_HASH=$(echo $line | jq -r '.data.protocol_state.body.blockchain_state.staged_ledger_hash.non_snark.ledger_hash')
15-
FILE_NAME=$(psql $ARCHIVE_URI -t -c "SELECT 'mainnet-' || height || '-' ||state_hash || '.json' FROM blocks WHERE ledger_hash = '$LEDGER_HASH'")
15+
FILE_NAME=$(psql $ARCHIVE_URI -t -c "SELECT 'mainnet-' || height || '-' ||state_hash || '.json' FROM blocks WHERE ledger_hash = '$LEDGER_HASH'" | xargs)
1616
if [[ -z "$FILE_NAME" ]] || [[ "$FILE_NAME" == "NULL" ]]; then
1717
echo "WARNING: No block found in db for ledger hash: $LEDGER_HASH"
1818
continue

0 commit comments

Comments
 (0)