Skip to content
~/ dnim.dev
▸ Writing ▸ About
All writing

~/writing/tags

#rust

2 posts

Systems debugging
February 3, 2024 6 min

Indexing an on-chain token ledger in Rust

A blockchain hands you an append-only log of transfers in three shapes, behind a rate-limited RPC that rewrites its own recent history. Folding that into a correct balance ledger is the whole job, and most of the ways to get it wrong don't show up for weeks.

#rust#ethereum#indexer#tokio
Systems debugging
January 20, 2024 4 min

The Python version worked. I rewrote it in Rust anyway.

Porting a working chain indexer from Python to Rust, where the easy parts get harder and the vague parts get found. Most of what the rewrite bought wasn't speed, it was bugs that stopped being possible to write.

#rust#python#ethereum#tokio

dnim.dev · built and broken by JR

Writing GitHub RSS Email
esc

    Keyboard shortcuts

    • Open the command palette ⌘K / Ctrl K
    • Show this help ?
    • Go home g then h
    • Go to writing g then w
    • Close any dialog Esc

    Press ? anytime to see this.