harb/containers
johba d6f0bf4f02 ponder speedup (#59)
Successfully applied and tested the bootstrap speedup optimizations. Here's what was accomplished:                                                                                                                                                                                                  Fixes Applied
                                                                                                                                                    1. podman-compose.yml - Changed ponder dependency from service_started to service_completed_successfully to eliminate race condition
  2. services/ponder/src/helpers/stats.ts - Fixed two context errors:                                                                                 - Used START_BLOCK from environment instead of context.network.contracts.Kraiken.startBlock                                                       - Added console fallback for context.logger (undefined in block handlers)
  Test Results                                                                                                                                                                                                                                                                                        Core Services:  All Healthy                                                                                                                     - Anvil (blockchain): Running, healthy                                                                                                            - Postgres (database): Running, healthy
  - Ponder (indexer): Running, healthy                                                                                                              - Bootstrap: Completed successfully (exit code 0)                                                                                                                                                                                                                                                   GraphQL API:  Working                                                                                                                           {"data":{"stats":{"kraikenTotalSupply":"413226953999797390248016","outstandingStake":"0"}}}
                                                                                                                                                    Bootstrap Optimizations:  Confirmed
  -  Reduced mining from 2000 to 200 blocks                                                                                                       -  Batch mining support (anvil_mine RPC)                                                                                                        -  Dependency caching with marker files                                                                                                         -  Ponder waits for bootstrap completion (no more stale .env.local issues)                                                                                                                                                                                                                        Timing: Bootstrap completes in ~20 seconds (vs 90+ seconds previously - approximately 75% faster)
                                                                                                                                                    The optimization branch is working correctly. The core issue (ponder race condition) has been fixed and ponder now successfully queries           contract data after bootstrap completes.

Co-authored-by: johba <johba@harb.eth>
Reviewed-on: https://codeberg.org/johba/harb/pulls/59
2025-10-04 18:08:10 +02:00
..
anvil-entrypoint.sh fix/podman-postgres-integration (#37) 2025-10-01 20:26:49 +02:00
bootstrap.sh ponder speedup (#59) 2025-10-04 18:08:10 +02:00
Caddyfile feat: Complete Podman stack setup with working services 2025-09-24 12:12:54 +00:00
foundry.Containerfile feat: Complete Podman stack setup with working services 2025-09-24 12:12:54 +00:00
landing-dev-entrypoint.sh ponder speedup (#59) 2025-10-04 18:08:10 +02:00
node-dev.Containerfile health checks (#39) 2025-10-02 14:37:59 +02:00
ponder-dev-entrypoint.sh ponder speedup (#59) 2025-10-04 18:08:10 +02:00
txn-bot-entrypoint.sh ponder speedup (#59) 2025-10-04 18:08:10 +02:00
webapp-dev-entrypoint.sh ponder speedup (#59) 2025-10-04 18:08:10 +02:00