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

111 Commits

Author SHA1 Message Date
Simon Kurowski
edad6eec0c Optimize Dockerfile 2021-03-21 00:51:51 +01:00
Martin Habovstiak
afe32bb5b7 Added in-depth explanation of cookie deprecation
This adds more informtion about cookie deprecation, especially
motivation, so the users won't be frustrated because of unexplained
change. It also removes a warning that's no longer applicable.
2021-02-22 19:52:40 +01:00
Martin Habovstiak
41f2077ee6 Implemented auth option and deprecated cookie
This adds `auth` option and deprecates `cookie` which has a confusing
name. It's effectively renaming but we pretend it is not to avoid people
blindly changing the name without second thought.

Closes #349 (a new tracking issue will be created)
2021-02-21 21:39:16 +01:00
Roman Zeyde
3325d33f89
Merge branch 'improve_doc' 2021-02-21 21:32:09 +02:00
Martin Habovstiak
5bd3a7b48a Fix verbose parameter in config example
Helps with #352
2021-02-04 23:07:31 +01:00
Martin Habovstiak
d49ccd82ca Added a few line breaks to doc
These should not affect rendered result but make editing the file much
more pleasant.
2021-02-01 22:41:20 +01:00
Martin Habovstiak
8ca4f7ae7f Improve documentation
This improves documentation of configuration based on @BTCBellyButton
suggestions in #344. It contains a few more tweaks.
2021-02-01 22:33:04 +01:00
Roman Zeyde
5ef12d4075
Merge remote-tracking branch 'kixunil/update_docs' 2020-12-03 15:07:24 +02:00
Martin Habovstiak
433760925a Avoid configuration footguns
This change takes several steps towards avoiding footguns when
configuring `electrs`:

* Moves config_spec.toml out of sight of non-developers
* Provides a configuration example
* Mentions the example in the docs
2020-12-01 19:03:39 +01:00
Martin Habovstiak
3d190dee59 Added upgrade instructions
This adds upgrade instructions as well as a note about RAM usage during
build which was missing.
2020-12-01 09:21:58 +01:00
Andreas Tietz
6e49ffedde Update rpc example following protocol changes 2020-11-29 01:40:44 +01:00
Roman Zeyde
782c4c226b
Fix a small typo 2020-11-15 20:42:24 +02:00
Martin Habovstiak
d98f746404 Updated documentation
* The mentioned Debian repository is now considered beta, make the
  wording much less scary.
* Documented how to link rocksdb dynamically and what are the pros/cons
* Documented how to cross compile
* Added `--locked` parameter to `cargo build` to prevent `cargo` from
  updating lock file
* Use `./target/release/electrs` instead of `cargo run` to avoid
  rebuilding footguns
* Added a link to in-depth explanation of cookie security
2020-11-14 12:26:20 +01:00
k3tan172
60a211af38
Update usage.md 2020-10-16 07:30:30 +11:00
k3tan172
32c5fd3a61
Update usage.md
For compilation of electrs to work in Ubuntu 20.04 build-essential package needs to be installed.
2020-10-14 20:03:19 +11:00
Franck Royer
3c4cf72960 Set Rust toolchain to 1.41.1
The project does not compile on 1.34.0 because it uses
the lockfile format introduced in 1.38.0.

Do note that Debian stable at this time uses Rust 1.41.1.

Setting a specific toolchain version is good practice for
binary project and remove potential issues of incompatible
toolchain for users trying to build the project.
2020-09-28 13:27:15 +03:00
Roman Zeyde
cfa578286c
Add RPC usage example 2020-07-25 12:35:57 +03:00
Candle
ca81f753f1
Typo fix
"bitcoind" was misspelled
2020-07-17 11:38:14 +00:00
Roman Zeyde
fb27cf772f
Fix README.md 2020-07-17 11:21:17 +03:00
Martin Habovštiak
825b788159
Typo fixes 2020-05-02 22:22:20 +02:00
Martin Habovštiak
233d2aa277
Make documentation more clear, add recommendations
This change makes many improvements to the documentation aimed at higher clarity and robustness. Aside from rewording and reordering various parts, it makes sure the documentation is up to date with the reality and best (security and cleanness) practices.

