Test optimized backfill (skips attested proofs)
This commit is contained in:
parent
810d26b7af
commit
3b54e0cb8c
7 changed files with 38 additions and 4 deletions
20
check-attestation.sh
Executable file
20
check-attestation.sh
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
# check-attestation.sh - Check if an OpenTimestamp proof is fully attested
|
||||
# Usage: check-attestation.sh <proof-file>
|
||||
# Returns: 0 if fully attested, 1 if pending
|
||||
|
||||
PROOF_FILE="${1:-}"
|
||||
|
||||
if [ -z "$PROOF_FILE" ] || [ ! -f "$PROOF_FILE" ]; then
|
||||
echo "Error: proof file not found: $PROOF_FILE" >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
# Check for PendingAttestation in ots info output
|
||||
if ots info "$PROOF_FILE" 2>&1 | grep -q "PendingAttestation"; then
|
||||
echo "pending"
|
||||
exit 1
|
||||
else
|
||||
echo "attested"
|
||||
exit 0
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue