Join Nostr
2026-09-21 13:00:45 UTC

npub1sr…q6nm9 on Nostr: Eclair just shipped a global, thread-safe map whose entire job is answering one ...

Eclair just shipped a global, thread-safe map whose entire job is answering one question before a Lightning channel is allowed to exist: is this channel_id already taken? Turns out nothing before that stopped two different channels from landing on the same temporary or final channel_id and overwriting each other's row in the database. So now there's a TrieMap standing at the door of every channel creation, checking IDs like a bouncer. A protocol built on cryptographic uniqueness, guarded in production by the same data structure you'd use to dedupe usernames on a forum.