1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 01:43:29 +01:00
electrs/README.md

71 lines
4.1 KiB
Markdown
Raw Normal View History

![Logo](logo/logo.svg)
2018-06-15 11:23:48 +02:00
# Electrum Server in Rust
2021-10-19 21:27:37 +02:00
[![CI](https://github.com/romanz/electrs/actions/workflows/rust.yml/badge.svg)](https://github.com/romanz/electrs/actions)
2018-07-03 14:32:25 +02:00
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
2021-08-17 15:27:46 +02:00
[![crates.io](https://img.shields.io/crates/v/electrs.svg)](https://crates.io/crates/electrs)
2018-07-08 13:11:48 +02:00
[![gitter.im](https://badges.gitter.im/romanz/electrs.svg)](https://gitter.im/romanz/electrs)
2018-06-16 09:46:54 +02:00
2018-07-03 14:34:24 +02:00
An efficient re-implementation of Electrum Server, inspired by [ElectrumX](https://github.com/kyuupichan/electrumx), [Electrum Personal Server](https://github.com/chris-belcher/electrum-personal-server) and [bitcoincore-indexd](https://github.com/jonasschnelli/bitcoincore-indexd).
2018-06-15 11:23:48 +02:00
The motivation behind this project is to enable a user to self host an Electrum server,
2018-06-17 09:34:39 +02:00
with required hardware resources not much beyond those of a [full node](https://en.bitcoin.it/wiki/Full_node#Why_should_you_use_a_full_node_wallet).
2018-06-17 09:46:15 +02:00
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 [Electrum wallet](https://electrum.org/).
2018-06-17 09:34:39 +02:00
Since it runs on the user's own machine, there is no need for the wallet to communicate with external Electrum servers,
thus preserving the privacy of the user's addresses and balances.
2018-06-16 21:37:51 +02:00
## Usage
**Please prefer to use OUR usage guide!**
External guides can be out-of-date and have various problems.
At least double-check that the guide you're using is actively maintained.
If you can't use our guide, please ask about what you don't understand or consider using automated deployments.
Note that this implementation of Electrum server is optimized for **personal/small-scale (family/friends) usage**.
It's a bad idea to run it publicly as it'd expose you to DoS and maybe also other attacks.
If you want to run a public server you may be interested in the [Blockstream fork of electrs](https://github.com/Blockstream/electrs)
which is better optimized for public usage at the cost of consuming *significantly* more resources.
2023-02-13 19:19:39 +01:00
* [Installation from source](doc/install.md)
* [Pre-built binaries](doc/binaries.md) (No official binaries available but a beta repository is available for installation)
* [Configuration](doc/config.md)
* [Usage](doc/usage.md)
* [Monitoring](doc/monitoring.md)
2021-10-21 08:51:59 +02:00
* [Upgrading](doc/upgrading.md) - **contains information about important changes from older versions**
2018-06-16 10:08:25 +02:00
## Features
* Supports Electrum protocol [v1.4](https://electrumx-spesmilo.readthedocs.io/en/latest/protocol.html)
2018-06-16 10:08:25 +02:00
* Maintains an index over transaction inputs and outputs, allowing fast balance queries
* Fast synchronization of the Bitcoin blockchain (~6.5 hours for ~504GB @ August 2023) using HDD storage.
* Low index storage overhead (~10%), relying on a local full node for transaction retrieval
2018-06-16 10:42:43 +02:00
* Efficient mempool tracker (allowing better fee [estimation](https://github.com/spesmilo/electrum/blob/59c1d03f018026ac301c4e74facfc64da8ae4708/RELEASE-NOTES#L34-L46))
2018-06-16 21:37:51 +02:00
* Low CPU & memory usage (after initial indexing)
* [`txindex`](https://github.com/bitcoinbook/bitcoinbook/blob/develop/ch03.asciidoc#txindex) is not required for the Bitcoin node
* Uses a single [RocksDB](https://github.com/spacejam/rust-rocksdb) database, for better consistency and crash recovery
2018-06-15 11:23:48 +02:00
## Altcoins
Altcoins are **not supported**!
Forks of Bitcoin codebase that relax the consensus rules (hard forks) are also **not supported**.
You may be able to find a fork of electrs that does support them, look around or make your own, just don't file issues/PRs here.
2018-07-02 12:54:06 +02:00
## Index database
The database schema is described [here](doc/schema.md).
2023-02-04 13:43:19 +01:00
## Contributing
2023-02-13 19:19:39 +01:00
All contributions to this project are welcome. Please refer to the [Contributing Guidelines](CONTRIBUTING.md) for more details.
## Logo
[Our logo](logo/) is generously provided by [Dominik Průša](https://github.com/DominoPrusa) under the MIT license.
Based on the [Electrum logo](https://github.com/spesmilo/electrum/blob/master/LICENCE)
and the [Rust language logo](https://www.rust-lang.org/policies/media-guide).