The list of changes:

* Changes the title of "Installation" section to make it clear it's manual and from source
* Points at more convenient options right on top
* Adds "Build dependencies" subtitle
* Makes "Build" a subtitle as it belongs under "Manual installation from source" section
* Recommends using Debain native packaging, which is more secure than `rustup`
* Suggests installation and use of `cfg_me`
* Moves Docker-based installation higher to be better visible
* Informs that native, stable packages are not available yet.
* Adds information about the experimental repository. While it can't be recommended for production use yet, the hope is to attract more contributors and deliver stable, secure and user-friendly experience sooner.
* Makes it clear that the documented configuration is manual, so that users using automated systems won't attempt to configure it manually
* Makes "Bitcoind configuration", "Usage" and "Configuration files" into subtitles
* Mentions the no-prune requirement upfront
* Makes it clear that `txindex` is not necessary, but also allowed.
* Recommends using cookie file
* Instead of telling people to wait for IBD before running `electrs` it accurately describes the behavior.
* Moves the section about `electrs` configuration before usage to be more visible. It's also the ordering of steps a user should take.
* Changes title of "configuration files and environment variables" to "Electrs configuration" to be consistent with "Bitcoind configuration"
* Recommends configuration files - they are clearer and saved across executions
* Clarifies the behavior of overriding files/arguments
* Documents `--conf` and `--conf-dir` arguments
* Explains the difference between `cookie` and `cookie_file`
* Renames "Usage" to "Electrs usage" to be more obvious
* Points out extra configuration suggestions, so they won't get lost after "Electrum client" section
* Notifies users of Debian repository to skip messing with Electrum configuration.
* Makes it clear that the script is provided in the repository (was not immediately obvious to me, LOL; providing `.desktop` file would be nicer, though)
* Added missing title "Extra configuration suggestions"
* Suggests to use more clear path in Tor configuration
* Hints at `tor-hs-config-patch`
* Warns users using the experimental Debian repository to not mess with systemd files
2020-05-02 20:59:30 +02:00
Martin Habovštiak
b1d0434d24 Added a note about broken toolchains on RPi4
I think that this information being visibly documented could save people a long debugging session or sad compile time.
2020-04-14 00:23:57 +03:00
Roman Zeyde
aa3aef8b64
Add link to configuration docs 2020-01-27 22:27:19 +02:00
Roman Zeyde
6afd4af403
Add more duration metrics to query.rs 2019-10-15 10:42:06 +03:00
Martin Habovštiak
bbc6fcb21d
Merge branch 'master' into configure_me 2019-09-07 11:33:13 +02:00
Roman Zeyde
925e0da460 Support Rust >=1.34 2019-09-07 12:00:24 +03:00
Martin Habovstiak
8574aa2a34 Updated doc regarding config files and env vars 2019-09-06 21:23:28 +02:00
Roman Zeyde
a61e1b3b7a
docs: add hardware specs and explain storage usage 2019-08-13 21:26:18 +03:00
Roman Zeyde
25ce69ea04
Add link to Electrum Tor documentation 2019-07-05 18:52:22 +03:00
Roman Zeyde
16e4de60a4
Add documentation for running Tor service 2019-07-05 18:47:24 +03:00
Roman Zeyde
8ff5c7c73d
Update CI and documentation for Rust 1.32 2019-05-11 10:07:43 +03:00
Roman Zeyde
f8f53cebaf
Revert "Use TryInto to convert slices into array"
This reverts commit 62592dbabf to support
Rust 1.32 on Debian.
2019-05-10 21:45:19 +03:00
Roman Zeyde
62592dbabf
Use TryInto to convert slices into array
Remove dependency on `arrayref`.
2019-04-29 13:28:10 +03:00
Daniel McNally
cad3551c63
Update min versions for installation
This updates the minimum version for Rust from 1.28 to the current
latest which is 1.33. This is because 1.28 may fail on build due to

