Skip to content

[tooling] PublicNode BSC fallback is pruned — archive eth_call returns 'missing trie node' #246

@obchain

Description

@obchain

Refs #52

File: scripts/anvil_fork.sh

Problem

BSC-PublicNode (bsc-rpc.publicnode.com) retains only ~128 recent blocks of state. Any anvil fork that performs eth_call against a block older than that returns 'missing trie node'. dRPC primary is genuine archive; PublicNode fallback is not. A fallback that silently delivers broken behavior is worse than hard-fail.

Fix

Replace PublicNode with an actual archive endpoint. Options:

  • BNB Chain official archive endpoints (limited, rate-limited but archive)
  • Chainstack archive (free tier with email signup)
  • ankr.com/rpc/ (paid, but single-transaction archive reads sometimes free)
  • Fork probe: test state at block-1000 before accepting the upstream. Fail fast if state missing.

Document endpoint requirements in README: 'requires BSC archive RPC; PublicNode is NOT archive'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglayer:devopsCI / deploy / infra / telemetrypr-reviewFindings from PR review processpriority:p1-coreCore MVP scopestatus:readyScoped and ready to pick up

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions