All writing
~/writing/tags
#ethereum
2 posts
Systems debugging
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
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