feat/ponder-lm-indexing (#142)
This commit is contained in:
parent
de3c8eef94
commit
31063379a8
107 changed files with 12517 additions and 367 deletions
|
|
@ -2,7 +2,16 @@
|
|||
set -euo pipefail
|
||||
|
||||
MNEMONIC_FILE=/workspace/onchain/.secret.local
|
||||
ANVIL_CMD=(anvil --fork-url "${FORK_URL:-https://sepolia.base.org}" --chain-id 31337 --block-time 1 --host 0.0.0.0 --port 8545 --threads 4 --timeout 2000 --retries 2 --fork-retry-backoff 100 --steps-tracing)
|
||||
ANVIL_STATE_DIR=/home/foundry/.foundry/anvil/tmp
|
||||
|
||||
# Cleanup old state snapshots (files older than 24 hours)
|
||||
# Prevents disk bloat from accumulating JSON snapshots
|
||||
if [[ -d "$ANVIL_STATE_DIR" ]]; then
|
||||
echo "[anvil] Cleaning up state snapshots older than 24 hours..."
|
||||
find "$ANVIL_STATE_DIR" -type f -name "*.json" -mtime +1 -delete 2>/dev/null || true
|
||||
fi
|
||||
|
||||
ANVIL_CMD=(anvil --fork-url "${FORK_URL:-https://sepolia.base.org}" --chain-id 31337 --block-time 1 --host 0.0.0.0 --port 8545 --threads 4 --timeout 2000 --retries 2 --fork-retry-backoff 100 --steps-tracing --no-storage-caching)
|
||||
|
||||
if [[ -f "$MNEMONIC_FILE" ]]; then
|
||||
MNEMONIC="$(tr -d '\n\r' <"$MNEMONIC_FILE")"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,10 @@ RUN apk add --no-cache \
|
|||
git \
|
||||
bash \
|
||||
postgresql-client \
|
||||
wget
|
||||
wget \
|
||||
python3 \
|
||||
make \
|
||||
g++
|
||||
|
||||
USER node
|
||||
WORKDIR /workspace
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue