Test optimized backfill (skips attested proofs)

This commit is contained in:
Otto 2026-03-07 16:32:56 +01:00
parent 810d26b7af
commit 3b54e0cb8c
7 changed files with 38 additions and 4 deletions

View file

@ -55,13 +55,21 @@ for COMMIT in $COMMITS; do
PROOF_FILE=".ots/${COMMIT}.ots"
if [ -f "$PROOF_FILE" ]; then
# Try to upgrade existing proof
echo " Upgrading existing proof..."
# Check if already fully attested
STATUS=$(ots info "$PROOF_FILE" 2>&1 | grep -c "PendingAttestation" || echo "0")
if [ "$STATUS" -eq 0 ]; then
echo " ✓ Already attested (skipping)"
continue
fi
# Try to upgrade existing proof (only contacts calendars if pending)
echo " Upgrading pending proof..."
if ots upgrade "$PROOF_FILE" 2>/dev/null; then
echo " ✓ Upgraded to attested"
UPDATED=$((UPDATED + 1))
else
echo " - Still pending (no upgrade available)"
echo " - Still pending (no upgrade available yet)"
fi
else
# Generate new proof for this commit