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

9 Commits

Author SHA1 Message Date
Antoine Poinsot
f1d611fe19
Add a 'blocks_dir' option analogous to bitcoind's '-blocksdir'
The '-blocksdir' startup option allows one to store blk*.dat on an
external disk, while keeping the index (blocks/index/) on the same disk.

This makes electrs aware of such an option, while still keeping the same
default behaviour (blk*.dat in '<config_dir>/blocks/').

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-06-30 14:46:25 +02:00
Roman Zeyde
5ae93db59e
Allow configuring wait duration 2020-06-13 18:15:03 +03:00
alex
2f4389e111 Correct --network arg values in the doc
After a recent switch to configure_me in ec049b9a, the 'mainnet'
arg value became 'bitcoin'. 2c50791d then updated db dir location
but the doc for the --network arg remained stale.

An alternative is to accept both 'mainnet' and 'bitcoin' but
it would be confusing IMHO.
2019-12-15 13:51:13 +01:00
Martin Habovstiak
5549287ac6 Implemented custom cookie file
This change allows the user to specify a custom cookie file, which is then
used instead of `~/.bitcoin/.cookie`. This resolves situations when the
user wants to have the cookie file in non-standard path.

Aside from that, the code now pre-computes the default path, improving
the performance by avoiding allocation (and copying). Unfortunately, due
to limitations of Rust, the code doesn't print out cookie configuration
anymore. This however might be safer, since the cookie isn't printed,
and thus doesn't end up in some readable logs by accident.

Closes #176
Closes #189
2019-11-13 15:52:32 +02:00
Roman Zeyde
56d69d1709
Merge branch 'sized_cache' 2019-10-05 12:29:43 +03:00
Martin Habovstiak
35b3cededc Support for user-specified onfiguration files/dirs
This commit upgrades `configure_me` and adds support for `--conf` and
`--conf-dir` parameters, which load the configuration from the specified
place.
2019-09-28 23:13:50 +02:00
Roman Zeyde
c41bc378df
Add byte-size limit to transaction & block txids' caches
Also, move TransactionCache into `cache` module.

Following https://github.com/romanz/electrs/pull/161 by @dagurval.

Co-authored-by: Dagur Valberg Johannsson <dagurval@pvv.ntnu.no>
2019-09-19 22:30:30 +03:00
Martin Habovstiak
2b301a3b28 Fixed address resolution
The addresses weren't resolved in case of deserializing from config
file. Besides, resolving addresses in parsing/deserialization code would
make messy code (harder to read). This commit fixes both issues by
moving address resolution to post-processing stage.
2019-09-06 22:13:03 +02:00
Martin Habovstiak
ec049b9ad5 Use configure_me instead of clap
Since use of configuration files is both mmore secure and more
convenient and clap doesn't support config files, this switches to
configure_me, which supports config files, env vars and also generating
man pages.

Closes #151
2019-09-06 20:16:51 +02:00