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
Roman Zeyde
3a06d6c512
Add tests for HeaderList
2019-04-29 12:22:43 +03:00
Roman Zeyde
bf68461e8f
Allow reorgs to shorten valid headers' chain
2019-04-29 11:11:43 +03:00
Roman Zeyde
bb62df8793
Update Cargo.lock
2019-04-29 10:25:53 +03:00
Roman Zeyde
5fd624c074
Fix a few clippy lints
2019-04-29 10:25:07 +03:00
Roman Zeyde
2597eee006
Stop process stats exporting on error
...
Also, improve error messages a bit.
2019-04-11 15:04:51 +03:00
Roman Zeyde
963037607b
Serve by default on 127.0.0.1
...
instead of 'localhost' which may resolve to IPv6 address.
2019-04-07 20:44:30 +03:00
Roman Zeyde
e451a73605
Merge pull request #128 from sangaman/interrupt-typo
...
Fix interrupt typo
2019-04-07 17:14:21 +03:00
Roman Zeyde
54394659ee
Merge pull request #130 from sangaman/min-rust-version
...
Update min versions for installation
2019-04-07 17:13:58 +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
Daniel McNally
4a7a5298e4
Fix interrupt typo
2019-04-05 22:52:58 -04:00
Roman Zeyde
6fa51ad76d
Update RELEASE-NOTES.md
2019-04-04 11:30:15 +03:00
Roman Zeyde
1167cbfb04
Support latest bitcoind mempool entry vsize field name
...
It was changed by https://github.com/bitcoin/bitcoin/pull/15637 .
2019-04-04 11:06:30 +03:00