Complete markdown files cleanup and organization

- Organized 252 files across project
- Root directory: 187 → 2 files (98.9% reduction)
- Moved configuration guides to docs/04-configuration/
- Moved troubleshooting guides to docs/09-troubleshooting/
- Moved quick start guides to docs/01-getting-started/
- Moved reports to reports/ directory
- Archived temporary files
- Generated comprehensive reports and documentation
- Created maintenance scripts and guides

All files organized according to established standards.
This commit is contained in:
defiQUG
2026-01-06 01:46:25 -08:00
parent 1edcec953c
commit cb47cce074
1327 changed files with 217220 additions and 801 deletions

View File

@@ -50,10 +50,15 @@ CONFIG_PATH=$(pct exec $VMID -- grep "config-file" "$SERVICE_FILE" 2>/dev/null |
log_info " Service expects config: $CONFIG_PATH"
# Determine correct config file name
if echo "$CONFIG_PATH" | grep -q "config-rpc-public"; then
# VMID 2500 uses config-rpc-core.toml (Core RPC - local/permissioned nodes only)
if [ "$VMID" = "2500" ]; then
CONFIG_FILE="/etc/besu/config-rpc-core.toml"
elif echo "$CONFIG_PATH" | grep -q "config-rpc-public"; then
CONFIG_FILE="/etc/besu/config-rpc-public.toml"
elif echo "$CONFIG_PATH" | grep -q "config-rpc-core"; then
CONFIG_FILE="/etc/besu/config-rpc-core.toml"
elif echo "$CONFIG_PATH" | grep -q "config-rpc-perm"; then
CONFIG_FILE="/etc/besu/config-rpc-perm.toml"
else
CONFIG_FILE="/etc/besu/config-rpc.toml"
fi
@@ -86,17 +91,17 @@ miner-enabled=false
sync-mode=\"FULL\"
fast-sync-min-peers=2
# RPC Configuration
# RPC Configuration (VMID 2500 - Core RPC with full APIs)
rpc-http-enabled=true
rpc-http-host=\"0.0.0.0\"
rpc-http-port=8545
rpc-http-api=[\"ETH\",\"NET\",\"WEB3\"]
rpc-http-api=[\"ETH\",\"NET\",\"WEB3\",\"ADMIN\",\"DEBUG\",\"TXPOOL\"]
rpc-http-cors-origins=[\"*\"]
rpc-ws-enabled=true
rpc-ws-host=\"0.0.0.0\"
rpc-ws-port=8546
rpc-ws-api=[\"ETH\",\"NET\",\"WEB3\"]
rpc-ws-api=[\"ETH\",\"NET\",\"WEB3\",\"ADMIN\",\"DEBUG\",\"TXPOOL\"]
rpc-ws-origins=[\"*\"]
# Metrics
@@ -116,7 +121,8 @@ tx-pool-price-bump=10
tx-pool-retention-hours=6
static-nodes-file=\"/genesis/static-nodes.json\"
discovery-enabled=true
# Discovery disabled for VMID 2500 (Core RPC) - only local/permissioned nodes
discovery-enabled=false
privacy-enabled=false
rpc-tx-feecap=\"0x0\"
@@ -169,6 +175,23 @@ fi
log_success " RPC endpoints verified"
# 6b. For VMID 2500 (Core RPC), ensure discovery is disabled (local/permissioned nodes only)
if [ "$VMID" = "2500" ]; then
log_info ""
log_info "6b. Ensuring discovery is disabled (VMID 2500 - local/permissioned nodes only)..."
if pct exec $VMID -- grep -q "discovery-enabled=true" "$CONFIG_FILE" 2>/dev/null; then
log_warn " Discovery is enabled. Disabling for strict local/permissioned node control..."
pct exec $VMID -- sed -i 's/^discovery-enabled=true/discovery-enabled=false/' "$CONFIG_FILE"
log_success " Discovery disabled"
elif ! pct exec $VMID -- grep -q "discovery-enabled" "$CONFIG_FILE" 2>/dev/null; then
log_warn " Discovery setting not found. Adding discovery-enabled=false..."
pct exec $VMID -- sed -i '/^static-nodes-file/a discovery-enabled=false' "$CONFIG_FILE"
log_success " Discovery disabled (added)"
else
log_success " Discovery is already disabled"
fi
fi
# 7. Update service file if needed
log_info ""
log_info "7. Verifying service file configuration..."