It also updates the minimum version of Electrum to the current latest
of 3.3 since version 3.2 is officially unsupported due to a known
phishing vulnerability.
2019-04-05 23:15:42 -04:00
Jeff Vandrew Jr
18890b78e3
Update for use with Eclair Mobile 2019-03-29 11:26:31 -04:00
Jeff Vandrew Jr
8c6472bab3
Update usage.md
If I don't set a `electrum-rpc-addr` flag, by default electrs only listens for tcp6 connections. In order to accept tcp4, I need to add `--electrum-rpc-addr="127.0.0.1:50001`.

This is not a big deal since setting the flag fixes it, but adding this info to the docs should make it easier for users.

Also, the `config.rs` file should be changed since the help for this option lists `127.0.0.1:50001` as the default, which is not correct (at least on my install).

I also added a sample unit file for systemd.
2019-03-23 14:31:57 -04:00
Roman Zeyde
bb8baf4108
Update Dockerfile to install libsnappy-dev and to use current source code
Also, update Docker usage documentation.
2019-03-03 22:34:39 +02:00
Roman Zeyde
5ab3b46487
Document how to persist Electrum wallet configuration 2019-02-23 20:45:21 +02:00
Roman Zeyde
8e31df8511
Update SSL instructions to nginx
Remove hitch example
2019-01-08 12:51:22 +02:00
Daniel McNally
e446693c4c
Add NGINX SSL sample config 2018-11-27 17:56:12 -05:00
sha-265
26a2912703
Fix typo 2018-11-14 15:30:02 +00:00
Daniel McNally
edc2532f0a Update instructions with low RAM arguments
Closes #61.
2018-11-03 17:47:10 +02:00
Lawrence Nahum
d6f4d9e197
remove unused size_on_disk 2018-08-21 17:59:34 +02:00
Roman Zeyde
2d2590aeae
Add Docker usage example 2018-08-20 22:42:58 +03:00
Roman Zeyde
836bc5861e
Update Aug 2018 index DB size 2018-08-17 22:19:14 +03:00
Roman Zeyde
98ec908a8d
Update bulk indexing sample
Now it takes ~1.5h :)
2018-08-17 21:56:02 +03:00
Roman Zeyde
215f859aae
Update latest Rust version 2018-08-17 15:32:14 +03:00
Roman Zeyde
c7552878d8
Add more documentation for Electrum client invocation 2018-08-15 15:02:24 +03:00
Roman Zeyde
288cda518c
Document TLS-termination proxy example 2018-08-15 15:00:14 +03:00
Roman Zeyde
b78e047dfa
Separate default monitoring ports for testnet and regtest 2018-08-14 10:16:01 +03:00
Roman Zeyde
2f1e4123e1
Update usage.md with Electrum installation URL 2018-08-12 13:50:45 +03:00
Roman Zeyde
45b507a241
Add optional --cookie flag to usage example 2018-08-02 14:05:56 +03:00
Roman Zeyde
00210f6e29
Remove optional bitcoind flag from doc/usage.md 2018-08-02 14:03:19 +03:00
Roman Zeyde
96c0737649
Add key/value separators for schema doc 2018-08-01 13:41:27 +03:00
Roman Zeyde
a32f718c9a
Fix local electrum invocation script path 2018-07-25 12:21:55 +03:00
Roman Zeyde
18a21bfe56
Add simple bash script for running local Electrum client 2018-07-22 22:15:04 +03:00
Roman Zeyde
ab4747ce7e
Add cmake to installation instructions 2018-07-15 07:49:23 +03:00
Roman Zeyde
9a89e6a2d8
Update README with latest performance metrics 2018-07-12 23:26:37 +03:00
Roman Zeyde
c82ceb6ad7
Update usage documentation for JSONRPC cookie 2018-07-08 22:22:32 +03:00
Roman Zeyde
a797a3864e
Move usage instructions to doc/ subdirectory 2018-07-07 12:20:04 +03:00
Roman Zeyde
b421df8c10
Add short schema description 2018-07-02 15:53:04 +03:00