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
Roman Zeyde
9df66d97e3
Fix clippy warning
2019-05-18 10:40:31 +03:00
Roman Zeyde
2b52ef3bef
Log electrs and protocol versions
2019-05-18 10:35:47 +03:00
Roman Zeyde
89940cf973
Update contrib/mempool.py for bitcoind 0.18
2019-05-18 10:35:27 +03:00
Roman Zeyde
a2a97c7714
Update Cargo.lock
2019-05-17 10:18:37 +03:00
Roman Zeyde
b52090da03
Bump version
2019-05-17 10:09:21 +03:00
Roman Zeyde
ac4ac43b8e
Fix formatting
2019-05-14 21:30:26 +03:00
Roman Zeyde
5282497a2d
Merge pull request #141 from dagurval/index-height
...
[stats] Update index height when chain shortens
2019-05-14 21:25:43 +03:00
Dagur Valberg Johannsson
ac7ba501cf
[stats] Update index height when chain shortens
...
This makes electrs_index_height report the right height after
`invalidateblock` call in bitcoind
2019-05-14 15:42:59 +02:00
Roman Zeyde
8ff5c7c73d
Update CI and documentation for Rust 1.32
2019-05-11 10:07:43 +03:00
Roman Zeyde
63689a2de6
Update Cargo.lock
2019-05-10 21:47: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
1aeba092ec
Bump version
2019-05-09 11:48:02 +03:00
Roman Zeyde
26185dcb47
Update release notes
2019-05-06 11:48:01 +03:00
Roman Zeyde
2286efba87
Switch to signal-hook
crate from deprecated chan-signal
2019-05-06 11:47:46 +03:00
Roman Zeyde
ce93edcc15
Allow HeaderList::apply() with empty chain
2019-05-05 22:11:41 +03:00
Roman Zeyde
43ecefb4b8
Update Dockerfile to use Rust 1.34.0
2019-04-30 20:36:16 +03:00
Roman Zeyde
94e139934f
Bump version
2019-04-29 14:36:34 +03:00
Roman Zeyde
81dd28d90b
Update Rust version on CI
2019-04-29 14:36:34 +03:00
Roman Zeyde
7dbaa91a0b
Update release notes
2019-04-29 13:28:34 +03:00
Roman Zeyde
62592dbabf
Use TryInto to convert slices into array
...
Remove dependency on `arrayref`.
2019-04-29 13:28:10 +03:00