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.
5 years ago
Roman Zeyde
9df66d97e3
Fix clippy warning
6 years ago
Roman Zeyde
2b52ef3bef
Log electrs and protocol versions
6 years ago
Roman Zeyde
89940cf973
Update contrib/mempool.py for bitcoind 0.18
6 years ago
Roman Zeyde
a2a97c7714
Update Cargo.lock
6 years ago
Roman Zeyde
b52090da03
Bump version
6 years ago
Roman Zeyde
ac4ac43b8e
Fix formatting
6 years ago
Roman Zeyde
5282497a2d
Merge pull request #141 from dagurval/index-height
[stats] Update index height when chain shortens
6 years ago
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
6 years ago
Roman Zeyde
8ff5c7c73d
Update CI and documentation for Rust 1.32
6 years ago
Roman Zeyde
63689a2de6
Update Cargo.lock
6 years ago
Roman Zeyde
f8f53cebaf
Revert "Use TryInto to convert slices into array"
This reverts commit 62592dbabf
to support
Rust 1.32 on Debian.
6 years ago
Roman Zeyde
1aeba092ec
Bump version
6 years ago
Roman Zeyde
26185dcb47
Update release notes
6 years ago
Roman Zeyde
2286efba87
Switch to `signal-hook` crate from deprecated `chan-signal`
6 years ago
Roman Zeyde
ce93edcc15
Allow HeaderList::apply() with empty chain
6 years ago
Roman Zeyde
43ecefb4b8
Update Dockerfile to use Rust 1.34.0
6 years ago
Roman Zeyde
94e139934f
Bump version
6 years ago
Roman Zeyde
81dd28d90b
Update Rust version on CI
6 years ago
Roman Zeyde
7dbaa91a0b
Update release notes
6 years ago
Roman Zeyde
62592dbabf
Use TryInto to convert slices into array
Remove dependency on `arrayref`.
6 years ago
Roman Zeyde
3a06d6c512
Add tests for HeaderList
6 years ago
Roman Zeyde
bf68461e8f
Allow reorgs to shorten valid headers' chain
6 years ago
Roman Zeyde
bb62df8793
Update Cargo.lock
6 years ago
Roman Zeyde
5fd624c074
Fix a few clippy lints
6 years ago
Roman Zeyde
2597eee006
Stop process stats exporting on error
Also, improve error messages a bit.
6 years ago
Roman Zeyde
963037607b
Serve by default on 127.0.0.1
instead of 'localhost' which may resolve to IPv6 address.
6 years ago
Roman Zeyde
e451a73605
Merge pull request #128 from sangaman/interrupt-typo
Fix interrupt typo
6 years ago
Roman Zeyde
54394659ee
Merge pull request #130 from sangaman/min-rust-version
Update min versions for installation
6 years ago
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.
6 years ago
Daniel McNally
4a7a5298e4
Fix interrupt typo
6 years ago
Roman Zeyde
6fa51ad76d
Update RELEASE-NOTES.md
6 years ago
Roman Zeyde
1167cbfb04
Support latest bitcoind mempool entry vsize field name
It was changed by https://github.com/bitcoin/bitcoin/pull/15637 .
6 years ago
Roman Zeyde
e9c06d816a
Remove `'static` life-time from &str constants
6 years ago
Roman Zeyde
6625f6aa58
Merge remote-tracking branch 'dagurval/fix-remove-mempool'
6 years ago
Dagur Valberg Johannsson
af227013f1
[mempool] Fix bug on removing entries
Fixes issue where old mempool entires were only removed if new ones were
also added.
6 years ago
Roman Zeyde
9dae910288
Merge pull request #126 from JeffVandrewJr/patch-2
Update docs for use with Eclair Mobile
6 years ago
Jeff Vandrew Jr
18890b78e3
Update for use with Eclair Mobile
6 years ago
Roman Zeyde
8af98a3b9f
Update more crates
6 years ago
Roman Zeyde
18a1d29509
Update bitcoin to 0.18
6 years ago
Roman Zeyde
72eb1e1c62
Update rockdb to 0.12.1
6 years ago
Roman Zeyde
5497824b0e
Update Cargo.lock
6 years ago
Roman Zeyde
d5b7f509d2
travis: add clippy via rustup
6 years ago
Roman Zeyde
ff002bf6ac
Merge pull request #124 from JeffVandrewJr/patch-1
Documentation Updates
6 years ago
Jeff Vandrew Jr
8c6472bab3
Update usage.md
If I don't set a `electrum-rpc-addr` flag, by default electrs only listens for tcp6 connections. In order to accept tcp4, I need to add `--electrum-rpc-addr="127.0.0.1:50001`.
This is not a big deal since setting the flag fixes it, but adding this info to the docs should make it easier for users.
Also, the `config.rs` file should be changed since the help for this option lists `127.0.0.1:50001` as the default, which is not correct (at least on my install).
I also added a sample unit file for systemd.
6 years ago
Roman Zeyde
878f81cfeb
Return correct 'server.version' response
6 years ago
Roman Zeyde
f48e395d35
Update Electrum protocol support
6 years ago
Roman Zeyde
710a15e822
Switch README badge to CircleCI
6 years ago
Roman Zeyde
b84745e146
Add CircleCI support
6 years ago
Roman Zeyde
f4605069b9
Add `cargo clippy` to Travis
6 years ago