We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d00af8 commit 8490cd3Copy full SHA for 8490cd3
scripts/mina-local-network/split_precomputed_log.sh
@@ -12,7 +12,7 @@ cd "$OUTPUT_FOLDER" || exit
12
13
while IFS= read -r line; do
14
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'")
+ FILE_NAME=$(psql $ARCHIVE_URI -t -c "SELECT 'mainnet-' || height || '-' ||state_hash || '.json' FROM blocks WHERE ledger_hash = '$LEDGER_HASH'" | xargs)
16
if [[ -z "$FILE_NAME" ]] || [[ "$FILE_NAME" == "NULL" ]]; then
17
echo "WARNING: No block found in db for ledger hash: $LEDGER_HASH"
18
continue
0 commit comments