Archive legacy status docs and canonicalize genesis entrypoints

This commit is contained in:
defiQUG
2026-04-13 21:45:16 -07:00
parent 7517869ea6
commit 79750d92e6
288 changed files with 757 additions and 1066 deletions

View File

@@ -53,7 +53,7 @@ EXTRA_DATA=$(jq -r '.extraData' "$GENESIS_FILE")
if [ "$EXTRA_DATA" != "0x" ] && [ -n "$EXTRA_DATA" ]; then
log_success "✓ extraData is set: ${EXTRA_DATA:0:50}..."
# Validate extraData length (should be reasonable for IBFT)
# Validate extraData length (should be reasonable for QBFT)
EXTRA_DATA_LENGTH=$(echo -n "$EXTRA_DATA" | wc -c)
if [ "$EXTRA_DATA_LENGTH" -gt 2 ]; then
log_success "✓ extraData has content (length: $EXTRA_DATA_LENGTH)"
@@ -67,12 +67,12 @@ else
exit 1
fi
# Check IBFT 2 / QBFT configuration
log_warn "Checking IBFT 2 / QBFT configuration..."
IBFT_CONFIG=$(jq -r '.config.ibft2 // .config.qbft // "null"' "$GENESIS_FILE")
if [ "$IBFT_CONFIG" != "null" ]; then
log_success "✓ IBFT 2.0 / QBFT configuration exists"
# Prefer qbft for Chain 138
# Check QBFT configuration
log_warn "Checking QBFT configuration..."
CONSENSUS_CONFIG=$(jq -r '.config.qbft // .config.ibft2 // "null"' "$GENESIS_FILE")
if [ "$CONSENSUS_CONFIG" != "null" ]; then
log_success "✓ QBFT-compatible consensus configuration exists"
# Prefer qbft for Chain 138, but tolerate older ibft2-shaped historical files.
BLOCK_KEY=".config.qbft.blockperiodseconds // .config.ibft2.blockperiodseconds"
EPOCH_KEY=".config.qbft.epochlength // .config.ibft2.epochlength"
BLOCK_PERIOD=$(jq -r "$BLOCK_KEY" "$GENESIS_FILE")
@@ -88,7 +88,7 @@ if [ "$IBFT_CONFIG" != "null" ]; then
log_warn "⚠ Epoch length is $EPOCH_LENGTH (expected 30000)"
fi
else
log_error "✗ IBFT 2.0 / QBFT configuration not found"
log_error "✗ QBFT-compatible consensus configuration not found"
exit 1
fi
@@ -117,4 +117,3 @@ fi
log_success "Genesis file validation completed"
log_success "✓ All validations passed"