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

~/writing/tags

#tokio

2 posts

Systems debugging
February 3, 20247 min

Indexing an on-chain token ledger in Rust

A blockchain hands you an append-only log of transfers in three different shapes, behind a rate-limited RPC that quietly 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, 20245 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

WritingGitHubRSS