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

86 Commits

Author SHA1 Message Date
Roman Zeyde
8a0e22f1c8 Add a Docker-related disclaimer 2021-10-20 11:36:12 +03:00
Roman Zeyde
73f971df63 Add a note about Dockerfile changes 2021-10-20 10:45:31 +03:00
Frederic Lepied
74f13419a8 enhance contribs to allow to connect to an external server 2021-10-13 15:06:03 +02:00
Roman Zeyde
fbda004ecb Drop ELECTRS_VERBOSE and ELECTRS_TIMESTAMP from Docker usage example 2021-10-07 21:36:50 +03:00
Roman Zeyde
fc81d95940 Update build description for 32-bit OS 2021-10-04 09:13:03 +03:00
Martin Habovštiak
759cc64978
Clarify upgrading to 0.9.0
Removing/renaming unsupported switches was not called out explicitly and it's possible that someone is using a different bitcoind address, not just port.

Closes #520
2021-09-30 16:50:21 +02:00
Martin Habovštiak
0db0e8c8c1
Update documentation regarding cargo features
With new `rocksdb` it's no longer necessary to disable features when dynamically linking.
Thus this change removes instructions to add `--no-default-features`.
However there's now a new feature called `metrics` which enables Prometheus.
This change also documents this and explains how to turn it off.

Closes #517
2021-09-30 14:09:26 +02:00
Martin Habovstiak
5537c963c0 Detailed documentation of db_dir
This warns users that they shouldn't touch `db_dir` internals except for
deleting the old `mainnet` database. It explains in details how to do
upgrade and deleting properly, calls it out in release notes and fixes
small style mistake in nearby heading.

It can be thought of as more explicit/detailed version of
8b8ebea0018d3e9a97ce965845b1914df4b4d8a4 or a textual alternative to
PR #513.
2021-09-29 22:15:53 +02:00
Martin Habovštiak
c299183289
Explain verbose level in usage 2021-09-25 19:46:01 +02:00
Roman Zeyde
f420188650 Add a release note about db/mainnet -> db/bitcoin rename
https://github.com/romanz/electrs/issues/502
2021-09-25 18:07:17 +03:00
Roman Zeyde
a53048f2ef Fixup schema.md table formatting 2021-09-18 20:19:58 +03:00
Roman Zeyde
3c4e616901 Add p2p daemon address to config_example.toml 2021-09-18 00:28:55 +03:00
Roman Zeyde
2152ac9cca Merge branch 'p2p' 2021-09-17 16:08:19 +03:00
Martin Habovstiak
ce96481522 Improve documentation of 0.8.x -> 0.9.0 upgrade
This should hopefully make the major changes more visible and avoid
surprises.
2021-09-17 15:28:24 +03:00
Roman Zeyde
382d71787a Update documentation for the upcoming 0.9 version 2021-09-13 11:09:51 +03:00
Roman Zeyde
4b24e649d6 Move local-electrum.bash to contrib/ 2021-08-26 23:16:00 +03:00
Martin Habovštiak
5b77773a54
Update relevant versions in README to 0.8.10 2021-07-30 11:50:01 +02:00
Simon Vrouwe
3bb0fb7920 p2p doc: in bitcoin.conf maxconnections should be >11, fixes #429 2021-07-21 07:46:26 +03:00
Tobin Harding
9e33cb6d9b
Fix spelling of 'hyphens' 2021-07-16 10:54:48 +10:00
moneroexamples
6caf8017af
Added json.dumps to Python example RPC examples
As suggested in https://github.com/romanz/electrs/pull/415#issuecomment-870345086 `json.dumps` is added in-place of a manual construction of a request message.
2021-06-29 17:00:22 +08:00
moneroexamples
a31723cbb5
json.loads added
As suggested, `json.loads` was added to parse the raw response.
2021-06-28 17:44:59 +08:00
moneroexamples
2d4369cf93
Add python example in RPC examples
Current `usage.md` contains only one example in `RPC examples` which uses `echo` and `netcat`. The PR adds new and corresponding example in `Python` which can speed up the initial use of the `electrs` for people who try to use the project for the first time.
2021-06-25 18:38:26 +08:00
Roman Zeyde
3780d7d48b Refactor and sync using p2p protocol 2021-04-14 18:38:59 +03:00
Simon Kurowski
c4ea110795 Fix Dockerfile, add another example 2021-03-23 21:38:17 +01:00
Simon Kurowski
25702d1217 Add missing \ to usage.md 2021-03-21 01:01:01 +01:00
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