All writing
~/writing/tags
#tokio
2 posts
Systems debugging
7 minIndexing 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
5 minThe 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