# Developer details experimental Bitcoin node written in Elixir

Published 2026-12-01 · Crypto.world Team · Crypto.world

> Developer Bruno Garcia described exnode, an experimental Bitcoin full node written in Elixir/OTP. The mostly AI-generated project uses Bitcoin Core’s kernel for script verification and is not production-ready.

An experimental Bitcoin full node written in Elixir/OTP separates its networking, chain state and other functions into supervised processes, while relying on Bitcoin Core’s kernel for script verification. Developer Bruno Garcia described the project, called exnode, in a Dec. 1 post on [Delving Bitcoin](https://delvingbitcoin.org/t/exnode-a-bitcoin-full-node-in-elixir-otp/3144) and cautioned that it is not production-ready.

The project contains roughly 40,000 lines of Elixir across 113 modules and about 1,500 lines of C across five native components, according to the post. It is pinned to Bitcoin Core v32.1’s libbitcoinkernel and was created to experiment with architectural decisions and tests.

The code is mostly AI-generated, the developer said.

## Separating node processes

Exnode organizes its components as an OTP supervision tree, with restart boundaries based on ownership of state and dependencies between components. Headers and chain state sit upstream of services that depend on them, while peer-to-peer networking, transaction relay, indexes and APIs occupy separate parts of the tree.

According to the post, a mempool or transaction-relay crash restarts the relay subtree without dropping existing peer connections. A chain-state restart also restarts downstream consumers of its views.

That isolation has a limit: native functions share the virtual machine’s address space, and a memory bug or abort in one can take down the whole node. The Elixir code handles networking, header validation, chain selection, storage and mempool policy, among other functions. Script verification is delegated to Bitcoin Core v32.1’s libbitcoinkernel through a C interface.

## Archive and recovery

Instead of maintaining a separate unspent transaction output database and undo files, exnode stores an archive in append-only segments with a RocksDB index. The design carries trade-offs, including permanent history and index growth, an always-on transaction index and reconstruction work when serving a full block.

The post distinguishes four milestones in handling a block: stored, active, committed and index-ready. A stored body can still fail validation or disappear after power loss; an active block has passed ordered validation, while a committed block has had its segment files synced and its metadata published in an atomic database batch.

If the node crashes, it refuses to open a dirty store directly, the developer wrote. An offline restoration tool instead replaces the store from the latest complete snapshot and reconciles associated data.

## Validation and testing

Local errors or crashes put a block hash into quarantine without invalidating its header or penalizing the peer, according to the post. An optional shadow mode runs Bitcoin Core’s full libbitcoinkernel chain-state engine in a separate operating-system process to cross-check connected blocks and consensus rejections, with an automatic halt if they diverge.

The developer reports a suite of 166 test files with about 850 test cases, including 44 property tests. The suite also includes 16 interoperability test modules using bitcoind v32.1 instances on regtest, as well as 21 targeted denial-of-service test files.

The project also uses Lean 4 and TLA+ for formal verification. The post describes machine-checked theorems over tables generated from production code and specifications modeling concurrent operations such as crash recovery and block downloads.

## Sources

1. Original source [Delving Bitcoin](https://delvingbitcoin.org/t/exnode-a-bitcoin-full-node-in-elixir-otp/3144) delvingbitcoin.org

Other pages read

2. [GitHub](https://github.com/brunoerg/exnode) “GitHub - brunoerg/exnode: A Bitcoin full-node written in Elixir” github.com
3. [GitHub](https://github.com/brunoerg) “brunoerg - Overview” github.com

## Related stories

- [Bitcoin researcher says wallet rebroadcast can link addresses to node IPs](https://crypto.world/news/bitcoin-wallet-rebroadcast-address-node-privacy-risk)
- [Stratum Local proposes LAN mining link for Bitcoin Core nodes](https://crypto.world/news/stratum-local-draft-bitcoin-lan-mining-protocol)
- [Bitcoin Core contributor weighs ways to handle larger post-quantum signatures](https://crypto.world/news/bitcoin-post-quantum-signatures-stack-options)
- [Bitcoin Core patches AI-found flaw that could stall nodes](https://crypto.world/news/bitcoin-core-patches-ai-found-node-stalling-flaw)
- [Proposed Node Attestation Protocol would let Bitcoin holders sign statements weighted by coin value](https://crypto.world/news/bitcoin-forum-proposes-utxo-weighted-node-attestations)

## Explore

[More articles](https://crypto.world/news)

---

Canonical: https://crypto.world/news/exnode-experimental-bitcoin-node-elixir
