{"id":19309,"date":"2026-11-03T09:24:30","date_gmt":"2026-11-03T16:24:30","guid":{"rendered":"https:\/\/jasonsblog.ddns.net\/?p=19309"},"modified":"2026-11-03T09:26:35","modified_gmt":"2026-11-03T16:26:35","slug":"electrs-v0-12-0-is-fast","status":"publish","type":"post","link":"https:\/\/jasonsblog.ddns.net\/index.php\/2026\/11\/03\/electrs-v0-12-0-is-fast\/","title":{"rendered":"Electrs v0.12.0 is Fast"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Since I&#8217;ve moved to <a href=\"https:\/\/github.com\/paulscode\/knots-sha256\" target=\"_blank\" rel=\"noopener\">Paul Lamb&#8217;s Bitcoin Knots<\/a> version based on Bitcoin Core 31.2, I was finally able to switch to the latest version of Electrs v0.12.0, and boy is the new indexing server noticeably faster. If unaware, there are different implementations of Electrum servers that are meant to service SPV wallets (phone or light wallets) that don&#8217;t have the entire <a href=\"https:\/\/jasonsblog.ddns.net\/index.php\/2025\/09\/12\/the-case-for-the-only-cryptocurrency-of-value-bitcoin\/\" target=\"_blank\" rel=\"noopener\">Bitcoin<\/a> blockchain or verifying all transactions on their own. These wallets do retain some privacy in giving address ranges to look up so they don&#8217;t remove all privacy, but still best to use with your own node. So an Electrum server creates it&#8217;s own index and interacts much more efficiently with an SPV wallet than having them do so directly with a Bitcoin node. Consequently, Electrs is written in Rust (not my favorite), but I&#8217;ve been using it for years, and I&#8217;ve lately gone to using <a href=\"https:\/\/rustup.rs\/\" target=\"_blank\" rel=\"noopener\">Rustup<\/a> for managing my Rust version for compiling the software myself. Another popular version I haven&#8217;t played with yet is Fulcrum, and we&#8217;re also waiting for a version that supports silent payments without being too resource intensive. So kudos to Roman Zeyde for the Electrs project and his new indexing system. And reindexing took about 7 hours on my Raspberry Pi 5.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h5 class=\"wp-block-heading\">v0.12.0<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/romanz\">romanz<\/a> released this Sep 13<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Switch to <a href=\"https:\/\/github.com\/romanz\/bindex-rs\">bindex<\/a>:\n<ul class=\"wp-block-list\">\n<li>requires Bitcoin Core 31+<\/li>\n\n\n\n<li>uses REST API server (<code>-rest=1<\/code>)<\/li>\n\n\n\n<li>new index format &#8211; requires reindexing!<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Fix <code>server.features<\/code> response format.<\/li>\n\n\n\n<li>Update <code>transaction.id_from_pos<\/code> argument parsing for API compliance.<\/li>\n\n\n\n<li>Add <a href=\"https:\/\/github.com\/romanz\/electrs\/blob\/master\/SECURITY.md\">SECURITY.md<\/a>.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/romanz\/electrs\/blob\/master\/RELEASE-NOTES.md#0120-sep-13-2026\">https:\/\/github.com\/romanz\/electrs\/blob\/master\/RELEASE-NOTES.md#0120-sep-13-2026<\/a><\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/romanz\/electrs\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/romanz\/electrs<\/a><\/p>\n\n\n<div class=\"wp-block-ub-divider ub_divider ub-divider-orientation-horizontal\" id=\"ub_divider_1c9d9b23-a479-4cc3-85e4-b989ef92e413\"><div class=\"ub_divider_wrapper\" style=\"position: relative; margin-bottom: 2px; width: 100%; height: 2px; \" data-divider-alignment=\"center\"><div class=\"ub_divider_line\" style=\"border-top: 2px solid #ccc; margin-top: 2px; \"><\/div><\/div><\/div>\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/github.com\/romanz\/electrs\/blob\/master\/logo\/logo.svg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/github.com\/romanz\/electrs\/raw\/master\/logo\/logo.svg\" alt=\"Logo\"\/><\/a><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\">Electrum Server in Rust<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">An efficient re-implementation of Electrum Server, inspired by <a href=\"https:\/\/github.com\/kyuupichan\/electrumx\">ElectrumX<\/a>, <a href=\"https:\/\/github.com\/chris-belcher\/electrum-personal-server\">Electrum Personal Server<\/a> and <a href=\"https:\/\/github.com\/jonasschnelli\/bitcoincore-indexd\">bitcoincore-indexd<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The motivation behind this project is to enable a user to self host an Electrum server, with required hardware resources not much beyond those of a <a href=\"https:\/\/en.bitcoin.it\/wiki\/Full_node#Why_should_you_use_a_full_node_wallet\">full node<\/a>. The server indexes the entire Bitcoin blockchain, and the resulting index enables fast queries for any given user wallet, allowing the user to keep real-time track of balances and transaction history using the <a href=\"https:\/\/electrum.org\/\">Electrum wallet<\/a>. Since it runs on the user&#8217;s own machine, there is no need for the wallet to communicate with external Electrum servers, thus preserving the privacy of the user&#8217;s addresses and balances.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/btcprague.com\/dev-hack-day\/\">BTC Prague 2024 dev\/hack\/day<\/a> slides are here: <a href=\"https:\/\/bit.ly\/electrs\">https:\/\/bit.ly\/electrs<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Usage<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Please prefer to use OUR usage guide!<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">External guides can be out-of-date and have various problems. At least double-check that the guide you&#8217;re using is actively maintained. If you can&#8217;t use our guide, please ask about what you don&#8217;t understand or consider using automated deployments.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note that this implementation of Electrum server is optimized for <strong>personal\/small-scale (family\/friends) usage<\/strong>. It&#8217;s a bad idea to run it publicly as it&#8217;d expose you to DoS and maybe also other attacks. If you want to run a public server you may be interested in the <a href=\"https:\/\/github.com\/Blockstream\/electrs\">Blockstream fork of electrs<\/a> which is better optimized for public usage at the cost of consuming <em>significantly<\/em> more resources.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/romanz\/electrs\/blob\/master\/doc\/install.md\">Installation from source<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/romanz\/electrs\/blob\/master\/doc\/binaries.md\">Pre-built binaries<\/a> (No official binaries available but a beta repository is available for installation)<\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/romanz\/electrs\/blob\/master\/doc\/config.md\">Configuration<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/romanz\/electrs\/blob\/master\/doc\/usage.md\">Usage<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/romanz\/electrs\/blob\/master\/doc\/monitoring.md\">Monitoring<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/romanz\/electrs\/blob\/master\/doc\/upgrading.md\">Upgrading<\/a> &#8211; <strong>contains information about important changes from older versions<\/strong><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Features<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Supports Electrum protocol <a href=\"https:\/\/electrum-protocol.readthedocs.io\/\">v1.4<\/a><\/li>\n\n\n\n<li>Maintains an index over transaction inputs and outputs, allowing fast balance queries<\/li>\n\n\n\n<li>Fast synchronization of the Bitcoin blockchain (~6.5 hours for ~504GB @ August 2023) using HDD storage.<\/li>\n\n\n\n<li>Low index storage overhead (~10%), relying on a local full node for transaction retrieval<\/li>\n\n\n\n<li>Efficient mempool tracker (allowing better fee <a href=\"https:\/\/github.com\/spesmilo\/electrum\/blob\/59c1d03f018026ac301c4e74facfc64da8ae4708\/RELEASE-NOTES#L34-L46\">estimation<\/a>)<\/li>\n\n\n\n<li>Low CPU &amp; memory usage (after initial indexing)<\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/bitcoinbook\/bitcoinbook\/blob\/develop\/ch03_bitcoin-core.adoc#txindex\"><code>txindex<\/code><\/a> is not required for the Bitcoin node<\/li>\n\n\n\n<li>Uses a single <a href=\"https:\/\/github.com\/spacejam\/rust-rocksdb\">RocksDB<\/a> database, for better consistency and crash recovery<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Altcoins<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Altcoins are <strong>not supported<\/strong>! Forks of Bitcoin codebase that relax the consensus rules (hard forks) are also <strong>not supported<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You may be able to find a fork of electrs that does support them, look around or make your own, just don&#8217;t file issues\/PRs here.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Index database<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The database schema is described <a href=\"https:\/\/github.com\/romanz\/electrs\/blob\/master\/doc\/schema.md\">here<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Contributing<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/romanz\/electrs#contributing\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">All contributions to this project are welcome. Please refer to the <a href=\"https:\/\/github.com\/romanz\/electrs\/blob\/master\/CONTRIBUTING.md\">Contributing Guidelines<\/a> for more details.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Logo<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/romanz\/electrs#logo\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/romanz\/electrs\/blob\/master\/logo\">Our logo<\/a> is generously provided by <a href=\"https:\/\/github.com\/DominoPrusa\">Dominik Pr\u016f\u0161a<\/a> under the MIT license. Based on the <a href=\"https:\/\/github.com\/spesmilo\/electrum\/blob\/master\/LICENCE\">Electrum logo<\/a> and the <a href=\"https:\/\/rustfoundation.org\/policy\/rust-trademark-policy\">Rust language logo<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since I&#8217;ve moved to Paul Lamb&#8217;s Bitcoin Knots version based on Bitcoin Core 31.2, I was finally able to switch to the latest version of Electrs v0.12.0, and boy is the new indexing server noticeably faster. If unaware, there are different implementations of Electrum servers that are meant to service SPV wallets (phone or light [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-19309","post","type-post","status-publish","format-standard","hentry","category-tech"],"featured_image_src":null,"author_info":{"display_name":"Jason","author_link":"https:\/\/jasonsblog.ddns.net\/index.php\/author\/jturning\/"},"_links":{"self":[{"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/19309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/comments?post=19309"}],"version-history":[{"count":3,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/19309\/revisions"}],"predecessor-version":[{"id":19312,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/19309\/revisions\/19312"}],"wp:attachment":[{"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/media?parent=19309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/categories?post=19309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/tags?post=19309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}