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

918 Commits

Author SHA1 Message Date
Roman Zeyde
56d69d1709
Merge branch 'sized_cache' 2019-10-05 12:29:43 +03:00
Roman Zeyde
b059513115
Update Cargo.lock 2019-10-01 20:19:38 +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
4c14b0d0cb
Update RELEASE-NOTES.md 2019-09-20 14:45:21 +03: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
Roman Zeyde
61a5af3a1b
Merge branch 'update_configure_me' of https://github.com/Kixunil/electrs into Kixunil/configure_me 2019-09-13 20:24:32 +03:00
Martin Habovstiak
bcb04196c3 Updated to configure_me 0.3.5
This update fixes the issue with hypens and additionally makes error
messages from the build script nicer.

Fixes #170
2019-09-13 18:39:39 +02:00
Roman Zeyde
ff34ee1907
Update Cargo.lock 2019-09-13 14:38:50 +03:00
Roman Zeyde
9856f94160
Remove unused crate 2019-09-07 22:55:37 +03:00
Martin Habovštiak
bbc6fcb21d
Merge branch 'master' into configure_me 2019-09-07 11:33:13 +02:00
Roman Zeyde
e2cca9b85b Use explicit 'dyn' for trait objects 2019-09-07 12:09:43 +03:00
Roman Zeyde
05b653f7f5 Use AtomicU64 after updating to Rust >=1.34 2019-09-07 12:06:19 +03:00
Roman Zeyde
32015a762c Use TryInto to convert slices into array
Remove dependency on `arrayref`.
2019-09-07 12:05:43 +03:00
Roman Zeyde
925e0da460 Support Rust >=1.34 2019-09-07 12:00:24 +03:00
Roman Zeyde
43e0bd31b1 Update RELEASE-NOTES.md 2019-09-07 11:33:17 +03:00
Roman Zeyde
f7ad9419ed cargo fmt 2019-09-07 11:23:43 +03:00
Martin Habovstiak
0cf115d5f6 Updated Cargo.lock 2019-09-06 23:03:17 +02:00
Martin Habovstiak
f050bc4496 Code documentation and cleanup
Besides several comments added to the code, all relevant instances of
`panic!`, `.unwrap()` and `.expect()` were removed in order to keep
messages user-friendly. `.extend()` is used istead of `.push()` on
`PathBuf` for multi-fragment values.
2019-09-06 22:59:31 +02: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
2c50791dc5 Fixed db subdir
As the network name changed from `mainnet` to `bitcoin`, this change
accidentally affected database subdirectory. This would be
backwards-incompatible in a major way (the users would have to notice
the change and rename it).

This commit reverts the name of the subdirectory and renames the
variable to express the intent more explicitly.
2019-09-06 21:38:19 +02:00
Martin Habovstiak
8574aa2a34 Updated doc regarding config files and env vars 2019-09-06 21:23:28 +02:00
Martin Habovstiak
268fbf5c09 Added CWD cfg file and fixed ordering of cfg files
The values in user-level config file should override system config file,
not the other way arounnd. Also added `electrs.toml` config file which
is searched for in the current directory.
2019-09-06 20:29:29 +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
Roman Zeyde
a61e1b3b7a
docs: add hardware specs and explain storage usage 2019-08-13 21:26:18 +03:00
Roman Zeyde
b33b570704
Add a script for computing tx fee 2019-08-03 14:46:39 +03:00
Roman Zeyde
a0fc0b895d
Cache transactions returned via Query::load_txn() 2019-08-03 12:50:44 +03:00
Roman Zeyde
2860966748
Update Cargo.lock 2019-08-03 10:53:46 +03:00
Roman Zeyde
fcbf16b9f1
Bump version 2019-07-27 17:42:32 +03:00
Roman Zeyde
35f456751f
Allow stopping bulk indexing via SIGINT/SIGTERM 2019-07-17 20:14:06 +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
Dagur Valberg Johannsson
ebc4dc3829 Test for BlockTxIDsCache 2019-07-04 22:24:27 +00:00
Dagur Valberg Johannsson
6ba67cb9f6 Add metrics to blocktxids cache 2019-07-04 08:18:54 +00:00
Dagur Valberg Johannsson
2e9ac5c0d8 Cache list of transaction IDs for blocks 2019-07-04 08:18:16 +00:00
Roman Zeyde
dc92454c9d
Update Cargo.lock 2019-06-13 22:46:34 +03:00
Roman Zeyde
5d37e7fe52
Bump version 2019-06-13 22:35:10 +03:00
Roman Zeyde
3b8993db8a
Update release notes 2019-06-13 22:34:26 +03:00
Roman Zeyde
70d0c1d47f
Merge branch 'atomic-counter' 2019-06-13 22:25:29 +03:00
Roman Zeyde
bebbfa197d
Add support for latest Rust features via --features latest_rust 2019-06-13 22:18:27 +03:00
Roman Zeyde
4f44a78dd3
Refactor bulk::parse_blocks() a bit 2019-06-13 21:53:58 +03:00
azuchi
965aa93c97 Move test data to fixture file 2019-06-13 18:22:56 +09:00
azuchi
ef4c33b570 Add test for incomplete block data import 2019-06-09 11:27:09 +09:00
azuchi
df0b097747 Fix formatting issue 2019-06-08 12:13:13 +09:00
azuchi
536d3362b8 Fix the error by adding skip processing when incomplete data is included in the RAW block file
If Core's WriteBlockToDisk ftell fails, only the magic byte and size will be written and the block body will be unwritten data. skip that's data.
2019-06-07 14:26:15 +09:00
Roman Zeyde
0858b627e1
Merge branch 'vec_to_iter' 2019-05-30 14:24:42 +03:00
Roman Zeyde
4802cc9146
Join index & write duration measurement 2019-05-30 14:18:17 +03:00
Roman Zeyde
db853e1fe1
Fix small formatting issues 2019-05-30 10:29:53 +03:00
Roman Zeyde
83bbfaaca1
Build with LTO 2019-05-30 10:15:12 +03:00
Martin Habovstiak
8199563e0f Bunch of Vec<Row> translated to Iterator<Item=Row>
There were several places where `Vec<Row>` was created just to iterate
it later and throw away, thus allocating memory unnecessarily. This
translates those `Vec`s to `Iterator`s in order to improve the
efficiency.
2019-05-29 15:13:39 +02:00
Martin Habovstiak
2a835d94ef Use atomic u64 instead of Mutex for counter
This change switches from `Mutex<u64>` to `AtomicU64`, which is faster
and somewhat more elegant to write. It keeps the `Counter` type for
backwards compatibility.

The downside is that it doesn't work on as many platforms and requires
fairly recent compiler.
2019-05-29 11:48:37 +02:00